Changeset 1709:d9f0ae5a3c67 in orange-bioinformatics for _bioinformatics/obiGeneSetSig.py


Ignore:
Timestamp:
08/13/12 17:51:24 (20 months ago)
Author:
markotoplak
Branch:
default
Message:

Speed up PCA and PLS (obiGeneSetSig).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiGeneSetSig.py

    r1708 r1709  
    370370        domain = Orange.data.Domain([data.domain.attributes[name_ind[gene]] for gene in genes], data.domain.class_var) 
    371371        datao = Orange.data.Table(domain, data) 
     372        takegenes = [ geneset[i] for i in takegenes ] 
    372373 
    373374        constructt = self._get_par(datao) 
    374375 
    375         def t(ex, w, geneset=geneset, constructt=constructt, takegenes=takegenes, domain=domain): 
    376             nm2, name_ind2, genes2 = self._match_instance(ex, geneset, takegenes) 
     376        def t(ex, w, constructt=constructt, takegenes=takegenes, domain=domain): 
     377            nm2, name_ind2, genes2 = self._match_instance(ex, takegenes) 
    377378           
    378379            #convert the example to the same domain 
Note: See TracChangeset for help on using the changeset viewer.