Changeset 1738:1f7725e12b25 in orange-bioinformatics for _bioinformatics/obiKEGG/__init__.py


Ignore:
Timestamp:
04/05/13 19:43:39 (13 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed 'organism_name_search' for KEGG Genome ids.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiKEGG/__init__.py

    r1736 r1738  
    308308    def organism_name_search(cls, name): 
    309309        genome = KEGGGenome() 
     310        try: 
     311            name = genome.org_code_to_entry_key(name) 
     312        except KeyError: 
     313            pass 
     314 
    310315        if name not in genome: 
    311316            ids = genome.search(name) 
Note: See TracChangeset for help on using the changeset viewer.