Changeset 1690:cba131a6a0c5 in orange-bioinformatics


Ignore:
Timestamp:
06/27/12 15:27:01 (22 months ago)
Author:
markotoplak
Branch:
default
rebase_source:
f8d7f06a83a30cce100aeb4fde2639b1c4a4a779
Message:

obiGeneSetSig: small changes in the interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiGeneSetSig.py

    r1636 r1690  
    332332 
    333333    def _get_par(self, datao): 
     334        """ Get parameters for a subset of data, that comprises only the gene set """ 
    334335        pass 
    335336         
     
    353354            #convert the example to the same domain 
    354355            exvalues = [ vou(ex, gn, name_ind2) for gn in genes2 ] + [ "?" ] 
    355             ex = numpy.array(exvalues[:-1]) 
     356            ex = Orange.data.Instance(domain, exvalues) 
    356357 
    357358            return self._use_par(ex, constructt) 
     
    366367         
    367368    def _use_par(self, ex, constructt): 
     369        ex = [ ex[i].value for i in range(len(ex.domain.attributes)) ] 
    368370        xmean, W, P, _ = constructt 
    369371        ex = ex - xmean # same input transformation 
     
    389391 
    390392    def _use_par(self, arr, constructt): 
     393        arr = [ arr[i].value for i in range(len(arr.domain.attributes)) ] 
    391394        evals, evect, xmean = constructt 
    392395 
Note: See TracChangeset for help on using the changeset viewer.