From 02101f1c8af427dfa4d72e31c562e893ce78de81 Mon Sep 17 00:00:00 2001 From: Ian Longden <ianl@sanger.ac.uk> Date: Fri, 24 Jun 2011 12:48:28 +0000 Subject: [PATCH] bug fix for uniprot genename having same display and accession --- misc-scripts/xref_mapping/XrefParser/UniProtParser.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm b/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm index 1dbf46b3b8..d3e4b95e95 100644 --- a/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm +++ b/misc-scripts/xref_mapping/XrefParser/UniProtParser.pm @@ -417,7 +417,9 @@ sub create_xrefs { my $syn = $1; $syn =~ s/\s+//g; @syn= split(/,/,$syn); - push @{$depe{SYNONYMS}}, @syn; + print "SYN:".join("\t",@syn)."\n"; + push (@{$depe{"SYNONYMS"}}, @syn); +# push (@{$xref->{"SYNONYMS"} }, $accessions[$a]); } } } -- GitLab