Source code for MSQuant: frmCorrelationSettings.vb, MSQuant/msquant/src/GUI/forms/frmCorrelationSettings.vb.

Table of contents page.

Home page for MSQuant.

'****************************************************************************
'* Copyright (C) 2004 Peter Mortensen and Matthias Mann                     *
'* This file is part of MSQuant.                                            *
'*                                                                          *
'* MSQuant is distributed under the terms of                                *
'* the GNU General Public License. See src/COPYING.TXT or                   *
'* <http://www.gnu.org/licenses/gpl.txt> for details.                       *
'*                                                                          *
'* MSQuant is free software; you can redistribute it                        *
'* and/or modify it under the terms of the GNU                              *
'* General Public License as published by the Free                          *
'* Software Foundation; either version 2 of the                             *
'* License, or (at your option) any later version.                          *
'*                                                                          *
'* MSQuant is distributed in the hope that it will be                       *
'* useful, but WITHOUT ANY WARRANTY; without even the                       *
'* implied warranty of MERCHANTABILITY or FITNESS FOR                       *
'* A PARTICULAR PURPOSE.  See the GNU General Public                        *
'* License for more details.                                                *
'*                                                                          *
'* You should have received a copy of the GNU General                       *
'* Public License along with MSQuant; if not, write to                      *
'* the Free Software Foundation, Inc., 59 Temple                            *
'* Place, Suite 330, Boston, MA  02111-1307  USA                            *
'*                                                                          *
'* Purpose: <to be filled in>.                                              *
'*                                                                          *
'****************************************************************************

'****************************************************************************
'*                               CEBI                                       *
'*                    Software Development Group                            *
'*                         Peter Mortensen                                  *
'*                E-mail: NUKESPAMMERSdrmortensen@get2netZZZZZZ.dk          *
'*                 WWW: http://www.cebi.sdu.dk/                             *
'*                                                                          *
'*  Program for post-processing of result from search in mass               *
'*    spectrometric data.                                                   *
'*                                                                          *
'*    FILENAME:   frmCorrelationSettings.vb                                 *
'*    TYPE:  VISUAL_BASIC                                                   *
'*                                                                          *
'* CREATED: PM 2003-??-??   Vrs 1.0.                                        *
'* UPDATED: PM 2004-xx-xx                                                   *
'*                                                                          *
'****************************************************************************

Option Strict On
Option Explicit On 


'****************************************************************************
'd$ <summary>
'd$   Purpose: xyz
'd$ 
'd$   <see cref="xyz" />.
'd$   <applicationname>xyz</applicationname>
'd$   <author>Peter Mortensen</author>
'd$   <seealso>http://xyz</seealso>
'd$   <codetype>xyz</codetype>
'd$ </summary>
Public Class frmCorrelationSettings
    Inherits System.Windows.Forms.Form


    Dim mCorrSettings As massSpectrometryBase.correlationSettingsStructure
    Friend WithEvents cboUseForLCpeakFixed As System.Windows.Forms.ComboBox
    Friend WithEvents GroupBox5 As System.Windows.Forms.GroupBox
    Friend WithEvents rbtnLCpeakUseFixed As System.Windows.Forms.RadioButton
    Friend WithEvents rbtnLCpeakUseHighest As System.Windows.Forms.RadioButton
    Dim mMainForm As frmMainForm


#Region " Windows Form Designer generated code "


    '****************************************************************************
    '*    <placeholder for header>                                              *
    '****************************************************************************
    Public Sub New( _
      ByVal aSettings As massSpectrometryBase.correlationSettingsStructure, _
      ByRef aMainForm As frmMainForm, _
      ByVal aDishes As Integer)

        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

        'Changed PM_CORRELATION_DIALOG 2003-10-21
        mMainForm = aMainForm
        mCorrSettings = aSettings 'We make a copy so that fields we don't 
        '  touch are preserved when we end the dialog.
        fillInDialog(aSettings, aDishes)
    End Sub 'New


    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents btnOK As System.Windows.Forms.Button
    Friend WithEvents btnCancel As System.Windows.Forms.Button
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents txtInsertionScoreThreshold As System.Windows.Forms.TextBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox4 As System.Windows.Forms.GroupBox
    Friend WithEvents chkNoPeptideInsertion As System.Windows.Forms.CheckBox
    Friend WithEvents txtCorrScoreThreshold As System.Windows.Forms.TextBox
    Friend WithEvents txtLCpeakRatioToMaxThresholdPercentage As System.Windows.Forms.TextBox
    Friend WithEvents txtPeakToBackgroundRatioThreshold As System.Windows.Forms.TextBox
    Friend WithEvents chkInsertionPeptidesOnlyInRange As System.Windows.Forms.CheckBox
    Friend WithEvents txtInsertionStartRetentionTimeMinutes As System.Windows.Forms.TextBox
    Friend WithEvents txtInsertionEndRetentionTimeMinutes As System.Windows.Forms.TextBox
    Friend WithEvents txtOutlierThreshold As System.Windows.Forms.TextBox
    Friend WithEvents txtCorrKeepBestPercentage As System.Windows.Forms.TextBox
    Friend WithEvents rbtnFixedPeptideScore As System.Windows.Forms.RadioButton
    Friend WithEvents rbtnAddToPeptideScore As System.Windows.Forms.RadioButton
    Friend WithEvents rbtnInheritPeptideScore As System.Windows.Forms.RadioButton
    Friend WithEvents txtFixedPeptideScoreConstant As System.Windows.Forms.TextBox
    Friend WithEvents txtAddToPeptideScoreConstant As System.Windows.Forms.TextBox
    Friend WithEvents txtLeftRetentionTimeSeconds As System.Windows.Forms.TextBox
    Friend WithEvents txtRightRetentionTimeSeconds As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.btnOK = New System.Windows.Forms.Button
        Me.btnCancel = New System.Windows.Forms.Button
        Me.chkNoPeptideInsertion = New System.Windows.Forms.CheckBox
        Me.Label5 = New System.Windows.Forms.Label
        Me.txtInsertionScoreThreshold = New System.Windows.Forms.TextBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.txtCorrScoreThreshold = New System.Windows.Forms.TextBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.txtLCpeakRatioToMaxThresholdPercentage = New System.Windows.Forms.TextBox
        Me.Label3 = New System.Windows.Forms.Label
        Me.txtPeakToBackgroundRatioThreshold = New System.Windows.Forms.TextBox
        Me.chkInsertionPeptidesOnlyInRange = New System.Windows.Forms.CheckBox
        Me.Label4 = New System.Windows.Forms.Label
        Me.txtInsertionStartRetentionTimeMinutes = New System.Windows.Forms.TextBox
        Me.Label6 = New System.Windows.Forms.Label
        Me.txtInsertionEndRetentionTimeMinutes = New System.Windows.Forms.TextBox
        Me.Label7 = New System.Windows.Forms.Label
        Me.txtOutlierThreshold = New System.Windows.Forms.TextBox
        Me.Label8 = New System.Windows.Forms.Label
        Me.txtCorrKeepBestPercentage = New System.Windows.Forms.TextBox
        Me.Label9 = New System.Windows.Forms.Label
        Me.rbtnFixedPeptideScore = New System.Windows.Forms.RadioButton
        Me.rbtnAddToPeptideScore = New System.Windows.Forms.RadioButton
        Me.rbtnInheritPeptideScore = New System.Windows.Forms.RadioButton
        Me.txtFixedPeptideScoreConstant = New System.Windows.Forms.TextBox
        Me.txtAddToPeptideScoreConstant = New System.Windows.Forms.TextBox
        Me.txtLeftRetentionTimeSeconds = New System.Windows.Forms.TextBox
        Me.Label10 = New System.Windows.Forms.Label
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.GroupBox5 = New System.Windows.Forms.GroupBox
        Me.rbtnLCpeakUseFixed = New System.Windows.Forms.RadioButton
        Me.cboUseForLCpeakFixed = New System.Windows.Forms.ComboBox
        Me.rbtnLCpeakUseHighest = New System.Windows.Forms.RadioButton
        Me.txtRightRetentionTimeSeconds = New System.Windows.Forms.TextBox
        Me.Label11 = New System.Windows.Forms.Label
        Me.GroupBox2 = New System.Windows.Forms.GroupBox
        Me.GroupBox3 = New System.Windows.Forms.GroupBox
        Me.GroupBox4 = New System.Windows.Forms.GroupBox
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox5.SuspendLayout()
        Me.SuspendLayout()
        '
        'btnOK
        '
        Me.btnOK.Location = New System.Drawing.Point(416, 490)
        Me.btnOK.Name = "btnOK"
        Me.btnOK.Size = New System.Drawing.Size(75, 23)
        Me.btnOK.TabIndex = 1
        Me.btnOK.Text = "&OK"
        '
        'btnCancel
        '
        Me.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.btnCancel.Location = New System.Drawing.Point(497, 490)
        Me.btnCancel.Name = "btnCancel"
        Me.btnCancel.Size = New System.Drawing.Size(75, 23)
        Me.btnCancel.TabIndex = 19
        Me.btnCancel.Text = "&Cancel"
        '
        'chkNoPeptideInsertion
        '
        Me.chkNoPeptideInsertion.Location = New System.Drawing.Point(32, 184)
        Me.chkNoPeptideInsertion.Name = "chkNoPeptideInsertion"
        Me.chkNoPeptideInsertion.Size = New System.Drawing.Size(160, 16)
        Me.chkNoPeptideInsertion.TabIndex = 5
        Me.chkNoPeptideInsertion.Text = "Do not insert new peptides"
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(32, 208)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(128, 24)
        Me.Label5.TabIndex = 25
        Me.Label5.Text = "Use peptide for insertion if score is greater than:"
        Me.Label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'txtInsertionScoreThreshold
        '
        Me.txtInsertionScoreThreshold.Enabled = False
        Me.txtInsertionScoreThreshold.Location = New System.Drawing.Point(216, 208)
        Me.txtInsertionScoreThreshold.Name = "txtInsertionScoreThreshold"
        Me.txtInsertionScoreThreshold.Size = New System.Drawing.Size(32, 20)
        Me.txtInsertionScoreThreshold.TabIndex = 6
        Me.txtInsertionScoreThreshold.Text = "15"
        Me.txtInsertionScoreThreshold.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(32, 40)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(168, 24)
        Me.Label1.TabIndex = 27
        Me.Label1.Text = "Use peptide for correlation if score is greater than:"
        Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'txtCorrScoreThreshold
        '
        Me.txtCorrScoreThreshold.Enabled = False
        Me.txtCorrScoreThreshold.Location = New System.Drawing.Point(216, 40)
        Me.txtCorrScoreThreshold.Name = "txtCorrScoreThreshold"
        Me.txtCorrScoreThreshold.Size = New System.Drawing.Size(32, 20)
        Me.txtCorrScoreThreshold.TabIndex = 2
        Me.txtCorrScoreThreshold.Text = "30"
        Me.txtCorrScoreThreshold.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(8, 33)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(216, 34)
        Me.Label2.TabIndex = 29
        Me.Label2.Text = "Ignore candidate LC peaks lower than this percentage of maximum LC peak:"
        Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'txtLCpeakRatioToMaxThresholdPercentage
        '
        Me.txtLCpeakRatioToMaxThresholdPercentage.Enabled = False
        Me.txtLCpeakRatioToMaxThresholdPercentage.Location = New System.Drawing.Point(238, 41)
        Me.txtLCpeakRatioToMaxThresholdPercentage.Name = "txtLCpeakRatioToMaxThresholdPercentage"
        Me.txtLCpeakRatioToMaxThresholdPercentage.Size = New System.Drawing.Size(32, 20)
        Me.txtLCpeakRatioToMaxThresholdPercentage.TabIndex = 15
        Me.txtLCpeakRatioToMaxThresholdPercentage.Text = "20"
        Me.txtLCpeakRatioToMaxThresholdPercentage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(8, 85)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(216, 16)
        Me.Label3.TabIndex = 30
        Me.Label3.Text = "LC peak to background ratio threshold"
        Me.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'txtPeakToBackgroundRatioThreshold
        '
        Me.txtPeakToBackgroundRatioThreshold.Enabled = False
        Me.txtPeakToBackgroundRatioThreshold.Location = New System.Drawing.Point(238, 75)
        Me.txtPeakToBackgroundRatioThreshold.Name = "txtPeakToBackgroundRatioThreshold"
        Me.txtPeakToBackgroundRatioThreshold.Size = New System.Drawing.Size(32, 20)
        Me.txtPeakToBackgroundRatioThreshold.TabIndex = 16
        Me.txtPeakToBackgroundRatioThreshold.Text = "3.0"
        Me.txtPeakToBackgroundRatioThreshold.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'chkInsertionPeptidesOnlyInRange
        '
        Me.chkInsertionPeptidesOnlyInRange.Location = New System.Drawing.Point(32, 256)
        Me.chkInsertionPeptidesOnlyInRange.Name = "chkInsertionPeptidesOnlyInRange"
        Me.chkInsertionPeptidesOnlyInRange.Size = New System.Drawing.Size(176, 16)
        Me.chkInsertionPeptidesOnlyInRange.TabIndex = 7
        Me.chkInsertionPeptidesOnlyInRange.Text = "Insert peptides only in range"
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(48, 288)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(152, 16)
        Me.Label4.TabIndex = 34
        Me.Label4.Text = "Start retention time [minutes]"
        Me.Label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'txtInsertionStartRetentionTimeMinutes
        '
        Me.txtInsertionStartRetentionTimeMinutes.Location = New System.Drawing.Point(208, 288)
        Me.txtInsertionStartRetentionTimeMinutes.Name = "txtInsertionStartRetentionTimeMinutes"
        Me.txtInsertionStartRetentionTimeMinutes.Size = New System.Drawing.Size(48, 20)
        Me.txtInsertionStartRetentionTimeMinutes.TabIndex = 8
        Me.txtInsertionStartRetentionTimeMinutes.Text = "0"
        Me.txtInsertionStartRetentionTimeMinutes.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'Label6
        '
        Me.Label6.Location = New System.Drawing.Point(48, 320)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(152, 16)
        Me.Label6.TabIndex = 36
        Me.Label6.Text = "End retention time [minutes]"
        Me.Label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'txtInsertionEndRetentionTimeMinutes
        '
        Me.txtInsertionEndRetentionTimeMinutes.Location = New System.Drawing.Point(208, 320)
        Me.txtInsertionEndRetentionTimeMinutes.Name = "txtInsertionEndRetentionTimeMinutes"
        Me.txtInsertionEndRetentionTimeMinutes.Size = New System.Drawing.Size(48, 20)
        Me.txtInsertionEndRetentionTimeMinutes.TabIndex = 9
        Me.txtInsertionEndRetentionTimeMinutes.Text = "9999"
        Me.txtInsertionEndRetentionTimeMinutes.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'Label7
        '
        Me.Label7.Location = New System.Drawing.Point(32, 80)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(128, 16)
        Me.Label7.TabIndex = 38
        Me.Label7.Text = "Outlier threshold [secs]"
        Me.Label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'txtOutlierThreshold
        '
        Me.txtOutlierThreshold.Enabled = False
        Me.txtOutlierThreshold.Location = New System.Drawing.Point(216, 76)
        Me.txtOutlierThreshold.Name = "txtOutlierThreshold"
        Me.txtOutlierThreshold.Size = New System.Drawing.Size(32, 20)
        Me.txtOutlierThreshold.TabIndex = 3
        Me.txtOutlierThreshold.Text = "40"
        Me.txtOutlierThreshold.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'Label8
        '
        Me.Label8.Location = New System.Drawing.Point(32, 112)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(176, 24)
        Me.Label8.TabIndex = 40
        Me.Label8.Text = "Keep this percentage of LC points for final correlation constants:"
        Me.Label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'txtCorrKeepBestPercentage
        '
        Me.txtCorrKeepBestPercentage.Enabled = False
        Me.txtCorrKeepBestPercentage.Location = New System.Drawing.Point(216, 112)
        Me.txtCorrKeepBestPercentage.Name = "txtCorrKeepBestPercentage"
        Me.txtCorrKeepBestPercentage.Size = New System.Drawing.Size(32, 20)
        Me.txtCorrKeepBestPercentage.TabIndex = 4
        Me.txtCorrKeepBestPercentage.Text = "50"
        Me.txtCorrKeepBestPercentage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'Label9
        '
        Me.Label9.Location = New System.Drawing.Point(40, 376)
        Me.Label9.Name = "Label9"
        Me.Label9.Size = New System.Drawing.Size(160, 16)
        Me.Label9.TabIndex = 41
        Me.Label9.Text = "Score for inserted peptides:"
        Me.Label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'rbtnFixedPeptideScore
        '
        Me.rbtnFixedPeptideScore.Checked = True
        Me.rbtnFixedPeptideScore.Enabled = False
        Me.rbtnFixedPeptideScore.Location = New System.Drawing.Point(40, 400)
        Me.rbtnFixedPeptideScore.Name = "rbtnFixedPeptideScore"
        Me.rbtnFixedPeptideScore.Size = New System.Drawing.Size(88, 16)
        Me.rbtnFixedPeptideScore.TabIndex = 10
        Me.rbtnFixedPeptideScore.TabStop = True
        Me.rbtnFixedPeptideScore.Text = "Fixed to:"
        '
        'rbtnAddToPeptideScore
        '
        Me.rbtnAddToPeptideScore.Enabled = False
        Me.rbtnAddToPeptideScore.Location = New System.Drawing.Point(40, 424)
        Me.rbtnAddToPeptideScore.Name = "rbtnAddToPeptideScore"
        Me.rbtnAddToPeptideScore.Size = New System.Drawing.Size(88, 16)
        Me.rbtnAddToPeptideScore.TabIndex = 11
        Me.rbtnAddToPeptideScore.Text = "Increase by:"
        '
        'rbtnInheritPeptideScore
        '
        Me.rbtnInheritPeptideScore.Enabled = False
        Me.rbtnInheritPeptideScore.Location = New System.Drawing.Point(40, 448)
        Me.rbtnInheritPeptideScore.Name = "rbtnInheritPeptideScore"
        Me.rbtnInheritPeptideScore.Size = New System.Drawing.Size(80, 16)
        Me.rbtnInheritPeptideScore.TabIndex = 12
        Me.rbtnInheritPeptideScore.Text = "Inherit"
        '
        'txtFixedPeptideScoreConstant
        '
        Me.txtFixedPeptideScoreConstant.Enabled = False
        Me.txtFixedPeptideScoreConstant.Location = New System.Drawing.Point(136, 400)
        Me.txtFixedPeptideScoreConstant.Name = "txtFixedPeptideScoreConstant"
        Me.txtFixedPeptideScoreConstant.Size = New System.Drawing.Size(40, 20)
        Me.txtFixedPeptideScoreConstant.TabIndex = 13
        Me.txtFixedPeptideScoreConstant.Text = "99"
        Me.txtFixedPeptideScoreConstant.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txtAddToPeptideScoreConstant
        '
        Me.txtAddToPeptideScoreConstant.Enabled = False
        Me.txtAddToPeptideScoreConstant.Location = New System.Drawing.Point(136, 424)
        Me.txtAddToPeptideScoreConstant.Name = "txtAddToPeptideScoreConstant"
        Me.txtAddToPeptideScoreConstant.Size = New System.Drawing.Size(40, 20)
        Me.txtAddToPeptideScoreConstant.TabIndex = 14
        Me.txtAddToPeptideScoreConstant.Text = "1000"
        Me.txtAddToPeptideScoreConstant.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'txtLeftRetentionTimeSeconds
        '
        Me.txtLeftRetentionTimeSeconds.Location = New System.Drawing.Point(238, 124)
        Me.txtLeftRetentionTimeSeconds.Name = "txtLeftRetentionTimeSeconds"
        Me.txtLeftRetentionTimeSeconds.Size = New System.Drawing.Size(40, 20)
        Me.txtLeftRetentionTimeSeconds.TabIndex = 17
        Me.txtLeftRetentionTimeSeconds.Text = "60"
        Me.txtLeftRetentionTimeSeconds.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'Label10
        '
        Me.Label10.Location = New System.Drawing.Point(8, 131)
        Me.Label10.Name = "Label10"
        Me.Label10.Size = New System.Drawing.Size(216, 16)
        Me.Label10.TabIndex = 47
        Me.Label10.Text = "Left LC window [secs]"
        Me.Label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.GroupBox5)
        Me.GroupBox1.Controls.Add(Me.Label10)
        Me.GroupBox1.Controls.Add(Me.txtLeftRetentionTimeSeconds)
        Me.GroupBox1.Controls.Add(Me.txtRightRetentionTimeSeconds)
        Me.GroupBox1.Controls.Add(Me.Label11)
        Me.GroupBox1.Controls.Add(Me.txtPeakToBackgroundRatioThreshold)
        Me.GroupBox1.Controls.Add(Me.txtLCpeakRatioToMaxThresholdPercentage)
        Me.GroupBox1.Controls.Add(Me.Label2)
        Me.GroupBox1.Controls.Add(Me.Label3)
        Me.GroupBox1.Location = New System.Drawing.Point(275, 16)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(288, 303)
        Me.GroupBox1.TabIndex = 49
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "LC peak detection"
        '
        'GroupBox5
        '
        Me.GroupBox5.Controls.Add(Me.rbtnLCpeakUseFixed)
        Me.GroupBox5.Controls.Add(Me.cboUseForLCpeakFixed)
        Me.GroupBox5.Controls.Add(Me.rbtnLCpeakUseHighest)
        Me.GroupBox5.Location = New System.Drawing.Point(8, 204)
        Me.GroupBox5.Name = "GroupBox5"
        Me.GroupBox5.Size = New System.Drawing.Size(213, 71)
        Me.GroupBox5.TabIndex = 54
        Me.GroupBox5.TabStop = False
        '
        'rbtnLCpeakUseFixed
        '
        Me.rbtnLCpeakUseFixed.AutoSize = True
        Me.rbtnLCpeakUseFixed.Location = New System.Drawing.Point(6, 19)
        Me.rbtnLCpeakUseFixed.Name = "rbtnLCpeakUseFixed"
        Me.rbtnLCpeakUseFixed.Size = New System.Drawing.Size(72, 17)
        Me.rbtnLCpeakUseFixed.TabIndex = 52
        Me.rbtnLCpeakUseFixed.TabStop = True
        Me.rbtnLCpeakUseFixed.Text = "Use fixed:"
        Me.rbtnLCpeakUseFixed.UseVisualStyleBackColor = True
        '
        'cboUseForLCpeakFixed
        '
        Me.cboUseForLCpeakFixed.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboUseForLCpeakFixed.Items.AddRange(New Object() {"Wild type", "Isotope", "Even higher isotope"})
        Me.cboUseForLCpeakFixed.Location = New System.Drawing.Point(84, 16)
        Me.cboUseForLCpeakFixed.Name = "cboUseForLCpeakFixed"
        Me.cboUseForLCpeakFixed.Size = New System.Drawing.Size(121, 21)
        Me.cboUseForLCpeakFixed.TabIndex = 51
        '
        'rbtnLCpeakUseHighest
        '
        Me.rbtnLCpeakUseHighest.AutoSize = True
        Me.rbtnLCpeakUseHighest.Enabled = False
        Me.rbtnLCpeakUseHighest.Location = New System.Drawing.Point(6, 48)
        Me.rbtnLCpeakUseHighest.Name = "rbtnLCpeakUseHighest"
        Me.rbtnLCpeakUseHighest.Size = New System.Drawing.Size(81, 17)
        Me.rbtnLCpeakUseHighest.TabIndex = 53
        Me.rbtnLCpeakUseHighest.TabStop = True
        Me.rbtnLCpeakUseHighest.Text = "Use highest"
        Me.rbtnLCpeakUseHighest.UseVisualStyleBackColor = True
        '
        'txtRightRetentionTimeSeconds
        '
        Me.txtRightRetentionTimeSeconds.Location = New System.Drawing.Point(238, 164)
        Me.txtRightRetentionTimeSeconds.Name = "txtRightRetentionTimeSeconds"
        Me.txtRightRetentionTimeSeconds.Size = New System.Drawing.Size(40, 20)
        Me.txtRightRetentionTimeSeconds.TabIndex = 18
        Me.txtRightRetentionTimeSeconds.Text = "90"
        Me.txtRightRetentionTimeSeconds.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
        '
        'Label11
        '
        Me.Label11.Location = New System.Drawing.Point(8, 168)
        Me.Label11.Name = "Label11"
        Me.Label11.Size = New System.Drawing.Size(216, 16)
        Me.Label11.TabIndex = 50
        Me.Label11.Text = "Right LC window [secs]"
        Me.Label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'GroupBox2
        '
        Me.GroupBox2.Location = New System.Drawing.Point(32, 352)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(208, 120)
        Me.GroupBox2.TabIndex = 52
        Me.GroupBox2.TabStop = False
        Me.GroupBox2.Text = "Score for inserted peptides:"
        '
        'GroupBox3
        '
        Me.GroupBox3.Location = New System.Drawing.Point(24, 168)
        Me.GroupBox3.Name = "GroupBox3"
        Me.GroupBox3.Size = New System.Drawing.Size(240, 312)
        Me.GroupBox3.TabIndex = 53
        Me.GroupBox3.TabStop = False
        Me.GroupBox3.Text = "Insertion of new peptides"
        '
        'GroupBox4
        '
        Me.GroupBox4.Location = New System.Drawing.Point(24, 16)
        Me.GroupBox4.Name = "GroupBox4"
        Me.GroupBox4.Size = New System.Drawing.Size(240, 136)
        Me.GroupBox4.TabIndex = 54
        Me.GroupBox4.TabStop = False
        Me.GroupBox4.Text = "Rentention time correlation"
        '
        'frmCorrelationSettings
        '
        Me.AcceptButton = Me.btnOK
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.CancelButton = Me.btnCancel
        Me.ClientSize = New System.Drawing.Size(584, 525)
        Me.Controls.Add(Me.txtAddToPeptideScoreConstant)
        Me.Controls.Add(Me.txtFixedPeptideScoreConstant)
        Me.Controls.Add(Me.rbtnInheritPeptideScore)
        Me.Controls.Add(Me.rbtnAddToPeptideScore)
        Me.Controls.Add(Me.rbtnFixedPeptideScore)
        Me.Controls.Add(Me.Label9)
        Me.Controls.Add(Me.Label8)
        Me.Controls.Add(Me.txtCorrKeepBestPercentage)
        Me.Controls.Add(Me.Label7)
        Me.Controls.Add(Me.txtOutlierThreshold)
        Me.Controls.Add(Me.Label6)
        Me.Controls.Add(Me.txtInsertionEndRetentionTimeMinutes)
        Me.Controls.Add(Me.Label4)
        Me.Controls.Add(Me.txtInsertionStartRetentionTimeMinutes)
        Me.Controls.Add(Me.chkInsertionPeptidesOnlyInRange)
        Me.Controls.Add(Me.Label1)
        Me.Controls.Add(Me.txtCorrScoreThreshold)
        Me.Controls.Add(Me.Label5)
        Me.Controls.Add(Me.txtInsertionScoreThreshold)
        Me.Controls.Add(Me.chkNoPeptideInsertion)
        Me.Controls.Add(Me.btnOK)
        Me.Controls.Add(Me.btnCancel)
        Me.Controls.Add(Me.GroupBox4)
        Me.Controls.Add(Me.GroupBox2)
        Me.Controls.Add(Me.GroupBox3)
        Me.Controls.Add(Me.GroupBox1)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "frmCorrelationSettings"
        Me.Text = "Correlation Settings"
        Me.GroupBox1.ResumeLayout(False)
        Me.GroupBox1.PerformLayout()
        Me.GroupBox5.ResumeLayout(False)
        Me.GroupBox5.PerformLayout()
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub

#End Region


    '****************************************************************************
    '*    <placeholder for header>                                              *
    '****************************************************************************
    Private Sub fillInDialog( _
      ByRef aInSettings As massSpectrometryBase.correlationSettingsStructure, _
      ByVal aDishes As Integer)

        chkNoPeptideInsertion.Checked = aInSettings.doNotInsertNewPeptides

        'Changed PM_LC_TIMERANGE 2003-12-17
        chkInsertionPeptidesOnlyInRange.Checked = _
          aInSettings.insertPeptidesInLCTimeRange
        Dim startMin As Double = aInSettings.startLCtimeForInsertion_Secs / 60.0
        Dim endMin As Double = aInSettings.endLCtimeForInsertion_Secs / 60.0
        txtInsertionStartRetentionTimeMinutes.Text = startMin.ToString
        txtInsertionEndRetentionTimeMinutes.Text = endMin.ToString

        'Changed PM_LCPEAK_WINDOW_USERDEFINED 2003-12-18
        txtLeftRetentionTimeSeconds.Text = aInSettings.leftLCwindowSecs.ToString
        txtRightRetentionTimeSeconds.Text = aInSettings.rightLCwindowSecs.ToString

        'Changed PM_LCPEAKDETECTION_OPTIONS 2006-06-16
        Dim useFixed As Boolean = _
          Not aInSettings.useHighestLCprofileForLCpeakDetection
        rbtnLCpeakUseFixed.Checked = useFixed
        rbtnLCpeakUseHighest.Checked = Not useFixed

        If True Then 'Block. Dish for LC peak detection.
            cboUseForLCpeakFixed.Enabled = useFixed

            'Changed PM_LCPEAKDECTION_NAMING 2008-12-09
            cboUseForLCpeakFixed.Items.Clear() 'Ignore anything set in the designer.
            Dim dish As Integer
            For dish = 1 To aDishes
                cboUseForLCpeakFixed.Items.Add("SILAC dish " & dish)
            Next dish

            '-1 because SILAC numbers are one-based.
            Dim selectedBaseOne As Integer = _
              Math.Min(aInSettings.SILACdishForLCpeakDetection, aDishes)
            cboUseForLCpeakFixed.SelectedIndex = selectedBaseOne - 1
        End If 'Block.

    End Sub 'fillInDialog


    '****************************************************************************
    '*    <placeholder for header>                                              *
    '****************************************************************************
    Private Sub readOffDialog( _
      ByRef aOutSettings As massSpectrometryBase.correlationSettingsStructure)

        aOutSettings.doNotInsertNewPeptides = chkNoPeptideInsertion.Checked

        'Changed PM_LC_TIMERANGE 2003-12-17
        aOutSettings.insertPeptidesInLCTimeRange = _
          chkInsertionPeptidesOnlyInRange.Checked
        aOutSettings.startLCtimeForInsertion_Secs = _
          60.0 * CDbl(txtInsertionStartRetentionTimeMinutes.Text)
        aOutSettings.endLCtimeForInsertion_Secs = _
          60.0 * CDbl(txtInsertionEndRetentionTimeMinutes.Text)

        'Changed PM_LCPEAK_WINDOW_USERDEFINED 2003-12-18
        aOutSettings.leftLCwindowSecs = CDbl(txtLeftRetentionTimeSeconds.Text)
        aOutSettings.rightLCwindowSecs = CDbl(txtRightRetentionTimeSeconds.Text)

        'Changed PM_LCPEAKDETECTION_OPTIONS 2006-06-16
        Dim useFixed As Boolean = rbtnLCpeakUseFixed.Checked
        aOutSettings.useHighestLCprofileForLCpeakDetection = Not useFixed
        aOutSettings.SILACdishForLCpeakDetection = _
          cboUseForLCpeakFixed.SelectedIndex + 1
    End Sub 'readOffDialog


    '****************************************************************************
    '*    <placeholder for header>                                              *
    '****************************************************************************
    Private Sub btnOK_Click(ByVal sender As System.Object, _
      ByVal anEvent As System.EventArgs) Handles btnOK.Click

        readOffDialog(mCorrSettings)
        mMainForm.setCorrSettings( _
          AppConstants.NEW_CORRSETTINGS_FILENAME, mCorrSettings)
        Me.Close()
    End Sub 'btnOK_Click


    '****************************************************************************
    '*    <placeholder for header>                                              *
    '****************************************************************************
    Private Sub btnCancel_Click( _
      ByVal aSender As System.Object, ByVal anEvent As System.EventArgs) _
      Handles btnCancel.Click

        Me.Close()
    End Sub 'btnCancel_Click


    '****************************************************************************
    '*    <placeholder for header>                                              *
    '****************************************************************************
    Private Sub rbtnLCpeakUseFixed_CheckedChanged( _
      ByVal aSender As System.Object, _
      ByVal anEvent As System.EventArgs) _
      Handles rbtnLCpeakUseFixed.CheckedChanged

        cboUseForLCpeakFixed.Enabled = True
    End Sub 'rbtnLCpeakUseFixed_CheckedChanged


    '****************************************************************************
    '*    <placeholder for header>                                              *
    '****************************************************************************
    Private Sub rbtnLCpeakUseHighest_CheckedChanged( _
      ByVal aSender As System.Object, _
      ByVal anEvent As System.EventArgs) _
      Handles rbtnLCpeakUseHighest.CheckedChanged

        cboUseForLCpeakFixed.Enabled = False
    End Sub 'rbtnLCpeakUseHighest_CheckedChanged



End Class 'frmCorrelationSettings


    

    

Generated by script codePublish.pl at 2009-01-05T15:20:59.