Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -441,6 +441,19 @@ sub geneids_by_extids{
push(@genes,$a);
}
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'");
$sth->execute();
while( ($a) = $sth->fetchrow_array ) {
push(@genes,$a);
}
}
return @genes;
}
......
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