Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
495b78e2
Commit
495b78e2
authored
Jan 29, 2008
by
Ian Longden
Browse files
get uniprot HGNC references as last priority
parent
d054f099
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
+7
-0
No files found.
misc-scripts/xref_mapping/XrefParser/UniProtParser.pm
View file @
495b78e2
...
...
@@ -161,6 +161,9 @@ sub create_xrefs {
my
%dependent_sources
=
$self
->
get_dependent_xref_sources
();
# name-id hash
if
(
defined
(
$dependent_sources
{'
HGNC
'})){
$dependent_sources
{'
HGNC
'}
=
XrefParser::
BaseParser
->
get_source_id_for_source_name
("
HGNC
","
uniprot
");
}
# Get predicted equivalents of various sources used here
my
$sp_pred_source_id
=
$self
->
get_source_id_for_source_name
(
...
...
@@ -336,6 +339,10 @@ sub create_xrefs {
$dep
{
SOURCE_NAME
}
=
$source
;
$dep
{
LINKAGE_SOURCE_ID
}
=
$xref
->
{
SOURCE_ID
};
$dep
{
SOURCE_ID
}
=
$dependent_sources
{
$source
};
if
(
$source
=~
/HGNC/
){
$acc
=~
s/HGNC://
;
$dep
{
LABEL
}
=
$extra
[
0
]
}
$dep
{
ACCESSION
}
=
$acc
;
if
(
$dep
=~
/MIM/
){
$dep
{
ACCESSION
}
=
$acc
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment