Changeset 1834:91f840200ae3 in orange-bioinformatics for _bioinformatics/obiGO.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/obiGO.py

    r1771 r1834  
    2525from Orange.orng import orngMisc 
    2626 
    27 from . import obiProb, obiGene 
     27from . import obiProb, obiGene, obiTaxonomy 
    2828 
    2929default_database_path = os.path.join(orngServerFiles.localpath(), "GO") 
     
    677677        code = organism_name_search(org) 
    678678 
     679        print "CODE: %s" % code 
     680        print "ORG: %s" % org 
     681 
    679682        file = "gene_association.%s.tar.gz" % code 
    680683 
     
    686689            if file not in available: 
    687690                from . import obiKEGG 
    688                 raise obiKEGG.OrganismNotFoundError(org + str(code)) 
     691                raise obiTaxonomy.UnknownSpeciesIdentifier(org + str(code)) 
    689692            orngServerFiles.download("GO", file) 
    690693 
Note: See TracChangeset for help on using the changeset viewer.