Commits

Aleš Erjavec committed 1f7725e

Fixed 'organism_name_search' for KEGG Genome ids.

  • Participants
  • Parent commits 729925f

Comments (0)

Files changed (1)

File _bioinformatics/obiKEGG/__init__.py

     @classmethod
     def organism_name_search(cls, name):
         genome = KEGGGenome()
+        try:
+            name = genome.org_code_to_entry_key(name)
+        except KeyError:
+            pass
+
         if name not in genome:
             ids = genome.search(name)
             if not ids: