Changeset 1708:c442e936f1ef in orange-bioinformatics


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

Another speedup of SetSig. Now it is 30% faster on DLBCL.tab with no_unknowns=True.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiGeneSetSig.py

    r1707 r1708  
    336336        nm, name_ind, genes, takegenes = self._match_data(data, geneset) 
    337337        indices = [ name_ind[gene] for gene in genes ] 
    338  
    339         def t(ex, w, gs=gs, data=data, indices=indices, takegenes=takegenes, geneset=geneset): 
    340             nm2, name_ind2, genes2 = self._match_instance(ex, geneset, takegenes) 
     338        takegenes = [ geneset[i] for i in takegenes ] 
     339 
     340        def t(ex, w, gs=gs, data=data, indices=indices, takegenes=takegenes): 
     341            nm2, name_ind2, genes2 = self._match_instance(ex, takegenes) 
    341342 
    342343            domain = Orange.data.Domain([data.domain.attributes[i] for i in indices], data.domain.class_var) 
Note: See TracChangeset for help on using the changeset viewer.