Changeset 1712:bcd52ead3d93 in orange-bioinformatics for _bioinformatics/obiGO.py


Ignore:
Timestamp:
08/21/12 15:06:38 (20 months ago)
Author:
markotoplak
Branch:
default
Message:

Classes for storing gene set data moved to Orange.bio.geneset. obiGeneSets adapted to make new pickled classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiGO.py

    r1682 r1712  
    624624 
    625625        path = os.path.join(orngServerFiles.localpath("GO"), file) 
     626 
    626627        if not os.path.exists(path): 
     628            sf = orngServerFiles.ServerFiles() 
     629            available = sf.listfiles("GO") 
     630            if file not in available: 
     631                from . import obiKEGG2 
     632                raise obiKEGG2.OrganismNotFoundError(org + str(code)) 
    627633            orngServerFiles.download("GO", file) 
     634 
    628635        return cls(path, ontology=ontology, genematcher=genematcher, progressCallback=progressCallback) 
    629636     
Note: See TracChangeset for help on using the changeset viewer.