示例#1
0
    def __init__(self, dProject, parent=None):
        QtGui.QWidget.__init__(self, parent)

        self.title = QtGui.QLabel(self.tr("<center><b>SCALE</b></center>"))
        self.name = "Scale"
        self.toolID = 1

        self.dProject = dProject
        self.dOutput = dProject['dData'].copy()

        self.label0 = {}
        self.doubleSpinBox0 = {}
        for key in self.dProject['chKeyRS']:
            self.label0[key] = QtGui.QLabel(key)
            self.doubleSpinBox0[key] = QtGui.QDoubleSpinBox()
            self.doubleSpinBox0[key].setRange(0.01, 100.00)
            self.doubleSpinBox0[key].setValue(1.00)
            self.doubleSpinBox0[key].setSingleStep(0.01)

        self.groupBox1 = QtGui.QGroupBox(self.tr('Enter Scale Factor'))

        vbox = QtGui.QGridLayout()
        vbox.addWidget(self.label0['RX'], 0, 0)
        vbox.addWidget(self.doubleSpinBox0['RX'], 0, 1)
        vbox.addWidget(self.label0['BG'], 1, 0)
        vbox.addWidget(self.doubleSpinBox0['BG'], 1, 1)
        vbox.addWidget(self.label0['RXS1'], 2, 0)
        vbox.addWidget(self.doubleSpinBox0['RXS1'], 2, 1)
        vbox.addWidget(self.label0['BGS1'], 3, 0)
        vbox.addWidget(self.doubleSpinBox0['BGS1'], 3, 1)
        if self.dProject['isSeq2']:
            vbox.addWidget(self.label0['RXS2'], 4, 0)
            vbox.addWidget(self.doubleSpinBox0['RXS2'], 4, 1)
            vbox.addWidget(self.label0['BGS2'], 5, 0)
            vbox.addWidget(self.doubleSpinBox0['BGS2'], 5, 1)

        vbox.setContentsMargins(0, 0, 0, 0)
        self.groupBox1.setLayout(vbox)

        self.pushButton0 = QtGui.QPushButton('Scale All to BG')
        self.connect(self.pushButton0, QtCore.SIGNAL("clicked()"),
                     self.autoScale)

        ### Button Box
        self.buttonBox = ToolButton()
        ## Main Layout
        self.groupBoxROI = GroupBoxROI(self.dProject)

        mainLayout = QtGui.QVBoxLayout()
        mainLayout.addWidget(self.title)
        mainLayout.addWidget(self.groupBox1)
        mainLayout.addWidget(self.pushButton0)
        mainLayout.addWidget(self.groupBoxROI.groupBox)
        mainLayout.addStretch()
        mainLayout.addWidget(self.buttonBox)

        self.setLayout(mainLayout)
        self.isToolApplied = False
示例#2
0
    def __init__(self, dProject,parent=None):
        QtGui.QWidget.__init__(self, parent)
        
        self.labelTitle = QtGui.QLabel(self.tr("<center><b>SIGNAL DECAY CORRECTION</b></center>"))
        self.name="Signal Decay Correction"
        self.toolID=4
        
        self.dProject=dProject
        self.dOutput=dProject['dData'].copy()
        self.dProjOut=deepcopy(dProject)
        self.isToolApplied=False
        
        
        self.spinBox0=QtGui.QDoubleSpinBox()    
        self.spinBox0.setRange(0,2.0)
        self.spinBox0.setValue(0.2)
        self.spinBox0.setSingleStep(0.1)
          
        ####  Group  Box Radio
        self.radioButton0 = QtGui.QRadioButton(self.tr(" Automatic Summation "))
        self.radioButton1 = QtGui.QRadioButton(self.tr("Exponential"))
        self.radioButton2 = QtGui.QRadioButton(self.tr("Summation       - Factor"))
        
        self.radioButton0.setChecked(True)

        layout0 = myGridLayout()
        layout0.addWidget(self.radioButton0,0,0)
        layout0.addWidget(self.radioButton1,1,0)
        layout0.addWidget(self.radioButton2,2,0)
        layout0.addWidget(self.spinBox0,2,1)
        groupBox0 = QtGui.QGroupBox(self.tr("Select a method"))
        groupBox0.setLayout(layout0)    
        
 ### Button Box
        self.buttonBox = ToolButton()
        self.groupBoxROI=GroupBoxROI(self.dProject)
        self.applyChannel=ApplyChannel(self.dProject)
### Main Layout
        mainLayout=QtGui.QVBoxLayout()
        mainLayout.addWidget(self.labelTitle)
        mainLayout.addWidget(groupBox0) 
        mainLayout.addWidget(self.groupBoxROI.groupBox)
        mainLayout.addWidget(self.applyChannel.groupBox)
        
        mainLayout.addStretch()
        mainLayout.addWidget(self.buttonBox)
        self.setLayout(mainLayout)
示例#3
0
    def __init__(self, text, parent=None):
        QtGui.QGroupBox.__init__(self, parent)

        label0 = QtGui.QLabel('Scale Factor')
        self.doubleSpinBox0 = QtGui.QDoubleSpinBox()
        self.doubleSpinBox0.setRange(0, 100.0)
        self.doubleSpinBox0.setValue(1.00)
        self.doubleSpinBox0.setSingleStep(0.01)

        self.checkBoxScale0 = QtGui.QCheckBox('Scale by windowing')
        self.checkBoxScale0.setWhatsThis(
            "This option is especially useful for long traces."
            " Scaling is applied locally not globally.")
        layout0 = myGridLayout()
        layout0.addWidget(self.checkBoxScale0, 0, 0, 1, 2)
        layout0.addWidget(label0, 1, 0)
        layout0.addWidget(self.doubleSpinBox0, 1, 1)
        self.setTitle(self.tr(text))
        self.setLayout(layout0)
示例#4
0
    def __init__(self, dVar, chKeyRS, parent=None):
        super(DlgLineProps, self).__init__(parent)
        self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
        self.setModal(False)

        self.labelTitle = QtGui.QLabel(
            self.tr("<center><b>CHANNEL ATTRIBUTES</b></center>"))
        self.name = "Channel Attributes"
        self.toolID = 3

        self.dVar = dVar.copy()
        self.chKeyRS = chKeyRS

        labels = ["Channel", "Color", "Line", "Marker", "Width"]
        self.label = {}
        self.checkBox0 = {}
        self.pushButton0 = {}
        self.comboBoxLineStyle = {}
        lineStyles = ["solid", "dashed", "dash_dot", "dotted"]
        self.lineStyles = ['-', '--', '-.', ':']
        self.comboBoxMarkerStyle = {}
        markerStyles = [
            "none", "point", "circle", "star", "square", "plus", "X", "diamond"
        ]
        self.markerStyles1 = ['', '.', 'o', '*', 's', '+', 'x', 'D']
        self.doubleSpinBoxLW = {}
        for key in chKeyRS:
            self.checkBox0[key] = QtGui.QCheckBox(key)
            self.checkBox0[key].setChecked(self.dVar['lineVisible'][key])
            self.pushButton0[key] = QtGui.QPushButton()
            self.pushButton0[key].setStyleSheet(
                "QWidget { background-color: %s }" %
                self.dVar['lineColor'][key])
            self.comboBoxLineStyle[key] = QtGui.QComboBox()
            self.comboBoxLineStyle[key].addItems(lineStyles)
            self.comboBoxMarkerStyle[key] = QtGui.QComboBox()
            self.comboBoxMarkerStyle[key].addItems(markerStyles)
            self.doubleSpinBoxLW[key] = QtGui.QDoubleSpinBox()
            self.doubleSpinBoxLW[key].setValue(1.0)
            self.doubleSpinBoxLW[key].setSingleStep(0.1)

        layout0 = myGridLayout()
        for i in range(len(labels)):
            self.label[i] = QtGui.QLabel(labels[i])
            layout0.addWidget(self.label[i], 0, i)

        for key in chKeyRS:  #self.dChKeys['RS']:
            index = chKeyRS.index(key) + 1
            layout0.addWidget(self.checkBox0[key], index, 0)
            layout0.addWidget(self.pushButton0[key], index, 1)
            layout0.addWidget(self.comboBoxLineStyle[key], index, 2)
            layout0.addWidget(self.comboBoxMarkerStyle[key], index, 3)
            layout0.addWidget(self.doubleSpinBoxLW[key], index, 4)

        self.buttonBox = QtGui.QDialogButtonBox(QtGui.QDialogButtonBox.Apply
                                                | QtGui.QDialogButtonBox.Close)

        self.connect(self.pushButton0['RX'], QtCore.SIGNAL("clicked()"),
                     self.changeColorRX)
        self.connect(self.pushButton0['RXS1'], QtCore.SIGNAL("clicked()"),
                     self.changeColorRXS1)
        self.connect(self.pushButton0['BG'], QtCore.SIGNAL("clicked()"),
                     self.changeColorBG)
        self.connect(self.pushButton0['BGS1'], QtCore.SIGNAL("clicked()"),
                     self.changeColorBGS1)
        if 'RXS2' in chKeyRS:
            self.connect(self.pushButton0['RXS2'], QtCore.SIGNAL("clicked()"),
                         self.changeColorRXS2)
        if 'BGS2' in chKeyRS:
            self.connect(self.pushButton0['BGS2'], QtCore.SIGNAL("clicked()"),
                         self.changeColorBGS2)

        self.connect(self.buttonBox.button(QtGui.QDialogButtonBox.Apply),
                     QtCore.SIGNAL("clicked()"), self.apply)
        self.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), self.reject)

        mainLayout = QtGui.QVBoxLayout()
        mainLayout.addLayout(layout0)
        mainLayout.addWidget(self.buttonBox)
        self.setLayout(mainLayout)

        self.title = "Channel Attributes"
        self.setWindowTitle(self.title)
示例#5
0
    def __init__(self, dVar, chKeyRS, parent=None):
        super(DlgFigureSet, self).__init__(parent)
        self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
        self.setModal(False)

        self.labelTitle = QtGui.QLabel(
            self.tr("<center><b>FIGURE SETTING</b></center>"))
        self.name = "Figure Setting"
        self.toolID = 3

        self.dVar = dVar.copy()
        self.chKeyRS = chKeyRS

        # Size, width, height, resolution,

        labelT = QtGui.QLabel('Size style')
        self.comboBox0 = QtGui.QComboBox()
        self.comboBox0.addItems(['Percentage', 'Inches'])

        labelW = QtGui.QLabel("Width")
        self.spinBoxWidth = QtGui.QSpinBox()
        self.spinBoxWidth.setRange(10, 200)
        self.spinBoxWidth.setValue(100)
        self.spinBoxWidth.setSingleStep(10)
        self.spinBoxWidth.setSuffix(" %")

        labelH = QtGui.QLabel("Height")
        self.spinBoxHeight = QtGui.QSpinBox()
        self.spinBoxHeight.setRange(10, 200)
        self.spinBoxHeight.setValue(100)
        self.spinBoxHeight.setSingleStep(10)
        self.spinBoxHeight.setSuffix(" %")

        self.checkBoxFitWindow = QtGui.QCheckBox("Fit into Window")

        labelR = QtGui.QLabel("Zoom")
        self.spinBoxR = QtGui.QSpinBox()
        self.spinBoxR.setRange(10, 1000)
        self.spinBoxR.setValue(100)
        self.spinBoxR.setSingleStep(50)

        layout0 = myGridLayout()
        layout0.addWidget(self.checkBoxFitWindow, 0, 0, 1, 2)
        layout0.addWidget(labelT, 1, 0)
        layout0.addWidget(self.comboBox0, 1, 1)
        layout0.addWidget(labelW, 2, 0)
        layout0.addWidget(self.spinBoxWidth, 2, 1)
        layout0.addWidget(labelH, 3, 0)
        layout0.addWidget(self.spinBoxHeight, 3, 1)
        layout0.addWidget(labelR, 4, 0)
        layout0.addWidget(self.spinBoxR, 4, 1)

        groupBox0 = QtGui.QGroupBox(self.tr('Figure Options'))
        groupBox0.setLayout(layout0)

        labelSubs = {}
        self.spinBoxSubs = {}
        self.keySubs = ['top', 'bottom', 'left', 'right']  #,'wspace','hspace']
        for key in self.keySubs:
            labelSubs[key] = QtGui.QLabel(key)
            self.spinBoxSubs[key] = QtGui.QDoubleSpinBox()
            self.spinBoxSubs[key].setRange(0, 1)
            self.spinBoxSubs[key].setValue(self.dVar[key])
            self.spinBoxSubs[key].setSingleStep(0.01)

        layout1 = myGridLayout()
        i = 0
        while i < len(self.keySubs):
            key = self.keySubs[i]
            layout1.addWidget(labelSubs[key], i, 0)
            layout1.addWidget(self.spinBoxSubs[key], i, 1)
            i += 1
            key = self.keySubs[i]
            layout1.addWidget(labelSubs[key], i - 1, 2)
            layout1.addWidget(self.spinBoxSubs[key], i - 1, 3)
            i += 1

        groupBox1 = QtGui.QGroupBox(self.tr('Subplot Configuration'))
        groupBox1.setLayout(layout1)

        self.checkBoxSatd = QtGui.QCheckBox('Draw Saturated Points')
        self.lanelXLim = QtGui.QLabel('Set Xlim')
        self.fromSpinBox = QtGui.QSpinBox()
        self.toSpinBox = QtGui.QSpinBox()
        fromLabel = QtGui.QLabel('From')
        toLabel = QtGui.QLabel('To')

        self.buttonBox = QtGui.QDialogButtonBox(QtGui.QDialogButtonBox.Apply
                                                | QtGui.QDialogButtonBox.Close)

        mainLayout = QtGui.QVBoxLayout()
        mainLayout.addWidget(groupBox0)
        mainLayout.addWidget(groupBox1)
        mainLayout.addWidget(self.buttonBox)
        self.setLayout(mainLayout)

        self.title = "Channel Attributes"
        self.setWindowTitle(self.title)
示例#6
0
    def __init__(self, dProject, parent=None):
        QtGui.QWidget.__init__(self, parent)

        self.title = QtGui.QLabel(
            self.tr("<center><b>SEQUENCE ALIGNMENT</b></center>"))
        self.name = "Sequence Alignment"
        self.toolID = 1

        self.dProject = dProject
        self.dProjOut = deepcopy(dProject)

        self.fileReadSeq = DlgSelectFile(
            'Seq. File', "Base Files (*.txt *.fasta *.gbk *.seq )",
            self.dProject['dir'])
        self.fileReadSeq.lineEdit0.setText(self.dProject['fNameSeq'])
        self.seqRNA3to5 = self.dProjOut['RNA'][::-1]
        self.seqRNA3to5N = changeNucToN(self.seqRNA3to5, self.dProjOut)
        self.NSeqRNA = len(self.dProjOut['RNA'])

        ###  SEQUENCE FIND
        label0 = QtGui.QLabel("Channel")
        label1 = QtGui.QLabel("ddNTP")
        label2 = QtGui.QLabel('Thres')

        self.comboBox0 = QtGui.QComboBox()
        self.comboBox1 = QtGui.QComboBox()
        self.comboBox2 = QtGui.QComboBox()
        self.comboBox3 = QtGui.QComboBox()

        self.spinBox0 = QtGui.QDoubleSpinBox()
        self.spinBox0.setRange(-3, 3)
        self.spinBox0.setValue(0.5)
        self.spinBox0.setSingleStep(0.1)

        choices0 = ['BGS1', 'RXS1']
        self.choicesNuc = ['ddC', 'ddG', 'ddA', 'ddT']
        self.nucNames = ['G', 'C', 'U', 'A']

        self.comboBox0.addItems(choices0)
        self.comboBox1.addItems(self.choicesNuc)
        self.comboBox1.setCurrentIndex(
            self.nucNames.index(self.dProject['nuc1']))

        self.radioSeqFind0 = QtGui.QRadioButton('Histogram')
        self.radioSeqFind1 = QtGui.QRadioButton('Background')

        layoutMethod = myHBoxLayout()
        layoutMethod.addWidget(self.radioSeqFind0)
        layoutMethod.addWidget(self.radioSeqFind1)

        gridLayout = myGridLayout()

        gridLayout.addWidget(label0, 0, 0)
        gridLayout.addWidget(label1, 0, 1)
        #      gridLayout.addWidget(label2, 0, 2)
        gridLayout.addWidget(self.comboBox0, 1, 0)
        gridLayout.addWidget(self.comboBox1, 1, 1)
        #     gridLayout.addWidget(self.spinBox0, 1, 2)

        if self.dProject[
                'isSeq2']:  #('RXS2' in self.dInput.keys()) and ('BGS2' in self.dInput.keys()):
            choices2 = ['BGS2', 'RXS2']
            self.comboBox2.addItems(choices2)
            self.comboBox3.addItems(self.choicesNuc)
            self.comboBox3.setCurrentIndex(
                self.nucNames.index(self.dProject['nuc2']))
            self.spinBox1 = QtGui.QDoubleSpinBox()
            self.spinBox1.setRange(-3, 3)
            self.spinBox1.setValue(0.5)
            self.spinBox1.setSingleStep(0.1)
            gridLayout.addWidget(self.comboBox2, 2, 0)
            gridLayout.addWidget(self.comboBox3, 2, 1)

    #    gridLayout.addWidget(self.spinBox1, 2, 2)

        self.checkBox0 = QtGui.QCheckBox('Check for high BG peaks')

        self.groupBoxBaseCall = QtGui.QGroupBox('Base Calling')
        self.groupBoxBaseCall.setLayout(gridLayout)
        self.groupBoxBaseCall.setCheckable(True)

        ##  LAYOUTS
        labelSetting2 = QtGui.QLabel("Seq Range: From")
        labelSetting3 = QtGui.QLabel("To:")
        labelSetting4 = QtGui.QLabel("Seq Start: ")

        self.spinBoxSeqRangeFrom = QtGui.QSpinBox()
        self.spinBoxSeqRangeTo = QtGui.QSpinBox()
        try:
            self.setSpinBoxSeq()
        except:
            pass
        self.spinBoxSeqOffset = QtGui.QSpinBox()
        self.spinBoxSeqOffset.setRange(0, len(self.dProject['RNA']))

        self.checkBoxLineDraw = QtGui.QCheckBox('Draw peak match lines')
        self.checkBoxLineDraw.setChecked(True)
        layoutSetting = myGridLayout()
        layoutSetting.addWidget(labelSetting2, 0, 0)
        layoutSetting.addWidget(self.spinBoxSeqRangeFrom, 0, 1)
        layoutSetting.addWidget(labelSetting3, 0, 2)
        layoutSetting.addWidget(self.spinBoxSeqRangeTo, 0, 3)
        #       layoutSetting.addWidget(self.checkBoxLineDraw,1,0,1,2)

        self.groupBoxSettings = QtGui.QGroupBox('Settings')
        self.groupBoxSettings.setLayout(layoutSetting)

        text = "HINT: Click a Nuc to change the type. \
                Press Key 'A' button and click to add a Nuc.\
                Press Key 'D' button and click to delete a Nuc. \
                Press Key 'Shift' button and select a peak to change position. "

        self.hint = hintLabel(text)

        self.connect(self.fileReadSeq.pushButton0, QtCore.SIGNAL("clicked()"),
                     self.changeSeqFile)

        self.buttonBox = ToolButton()

        mainLayout = QtGui.QVBoxLayout()
        mainLayout.addWidget(self.title)
        mainLayout.addWidget(self.fileReadSeq)
        mainLayout.addWidget(self.groupBoxBaseCall)
        mainLayout.addWidget(self.groupBoxSettings)
        mainLayout.addWidget(self.hint)
        mainLayout.addStretch()
        mainLayout.addWidget(self.buttonBox)
        self.setLayout(mainLayout)
        self.isToolApplied = False
示例#7
0
    def __init__(self, dProject, dProjRef, parent=None):
        QtGui.QWidget.__init__(self, parent)

        self.title = QtGui.QLabel(
            self.tr("<center><b>SEQUENCE ALIGNMENT BY REFERENCE</b></center>"))
        self.name = "Sequence Alignment by Reference"
        self.toolID = 1

        self.dProject = dProject
        self.dProjRef = dProjRef
        self.linkXR, self.linkXS = np.array([]), np.array([])
        self.linkYR, self.linkYS = np.array([]), np.array([])
        self.dataR, self.dataS = np.array([]), np.array([])

        #### BY REFERENCE
        self.fileReadRef = DlgSelectFile(
            'Ref. Proj.', "Reference Project (*.pyShape *.qushape)",
            self.dProject['dir'])
        if 'fNameRef' in self.dProject.keys():
            self.fileReadRef.lineEdit0.setText(self.dProject['fNameRef'])
        self.connect(self.fileReadRef.pushButton0, QtCore.SIGNAL("clicked()"),
                     self.changeRefFile)

        label10 = QtGui.QLabel("Ref. Channel")
        self.comboBox10 = QtGui.QComboBox()
        self.comboBox10.addItems(chKeysRS)
        self.comboBox10.setCurrentIndex(3)

        label11 = QtGui.QLabel("Sample Channel")
        self.comboBox11 = QtGui.QComboBox()
        self.comboBox11.addItems(chKeysRS)
        self.comboBox11.setCurrentIndex(3)

        layout0 = myGridLayout()
        layout0.addWidget(self.fileReadRef, 0, 0, 1, 2)
        layout0.addWidget(label10, 1, 0)
        layout0.addWidget(self.comboBox10, 1, 1)
        layout0.addWidget(label11, 2, 0)
        layout0.addWidget(self.comboBox11, 2, 1)

        self.groupBox0 = QtGui.QGroupBox(self.tr('Signal Alignment'))
        self.groupBox0.setLayout(layout0)
        self.groupBox0.setCheckable(True)

        labelRX = QtGui.QLabel('Scale Factor for RX')
        labelBG = QtGui.QLabel('Scale Factor for BG')
        self.spinBoxRX = QtGui.QDoubleSpinBox()
        self.spinBoxRX.setRange(0.01, 100.00)
        self.spinBoxRX.setValue(1.00)
        self.spinBoxRX.setSingleStep(0.01)
        self.spinBoxBG = QtGui.QDoubleSpinBox()
        self.spinBoxBG.setRange(0.01, 100.00)
        self.spinBoxBG.setValue(1.00)
        self.spinBoxBG.setSingleStep(0.01)

        self.checkBoxScale0 = QtGui.QCheckBox('Scale by windowing')

        layout1 = myGridLayout()
        layout1.addWidget(labelRX, 0, 0)
        layout1.addWidget(self.spinBoxRX, 0, 1)
        layout1.addWidget(labelBG, 1, 0)
        layout1.addWidget(self.spinBoxBG, 1, 1)
        layout1.addWidget(self.checkBoxScale0, 2, 0, 1, 2)

        self.groupBox1 = QtGui.QGroupBox(self.tr('Scale RX and BG'))
        self.groupBox1.setLayout(layout1)
        # self.groupBox1.setCheckable(True)

        #  self.button0=QtGui.QPushButton('Modify Matched Peaks')
        #  self.button0.setEnabled(False)

        self.button0 = peakMatchModifyButton()

        self.button1 = QtGui.QPushButton('Modify Peak Link by Reference')
        self.button1.setEnabled(False)
        self.button1.setWhatsThis(
            self.
            tr(" Check the accuracy of linked peaks"
               " by C\changing the peak position in the sample RX and BG peaks."
               " Press Key 'Shift' button and select a sample peak to change position. "
               ))
        text = self.tr(
            "HINT: When the matched peaks are modified; Key 'A'  to add a Peak. Key 'D'  to delete a Peak. Key 'Shift' to change position. "
        )
        self.hint = hintLabel(text)

        ### BUTTON BOX
        self.buttonBox = ToolButton()

        ## MAIN LAYOUT
        mainLayout = QtGui.QVBoxLayout()
        mainLayout.addWidget(self.title)
        mainLayout.addWidget(self.groupBox0)
        mainLayout.addWidget(self.button0)
        mainLayout.addWidget(self.button1)
        mainLayout.addWidget(self.hint)
        mainLayout.addStretch()
        mainLayout.addWidget(self.buttonBox)
        self.setLayout(mainLayout)
        self.isClickedModifyMatchedPeaks = True
        self.isToolApplied = False
        self.isMatchedPeaksChanged = True
示例#8
0
    def __init__(self, dProject, dProjRef, parent=None):
        QtGui.QWidget.__init__(self, parent)

        self.labelTitle = QtGui.QLabel(
            self.tr("<center><b>REACTIVITY</b></center>"))
        self.name = "Reactivity"
        self.toolID = 1

        self.dProject = dProject
        self.dProjRef = dProjRef
        self.dProjOut = deepcopy(self.dProject)

        self.scaleFactor = 1

        self.checkBox0 = QtGui.QCheckBox('Scale and Normalize with Reference')

        ## SCALE
        self.groupBox1 = scaleGroupBox("Scale BG")

        ## NORMALIZATION
        label0 = QtGui.QLabel('Outlier')
        label1 = QtGui.QLabel('Average')
        self.spinBox0 = QtGui.QDoubleSpinBox()
        self.spinBox1 = QtGui.QDoubleSpinBox()
        self.spinBox0.setRange(0, 9)
        self.spinBox1.setRange(0, 15)
        self.spinBox0.setSuffix("%")
        self.spinBox1.setSuffix("%")
        self.spinBox0.setSingleStep(0.25)
        self.spinBox1.setSingleStep(0.25)
        self.spinBox0.setValue(2.0)
        self.spinBox1.setValue(10.0)

        self.checkBox1 = QtGui.QCheckBox("Set Negative Value to Zero")

        layout2 = myHBoxLayout()
        layout2.addWidget(label0)
        layout2.addWidget(self.spinBox0)
        #  layout2.addWidget(label1)
        #  layout2.addWidget(self.spinBox1)

        layout21 = myVBoxLayout()
        #   layout21.addWidget(self.radioNormCluster)
        layout21.addLayout(layout2)
        layout21.addWidget(self.checkBox1)

        self.groupBox2 = QtGui.QGroupBox(self.tr('Normalization'))
        self.groupBox2.setLayout(layout21)
        #   self.groupBox2.setEnabled(False)

        self.radio3to5 = QtGui.QRadioButton("3' to 5'")
        self.radio5to3 = QtGui.QRadioButton("5' to 3'")
        self.radio3to5.setChecked(True)

        self.pushButton0 = QtGui.QPushButton('Reactivity')
        self.pushButton1 = QtGui.QPushButton('Peak Area')
        self.pushButton2 = QtGui.QPushButton('Data')

        layout3 = myGridLayout()
        layout3.addWidget(self.radio3to5, 0, 0)
        layout3.addWidget(self.radio5to3, 0, 1)
        layout3.addWidget(self.pushButton0, 1, 0)
        layout3.addWidget(self.pushButton1, 1, 1)
        layout3.addWidget(self.pushButton2, 1, 3)

        self.groupBox3 = QtGui.QGroupBox(self.tr('Select Plot Type'))
        self.groupBox3.setLayout(layout3)
        #    self.groupBox3.setEnabled(False)

        self.buttonBox = ToolButton()

        mainLayout = QtGui.QVBoxLayout()
        mainLayout.addWidget(self.labelTitle)
        mainLayout.addWidget(self.groupBox1)
        mainLayout.addWidget(self.groupBox2)
        mainLayout.addWidget(self.groupBox3)

        mainLayout.addStretch()
        mainLayout.addWidget(self.buttonBox)

        self.setLayout(mainLayout)
        self.isToolApplied = False