Commits

Aleš Erjavec  committed f3f90e6

Optimize the case where the organism identifier is a known common taxid.

  • Participants
  • Parent commits f8dfe8b

Comments (0)

Files changed (1)

File orangecontrib/bio/obiGene.py

 
     @classmethod
     def organism_name_search(cls, org):
+        if org in cls.common_taxids():
+            return org
+        elif org in NCBIGeneInfo.TAX_MAP:
+            return NCBIGeneInfo.TAX_MAP[org]
+
         taxids = obiTaxonomy.to_taxid(org, mapTo=cls.common_taxids())
         if not taxids:
             taxids = obiTaxonomy.search(org, onlySpecies=False)