# get the OFDN (HGNC/MGI) xrefs in the xrefs and add the synonyms, plus create hash to get id from the display name
# get the OFDN (HGNC/MGI) xrefs in the xrefs and add the synonyms, plus create hash to get id from the display name and desc
# This is becouse not all MGI.HGNC's are loaded as these are priority xrefs.
#
my %display_label_to_id;
my %display_label_to_desc;
$sql = 'select x.accession, sy.synonym from synonym sy, xref x, source so where x.xref_id = sy.xref_id and so.source_id = x.source_id and so.name like "'.$dbname.'"';
$sql = 'select x.accession, sy.synonym, x.description from synonym sy, xref x, source so where x.xref_id = sy.xref_id and so.source_id = x.source_id and so.name like "'.$dbname.'"';
$sth = $self->xref->dbc->prepare('select es.synonym, x.label from synonym es, xref x, source s where x.xref_id = es.xref_id and x.source_id = s.source_id and
my $ins_xref_ver_sth = $self->xref->dbc->prepare($sql);
# important or will crash and burn!!!
my %xref_added; # store those added already $xref_added{$accession:$source_id} = $xref_id;
my $get_xref_info_sth = $self->xref->dbc->prepare("selectx.label,x.accession,s.priority_description from xref x, source s where xref_id = ? and s.source_id = x.source_id");
my $get_xref_info_sth = $self->xref->dbc->prepare("selectx.label,x.accession,s.priority_description, x.description from xref x, source s where xref_id = ? and s.source_id=x.source_id");
#
# Okay we assign unused_priority to be the number of time a vega transcript is attached to make sure