Changeset 1835:fa00a0fd32a9 in orange-bioinformatics for _bioinformatics/obiGeneSets.py


Ignore:
Timestamp:
07/05/13 10:00:39 (10 months ago)
Author:
Flashpoint <vid.flashpoint@…>
Branch:
default
Children:
1836:b14df26ba71c, 1837:3ca19c9e0eb2
Message:

Fixed the exception handling in obiGeneSets.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiGeneSets.py

    r1834 r1835  
    426426    genesetsfn = [ keggGeneSets, goGeneSets, miRNAGeneSets] 
    427427    organisms = obiTaxonomy.common_taxids() 
    428     organisms = [ "3055" ] 
    429428    for fn in genesetsfn: 
    430429        for org in organisms: 
     
    437436                    #register(gs) 
    438437                    print "successful", gs.common_hierarchy() 
    439             except obiTaxonomy.UnknownSpeciesIdentifier, GenesetRegException: 
    440                 print "organism not found", org 
     438            except obiTaxonomy.UnknownSpeciesIdentifier: 
     439                print "Organism ontology not available", org 
     440            except GenesetRegException: 
     441                print "Empty gene sets.", org 
    441442 
    442443if __name__ == "__main__": 
Note: See TracChangeset for help on using the changeset viewer.