Changeset 1834:91f840200ae3 in orange-bioinformatics for _bioinformatics/obiGeneSets.py


Ignore:
Timestamp:
07/03/13 14:47:13 (10 months ago)
Author:
Flashpoint <vid.flashpoint@…>
Branch:
default
Message:

Changed the exception value from KEGG.OrganismNotFound to obiTaxonomy.UnknownSpeciesIdentifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiGeneSets.py

    r1828 r1834  
    426426    genesetsfn = [ keggGeneSets, goGeneSets, miRNAGeneSets] 
    427427    organisms = obiTaxonomy.common_taxids() 
     428    organisms = [ "3055" ] 
    428429    for fn in genesetsfn: 
    429430        for org in organisms: 
     
    436437                    #register(gs) 
    437438                    print "successful", gs.common_hierarchy() 
    438             except (obiKEGG.OrganismNotFoundError, GenesetRegException): 
     439            except obiTaxonomy.UnknownSpeciesIdentifier, GenesetRegException: 
    439440                print "organism not found", org 
    440441 
Note: See TracChangeset for help on using the changeset viewer.