Changeset 1383:ad72d1ab59ea in orange-bioinformatics


Ignore:
Timestamp:
05/06/11 15:53:21 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
c4b7bc51ae86ac7cac631681112c41a17feb3175
Message:

Renamed Target Label group box to 'Group By'.
Fixed warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWVulcanoPlot.py

    r1378 r1383  
    285285        self.infoLabel2.setText("0 selected genes") 
    286286         
    287         box = OWGUI.widgetBox(self.controlArea, "Target Label (Class)") 
     287        box = OWGUI.widgetBox(self.controlArea, "Group By") 
    288288        self.genesInColumnsCheck = OWGUI.checkBox(box, self, "genesInColumns", "Genes in columns", callback=[self.setTargetCombo, self.plot]) 
    289289        self.targetClassCombo = OWGUI.comboBox(box, self, "targetClass", callback=self.plot) 
     
    367367        self.values = {} 
    368368        if self.data and self.targets: 
    369             self.warning(0) 
     369            self.warning([0, 1]) 
    370370            targetClassIndex = min(self.targetClass, len(self.targets) - 1) 
    371             if self.targetMeasurements[targetClassIndex] < 2 or sum(self.targetMeasurements) - self.targetMeasurements[targetClassIndex] < 2: 
     371            if self.targetMeasurements[targetClassIndex] < 2 and sum(self.targetMeasurements) - self.targetMeasurements[targetClassIndex] < 2: 
    372372                self.warning(0, "Insufficient data to compute statistics. More than one measurement per class should be provided") 
    373373            targetClass = self.targets[targetClassIndex] 
     
    386386            logpval = -numpy.log10([p for k, (t, p) in tt]) 
    387387            self.values = dict(zip([k for k, v in tt], zip(logratio, logpval))) 
     388            if not self.values: 
     389                self.warning(1, "Could not compute statistics for any genes!") 
    388390            self.progressBarFinished() 
    389391        self.graph.setPlotValues(self.values) 
Note: See TracChangeset for help on using the changeset viewer.