Commits

Lan Zagar committed c5076bb

Removed obsolete Normalization widget.

  • Participants
  • Parent commits 2c8aed6

Comments (0)

Files changed (3)

_differentiation/widgets/OWDifferentiationScale.py

 """
 <name>Differentiation Scale</name>
 <description></description>
+<priority>100</priority>
 <icon>icons/Differentiation Scale.svg</icon>
 
 """

_differentiation/widgets/OWFeatureSelection.py

 """
 <name>Gene Selection</name>
 <description>Gene differential expression scoring and selection.</description>
-<priority>1010</priority>
+<priority>50</priority>
 <icon>icons/Gene Selection.svg</icon>
 """
 

_differentiation/widgets/OWNormalization.py

-"""
-<name>Normalization</name>
-<description>Gene Expression data normalization</description>
-"""
-
-from __future__ import absolute_import
-
-import os, sys
-
-import Orange
-from Orange.OrangeWidgets import OWGUI
-from Orange.OrangeWidgets.OWWidget import *
-
-from Orange.bio.differentiation import difscale
-
-class OWNormalization(OWWidget):
-    settingsList = []
-    
-    METHODS = ["Median", "Quantile"]
-    def __init__(self, parent=None, signalManager=None, title="Differentiation Scale"):
-        OWWidget.__init__(self, parent, signalManager, title, wantMainArea=False)
-        
-        self.inputs = [("Data 1", Orange.data.Table, self.set_data1), ("Data 2", Orange.data.Table, self.set_data2)]
-        self.outputs = [("Normalized Data 1", Orange.data.Table), ("Normalized Data 2", Orange.data.Table)]
-        
-        self.selected_method = "Median"
-        
-        #####
-        # GUI
-        #####
-        
-        OWGUI.comboBox(self.controlArea, self, "selected_method",
-                       box="Method",
-                       tooltip="Normalization type",
-                       items=self.METHODS,
-                       sendSelectedValue=True,
-                       callback=self.on_method_changed)
-        
-        self.data1 = None
-        self.data2 = None
-        
-        self.resize(200, 50)
-        
-    def set_data1(self, data=None):
-        self.data1 = data
-    
-    def set_data2(self, data=None):
-        self.data2 = data
-        
-    def handleNewSignals(self):
-        self.run_normalization()
-    
-    def on_method_changed(self):
-        self.run_normalization()
-        
-    def run_normalization(self):
-        if self.data1 is not None:
-            norm1, norm2 = difscale.normalize(self.data1, self.data2, type=self.selected_method.lower())
-            self.send("Normalized Data 1", norm1)
-            self.send("Normalized Data 2", norm2)
-        else:
-            self.send("Normalized Data 1", None)
-            self.send("Normalized Data 2", None)
-            
-if __name__ == "__main__":
-    app = QApplication([])
-    w = OWNormalization()
-    data = Orange.data.Table("GDS")
-    w.show()
-    app.exec_()