Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
12fc7478
Commit
12fc7478
authored
15 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
fix to get species passed correctly
parent
c7c7a24a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/xref_mapping/XrefMapper/CoordinateMapper.pm
+14
-7
14 additions, 7 deletions
misc-scripts/xref_mapping/XrefMapper/CoordinateMapper.pm
with
14 additions
and
7 deletions
misc-scripts/xref_mapping/XrefMapper/CoordinateMapper.pm
+
14
−
7
View file @
12fc7478
package
XrefMapper::
CoordinateMapper
;
use
vars
'
@ISA
';
@ISA
=
qw{ XrefMapper::BasicMapper }
;
#
use vars '@ISA';
#
@ISA = qw{ XrefMapper::BasicMapper };
use
XrefMapper::
BasicMapper
;
#
use XrefMapper::BasicMapper;
# $Id$
...
...
@@ -22,7 +22,7 @@ use IO::File;
use
File::Spec::
Functions
;
use
base
qw( Exporter )
;
use
base
qw( Exporter
XrefMapper::BasicMapper
)
;
our
@EXPORT
=
qw( run_coordinatemapping )
;
...
...
@@ -55,7 +55,7 @@ sub mapper{
sub
run_coordinatemapping
{
my
(
$self
,
$do_upload
)
=
@_
;
my
(
$self
,
$do_upload
)
=
@_
;
my
$sth_stat
=
$self
->
xref
->
dbc
->
prepare
("
insert into process_status (status, date) values('coordinate_xrefs_started',now())
");
...
...
@@ -66,8 +66,8 @@ sub run_coordinatemapping {
my
$core_db
=
$self
->
core
();
my
$species
=
$core_db
->
species
();
my
$species_id
=
$self
->
mapper
->
species
_id
;
#
XrefMapper::BasicMapper::get_species_id_from_species_name( $xref_db, $species );
#
my $species_id = $self->mapper->
core->
species;
my
$species_id
=
XrefMapper::BasicMapper::
get_species_id_from_species_name
(
$xref_db
,
$species
);
# We only do coordinate mapping for mouse and human for now.
...
...
@@ -208,11 +208,18 @@ sub run_coordinatemapping {
$xref_sth
->
execute
(
$species_id
);
my
$external_db_id
;
my
$i
=
0
;
while
(
my
$xref
=
$xref_sth
->
fetchrow_hashref
()
)
{
$external_db_id
||=
$
XrefMapper::BasicMapper::
source_to_external_db
{
$xref
->
{
'
source_id
'}
};
$external_db_id
||=
11000
;
# FIXME (11000 is 'UCSC')
if
(
$i
<
20
){
print
"
ext
$external_db_id
\n
";
$i
++
;
}
$unmapped
{
$xref
->
{'
coord_xref_id
'}
}
=
{
'
external_db_id
'
=>
$external_db_id
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment