@@ -201,20 +201,23 @@ my $sql = 'select distinct(s.synonym), x.accession from xref x, synonym s, sourc
}
$sth->finish;
# get the HGNC xrefs in the core and add the synonyms
# get the HGNC xrefs in the core and add the synonyms, plus cretae hash to get id from the display name
my%display_label_to_id;
my$hgnc_file=$self->core->dir()."/hgnc_syn.txt";
open(SYN,">$hgnc_file")||die"Could not open file $hgnc_file";
$sql='select x.dbprimary_acc, x.xref_id from xref x, external_db e where e.external_db_id = x.external_db_id and e.db_name like "HGNC"';
$sql='select x.dbprimary_acc, x.xref_id, x.display_label from xref x, external_db e where e.external_db_id = x.external_db_id and e.db_name like "HGNC"';