Commit f828776f authored by Web Admin's avatar Web Admin
Browse files

geneids_by_extids now checks the dbprimary_id if the display_id returns nothing

parent e380139e
......@@ -441,6 +441,19 @@ sub geneids_by_extids{
unless (scalar @genes){
$sth = $self->prepare("SELECT DISTINCT( tr.gene_id )
FROM transcript tr,
Xref x, objectXref oxr
WHERE tr.translation_id = oxr.ensembl_id
AND oxr.xrefId = x.xrefId
AND x.dbprimary_id='$name'");
while( ($a) = $sth->fetchrow_array ) {
return @genes;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment