Commits

Aleš Erjavec committed 736722e

Fixed taxid mapping in to_taxid function.

Comments (0)

Files changed (1)

obiKEGG2/__init__.py

 
 def to_taxid(name):
     genome = KEGGGenome()
+    if name in genome:
+        return genome[name].taxid
+    
     keys = genome.search(name)
     if keys:
         return genome[keys[0]].taxid