From aa6d0d24590a0d136830873bfbcf95fec3cba3cd Mon Sep 17 00:00:00 2001 From: Ian Longden <ianl@sanger.ac.uk> Date: Wed, 4 Nov 2009 10:07:58 +0000 Subject: [PATCH] Do not get HGNC from Uniprot anymore as this makes it circular --- misc-scripts/xref_mapping/XrefParser/UniProtParser.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm b/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm index c20543083d..b75aef5409 100644 --- a/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm +++ b/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm @@ -168,10 +168,10 @@ 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 from HGNC file +# if(defined($dependent_sources{'HGNC'})){ +# $dependent_sources{'HGNC'} = XrefParser::BaseParser->get_source_id_for_source_name("HGNC","uniprot"); +# } if(defined($dependent_sources{'MGI'})){ $dependent_sources{'MGI'} = XrefParser::BaseParser->get_source_id_for_source_name("MGI","uniprot"); @@ -488,6 +488,9 @@ sub create_xrefs { if($source =~ "UCSC"){ next; } + if($source =~ "HGNC"){ + next; + } if (exists $dependent_sources{$source} ) { # create dependent xref structure & store it my %dep; -- GitLab