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
1a54dcab
Commit
1a54dcab
authored
15 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
order the sources by the priority
parent
d9225cff
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm
+2
-1
2 additions, 1 deletion
misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm
with
2 additions
and
1 deletion
misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm
+
2
−
1
View file @
1a54dcab
...
...
@@ -685,6 +685,7 @@ GSQL
$best_gene_xref
=
$xref_id
;
$best_gene_level
=
$level
{
$ex_db_id
};
}
# if same level then use prioritys to work out best
$added
++
;
}
else
{
$removed
++
;
...
...
@@ -981,7 +982,7 @@ SQL
my
$i
=
0
;
my
$ins_p_sth
=
$self
->
xref
->
dbc
->
prepare
("
INSERT into display_xref_prioritys (source_id, priority) values(?, ?)
");
my
$get_source_id_sth
=
$self
->
xref
->
dbc
->
prepare
("
select source_id from source where name like ?
");
my
$get_source_id_sth
=
$self
->
xref
->
dbc
->
prepare
("
select source_id from source where name like ?
order by priority desc
");
#
# So the higher the number the better then
...
...
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