Changeset 1894:0c980fd08a69 in orange-bioinformatics for orangecontrib/bio/obiTaxonomy.py


Ignore:
Timestamp:
10/18/13 18:58:36 (6 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Changed Gene Info widget initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orangecontrib/bio/obiTaxonomy.py

    r1893 r1894  
    426426    return results 
    427427 
     428 
    428429def taxids(): 
    429430    return Taxonomy().taxids() 
     431 
     432 
     433def ensure_downloaded(calback=None, verbose=True): 
     434    """ 
     435    Retrieve the taxonomy database if not already downloaded. 
     436    """ 
     437 
     438    try: 
     439        orngServerFiles.info("Taxonomy", "ncbi_taxonomy.tar.gz") 
     440    except IOError: 
     441        orngServerFiles.download("Taxonomy", "ncbi_taxonomy.tar.gz", 
     442                                 callback=calback, verbose=verbose) 
     443 
    430444 
    431445from . import obiGenomicsUpdate 
Note: See TracChangeset for help on using the changeset viewer.