Changeset 1554:c965b96e5c41 in orange-bioinformatics


Ignore:
Timestamp:
02/05/12 18:49:03 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

Pre cache pathways, using (KEGG, pathways) gene set hierarchy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWKEGGPathwayBrowser.py

    r1534 r1554  
    414414        items = [] 
    415415        kegg_pathways = obiKEGG.KEGGPathways() 
     416        kegg_pathways.pre_cache(self.pathways.keys()) 
    416417         
    417418        if self.showOrthology: 
     
    602603             
    603604        with orngServerFiles.DownloadProgress.setredirect(self.progressBarSet): 
    604             kegg_gs_collections = list(obiGeneSets.collections((("KEGG",), taxid))) 
     605            orngServerFiles.update(obiGeneSets.sfdomain, "index.pck") 
     606            kegg_gs_collections = list(obiGeneSets.collections((("KEGG", "pathways"), taxid))) 
    605607         
    606608        print self.genes 
     
    778780            p_values.append(p_val) 
    779781        if callback is not None: 
    780             callback(100.0 * i / len(genes)) 
     782            callback(100.0 * i / len(genesets)) 
    781783     
    782784    # FDR correction 
     
    794796##    app.setMainWidget(w) 
    795797    w.show() 
    796     w.SetData(orange.ExampleTable(data[-20:])) 
     798    w.SetData(orange.ExampleTable(data[:])) 
    797799    QTimer.singleShot(10, w.handleNewSignals) 
    798800    app.exec_() 
Note: See TracChangeset for help on using the changeset viewer.