From 95aea21122dde10b0340bd3c5096f852a5868a44 Mon Sep 17 00:00:00 2001
From: Olivier Langella <olivier.langella@u-psud.fr>
Date: Thu, 12 Oct 2017 22:44:48 +0200
Subject: [PATCH] begining scoring form

---
 src/core/tandem_run/tandemparameters.cpp      |   4 +-
 .../edit_tandem_preset_dialog.ui              | 309 ++++++++++++------
 .../edittandempresetdialog.cpp                |  65 +++-
 3 files changed, 273 insertions(+), 105 deletions(-)

diff --git a/src/core/tandem_run/tandemparameters.cpp b/src/core/tandem_run/tandemparameters.cpp
index ad2bffda0..1886ac2bd 100644
--- a/src/core/tandem_run/tandemparameters.cpp
+++ b/src/core/tandem_run/tandemparameters.cpp
@@ -95,7 +95,7 @@ void TandemParameters::setParamLabelValue(const QString & label, const QString &
             throw pappso::ExceptionNotPossible(QObject::tr("%1 value must be Daltons or ppm (not %2)").arg(label).arg(value));
         }
     }
-    if ((label == "spectrum, parent monoisotopic mass isotope error") || (label == "spectrum, use neutral loss window") || (label == "spectrum, use contrast angle") || (label == "protein, cleavage semi") || (label == "protein, quick acetyl") || (label == "protein, quick pyrolidone")  || (label == "protein, stP bias") ) {
+    if ((label == "spectrum, parent monoisotopic mass isotope error") || (label == "spectrum, use neutral loss window") || (label == "spectrum, use contrast angle") || (label == "protein, cleavage semi") || (label == "protein, quick acetyl") || (label == "protein, quick pyrolidone")  || (label == "protein, stP bias") || (label == "scoring, cyclic permutation")) {
         if ((value != "yes") && (value != "no")) {
             throw pappso::ExceptionNotPossible(QObject::tr("%1 value must be yes or no (not %2)").arg(label).arg(value));
         }
@@ -112,7 +112,7 @@ void TandemParameters::setParamLabelValue(const QString & label, const QString &
     }
 
 
-    if ((label == "spectrum, maximum parent charge")  || (label == "spectrum, total peaks") || (label == "spectrum, minimum peaks") || (label == "spectrum, sequence batch size") || (label == "spectrum, threads")) {
+    if ((label == "spectrum, maximum parent charge")  || (label == "spectrum, total peaks") || (label == "spectrum, minimum peaks") || (label == "spectrum, sequence batch size") || (label == "spectrum, threads") || (label == "scoring, minimum ion count") || (label == "scoring, maximum missed cleavage sites")) {
         bool ok;
         value.toInt(&ok);
         if (!ok) {// not an integer
diff --git a/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui b/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui
index edb268df2..bd53a96f1 100644
--- a/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui
+++ b/src/gui/edit_tandem_preset_dialog/edit_tandem_preset_dialog.ui
@@ -100,7 +100,7 @@
        <item>
         <widget class="QTabWidget" name="tabWidget">
          <property name="currentIndex">
-          <number>1</number>
+          <number>3</number>
          </property>
          <widget class="QWidget" name="spectrum_tab">
           <property name="sizePolicy">
@@ -132,7 +132,7 @@
                <rect>
                 <x>0</x>
                 <y>0</y>
-                <width>998</width>
+                <width>658</width>
                 <height>598</height>
                </rect>
               </property>
@@ -679,8 +679,8 @@
                <rect>
                 <x>0</x>
                 <y>0</y>
-                <width>1012</width>
-                <height>468</height>
+                <width>551</width>
+                <height>360</height>
                </rect>
               </property>
               <layout class="QVBoxLayout" name="verticalLayout_6">
@@ -1028,8 +1028,8 @@
                <rect>
                 <x>0</x>
                 <y>0</y>
-                <width>1012</width>
-                <height>468</height>
+                <width>331</width>
+                <height>326</height>
                </rect>
               </property>
               <layout class="QVBoxLayout" name="verticalLayout_9">
@@ -1234,10 +1234,88 @@
                  <item row="0" column="0">
                   <widget class="QLabel" name="label_28">
                    <property name="text">
-                    <string>TextLabel</string>
+                    <string>Minimum number of ions to score a peptide</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="0" column="1">
+                  <widget class="QLineEdit" name="smic_edit"/>
+                 </item>
+                 <item row="0" column="2">
+                  <widget class="QPushButton" name="smic_push_button">
+                   <property name="text">
+                    <string>?</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="1" column="0">
+                  <widget class="QLabel" name="label_39">
+                   <property name="text">
+                    <string>Maximum missed cleavage sites</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="1" column="1">
+                  <widget class="QLineEdit" name="smmcs_edit"/>
+                 </item>
+                 <item row="1" column="2">
+                  <widget class="QPushButton" name="smmcs_push_button">
+                   <property name="text">
+                    <string>?</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="2" column="0">
+                  <widget class="QLabel" name="label_40">
+                   <property name="text">
+                    <string>Compensate for very small sequence list file</string>
                    </property>
                   </widget>
                  </item>
+                 <item row="2" column="2">
+                  <widget class="QPushButton" name="scp_push_button">
+                   <property name="text">
+                    <string>?</string>
+                   </property>
+                  </widget>
+                 </item>
+                 <item row="2" column="1">
+                  <layout class="QHBoxLayout" name="horizontalLayout_9">
+                   <item>
+                    <widget class="QRadioButton" name="scp_yes_radio_button">
+                     <property name="text">
+                      <string>&amp;yes</string>
+                     </property>
+                     <attribute name="buttonGroup">
+                      <string notr="true">scp_button_group</string>
+                     </attribute>
+                    </widget>
+                   </item>
+                   <item>
+                    <widget class="QRadioButton" name="scp_no_radio_button">
+                     <property name="text">
+                      <string>no</string>
+                     </property>
+                     <attribute name="buttonGroup">
+                      <string notr="true">scp_button_group</string>
+                     </attribute>
+                    </widget>
+                   </item>
+                   <item>
+                    <spacer name="horizontalSpacer_11">
+                     <property name="orientation">
+                      <enum>Qt::Horizontal</enum>
+                     </property>
+                     <property name="sizeHint" stdset="0">
+                      <size>
+                       <width>40</width>
+                       <height>20</height>
+                      </size>
+                     </property>
+                    </spacer>
+                   </item>
+                  </layout>
+                 </item>
                 </layout>
                </item>
                <item>
@@ -1274,8 +1352,8 @@
                <rect>
                 <x>0</x>
                 <y>0</y>
-                <width>1012</width>
-                <height>468</height>
+                <width>98</width>
+                <height>46</height>
                </rect>
               </property>
               <layout class="QVBoxLayout" name="verticalLayout_14">
@@ -1324,8 +1402,8 @@
                <rect>
                 <x>0</x>
                 <y>0</y>
-                <width>1012</width>
-                <height>468</height>
+                <width>98</width>
+                <height>46</height>
                </rect>
               </property>
               <layout class="QVBoxLayout" name="verticalLayout_15">
@@ -1457,8 +1535,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>200</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1728</x>
@@ -1489,8 +1567,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>234</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>720</x>
@@ -1505,8 +1583,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>268</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1181</x>
@@ -1521,8 +1599,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>302</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1037</x>
@@ -1553,8 +1631,8 @@
    <slot>doEdit(QString)</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>909</x>
-     <y>234</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>464</x>
@@ -1569,8 +1647,8 @@
    <slot>doEdit(QString)</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>909</x>
-     <y>268</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>798</x>
@@ -1617,8 +1695,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>336</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1209</x>
@@ -1633,8 +1711,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>370</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1247</x>
@@ -1649,8 +1727,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>404</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1142</x>
@@ -1665,8 +1743,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>438</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1322</x>
@@ -1681,8 +1759,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>472</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1259</x>
@@ -1697,8 +1775,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>506</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1588</x>
@@ -1713,8 +1791,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>540</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1674</x>
@@ -1729,8 +1807,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>574</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1611</x>
@@ -1745,8 +1823,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>608</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1711</x>
@@ -1761,8 +1839,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>642</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1642</x>
@@ -1777,8 +1855,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>676</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1579</x>
@@ -1793,8 +1871,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>710</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1734</x>
@@ -1809,8 +1887,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>995</x>
-     <y>744</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1734</x>
@@ -1825,8 +1903,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>984</x>
-     <y>181</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1735</x>
@@ -1841,8 +1919,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>990</x>
-     <y>220</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1678</x>
@@ -1857,8 +1935,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>981</x>
-     <y>253</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1454</x>
@@ -1873,8 +1951,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>974</x>
-     <y>287</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1486</x>
@@ -1889,8 +1967,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>989</x>
-     <y>323</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1511</x>
@@ -1905,8 +1983,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>968</x>
-     <y>358</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1577</x>
@@ -1921,8 +1999,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>981</x>
-     <y>392</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1521</x>
@@ -1937,8 +2015,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>974</x>
-     <y>420</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1521</x>
@@ -1953,8 +2031,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>973</x>
-     <y>456</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1521</x>
@@ -1969,8 +2047,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>976</x>
-     <y>482</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1521</x>
@@ -1985,8 +2063,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>974</x>
-     <y>187</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1605</x>
@@ -2001,8 +2079,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>997</x>
-     <y>217</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1616</x>
@@ -2017,8 +2095,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>986</x>
-     <y>248</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1684</x>
@@ -2033,8 +2111,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>970</x>
-     <y>285</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1691</x>
@@ -2049,8 +2127,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>997</x>
-     <y>323</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1690</x>
@@ -2065,8 +2143,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>953</x>
-     <y>352</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1691</x>
@@ -2081,8 +2159,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>979</x>
-     <y>391</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1637</x>
@@ -2097,8 +2175,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>976</x>
-     <y>427</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1637</x>
@@ -2113,8 +2191,8 @@
    <slot>doHelp()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>1000</x>
-     <y>456</y>
+     <x>138</x>
+     <y>201</y>
     </hint>
     <hint type="destinationlabel">
      <x>1637</x>
@@ -2122,6 +2200,54 @@
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>smic_push_button</sender>
+   <signal>clicked()</signal>
+   <receiver>EditTandemPresetView</receiver>
+   <slot>doHelp()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>1005</x>
+     <y>181</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>1765</x>
+     <y>166</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>smmcs_push_button</sender>
+   <signal>clicked()</signal>
+   <receiver>EditTandemPresetView</receiver>
+   <slot>doHelp()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>979</x>
+     <y>227</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>1569</x>
+     <y>240</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>scp_push_button</sender>
+   <signal>clicked()</signal>
+   <receiver>EditTandemPresetView</receiver>
+   <slot>doHelp()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>988</x>
+     <y>248</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>1584</x>
+     <y>293</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
  <slots>
   <slot>doCopy()</slot>
@@ -2134,14 +2260,15 @@
   <slot>doSelectDir()</slot>
  </slots>
  <buttongroups>
+  <buttongroup name="spmmeu_button_group"/>
   <buttongroup name="suca_button_group"/>
-  <buttongroup name="sfmmeu_button_group"/>
   <buttongroup name="spmmie_button_group"/>
-  <buttongroup name="spmmeu_button_group"/>
+  <buttongroup name="pstpb_button_group"/>
+  <buttongroup name="sfmmeu_button_group"/>
   <buttongroup name="sunlw_button_group"/>
-  <buttongroup name="pcsemi_button_group"/>
   <buttongroup name="pqa_button_group"/>
+  <buttongroup name="pcsemi_button_group"/>
   <buttongroup name="pqp_button_group"/>
-  <buttongroup name="pstpb_button_group"/>
+  <buttongroup name="scp_button_group"/>
  </buttongroups>
 </ui>
diff --git a/src/gui/edit_tandem_preset_dialog/edittandempresetdialog.cpp b/src/gui/edit_tandem_preset_dialog/edittandempresetdialog.cpp
index 0b5fe2f95..a8c1d551e 100644
--- a/src/gui/edit_tandem_preset_dialog/edittandempresetdialog.cpp
+++ b/src/gui/edit_tandem_preset_dialog/edittandempresetdialog.cpp
@@ -298,6 +298,19 @@ void EditTandemPresetDialog::doHelp() {
     {
         html_doc.setFileName(":/tandem/resources/html_doc/rpmmotif.html");
     }
+    if(senderObjName == "smic_push_button")
+    {
+        html_doc.setFileName(":/tandem/resources/html_doc/smic.html");
+    }
+    if(senderObjName == "smmcs_push_button")
+    {
+        html_doc.setFileName(":/tandem/resources/html_doc/smmcs.html");
+    }
+    if(senderObjName == "scp_push_button")
+    {
+        html_doc.setFileName(":/tandem/resources/html_doc/scp.html");
+    }
+
 
     _tandem_params.setParamLabelValue("residue, potential modification mass", ui->rpmm_edit->text());
     _tandem_params.setParamLabelValue("residue, potential modification mass 1", ui->rpmm1_edit->text());
@@ -339,7 +352,7 @@ void EditTandemPresetDialog::readUi() {
         if (ui->sfmmeu_ppm_radio_button->isChecked()) {
             _tandem_params.setParamLabelValue("spectrum, fragment monoisotopic mass error units", "ppm");
         }
-        
+
         _tandem_params.setParamLabelValue("spectrum, fragment monoisotopic mass error", ui->sfmme_edit->text());
         _tandem_params.setParamLabelValue("spectrum, use neutral loss window", "no");
         if (ui->sunlw_yes_radio_button->isChecked()) {
@@ -351,7 +364,7 @@ void EditTandemPresetDialog::readUi() {
         _tandem_params.setParamLabelValue("spectrum, minimum peaks", ui->smp_edit->text());
         _tandem_params.setParamLabelValue("spectrum, minimum fragment mz", ui->smfmz_edit->text());
         _tandem_params.setParamLabelValue("spectrum, minimum parent m+h", ui->smpmh_edit->text());
-        _tandem_params.setParamLabelValue("spectrum, sequence batch size", ui->spsbs_edit->text());        
+        _tandem_params.setParamLabelValue("spectrum, sequence batch size", ui->spsbs_edit->text());
         _tandem_params.setParamLabelValue("spectrum, use contrast angle", "no");
         if (ui->suca_yes_radio_button->isChecked()) {
             _tandem_params.setParamLabelValue("spectrum, use contrast angle", "yes");
@@ -359,12 +372,14 @@ void EditTandemPresetDialog::readUi() {
         _tandem_params.setParamLabelValue("spectrum, threads", ui->st_edit->text());
 
 
-        _tandem_params.setParamLabelValue("protein, cleavage site", ui->pcs_edit->text());        _tandem_params.setParamLabelValue("protein, cleavage semi", "no");
+        _tandem_params.setParamLabelValue("protein, cleavage site", ui->pcs_edit->text());
+        _tandem_params.setParamLabelValue("protein, cleavage semi", "no");
         if (ui->pcsemi_yes_radio_button->isChecked()) {
             _tandem_params.setParamLabelValue("protein, cleavage semi", "yes");
         }
         _tandem_params.setParamLabelValue("protein, cleavage C-terminal mass change", ui->pcctmc_edit->text());
-        _tandem_params.setParamLabelValue("protein, cleavage N-terminal mass change", ui->pcntmc_edit->text()); _tandem_params.setParamLabelValue("protein, quick acetyl", "no");
+        _tandem_params.setParamLabelValue("protein, cleavage N-terminal mass change", ui->pcntmc_edit->text());
+        _tandem_params.setParamLabelValue("protein, quick acetyl", "no");
         if (ui->pqa_yes_radio_button->isChecked()) {
             _tandem_params.setParamLabelValue("protein, quick acetyl", "yes");
         }
@@ -389,6 +404,13 @@ void EditTandemPresetDialog::readUi() {
         _tandem_params.setParamLabelValue("residue, potential modification motif", ui->rpmmotif_edit->text());
         _tandem_params.setParamLabelValue("residue, potential modification motif 1", ui->rpmmotif1_edit->text());
         _tandem_params.setParamLabelValue("residue, potential modification motif 2", ui->rpmmotif2_edit->text());
+        _tandem_params.setParamLabelValue("scoring, maximum missed cleavage sites", ui->smmcs_edit->text());
+        _tandem_params.setParamLabelValue("scoring, cyclic permutation", "no");
+        if (ui->scp_yes_radio_button->isChecked()) {
+            _tandem_params.setParamLabelValue("scoring, cyclic permutation", "yes");
+        }
+
+        _tandem_params.setParamLabelValue("scoring, minimum ion count", ui->smic_edit->text());
 
     }
     catch (pappso::PappsoException & error) {
@@ -434,7 +456,7 @@ void EditTandemPresetDialog::populate() {
         ui->sfmmeu_daltons_radio_button->setChecked(false);
         ui->sfmmeu_ppm_radio_button->setChecked(true);
     }
-    
+
     //<note type="input" label="spectrum, fragment monoisotopic mass error">0.02</note>
     ui->sfmme_edit->setText(_tandem_params.getValue("spectrum, fragment monoisotopic mass error"));
 
@@ -446,7 +468,7 @@ void EditTandemPresetDialog::populate() {
         ui->sunlw_yes_radio_button->setChecked(false);
         ui->sunlw_no_radio_button->setChecked(true);
     }
-    
+
     //<note type="input" label="spectrum, dynamic range">100.0</note>
     ui->sdr_edit->setText(_tandem_params.getValue("spectrum, dynamic range"));
 
@@ -470,8 +492,8 @@ void EditTandemPresetDialog::populate() {
         ui->suca_yes_radio_button->setChecked(false);
         ui->suca_no_radio_button->setChecked(true);
     }
-    
-    
+
+
     //<note type="input" label="spectrum, threads">1</note>
     ui->st_edit->setText(_tandem_params.getValue("spectrum, threads"));
 
@@ -504,7 +526,7 @@ void EditTandemPresetDialog::populate() {
         ui->pqa_yes_radio_button->setChecked(false);
         ui->pqa_no_radio_button->setChecked(true);
     }
-    
+
     //<note type="input" label="protein, quick pyrolidone">yes</note>
     ui->pqp_yes_radio_button->setChecked(true);
     ui->pqp_no_radio_button->setChecked(false);
@@ -512,8 +534,8 @@ void EditTandemPresetDialog::populate() {
         ui->pqp_yes_radio_button->setChecked(false);
         ui->pqp_no_radio_button->setChecked(true);
     }
-    
-    
+
+
     //<note type="input" label="protein, stP bias">yes</note>
     ui->pstpb_yes_radio_button->setChecked(true);
     ui->pstpb_no_radio_button->setChecked(false);
@@ -521,7 +543,7 @@ void EditTandemPresetDialog::populate() {
         ui->pstpb_yes_radio_button->setChecked(false);
         ui->pstpb_no_radio_button->setChecked(true);
     }
-    
+
     //<note type="input" label="protein, modified residue mass file"></note>
     ui->pmrmf_edit->setText(_tandem_params.getValue("protein, modified residue mass file"));
 
@@ -547,6 +569,25 @@ void EditTandemPresetDialog::populate() {
     //<note type="input" label="residue, potential modification motif 2"></note>
     ui->rpmmotif2_edit->setText(_tandem_params.getValue("residue, potential modification motif 2"));
 
+    //<note type="input" label="scoring, minimum ion count">4</note>
+    ui->smic_edit->setText(_tandem_params.getValue("scoring, minimum ion count"));
+    //<note type="input" label="scoring, maximum missed cleavage sites">1</note>
+    ui->smmcs_edit->setText(_tandem_params.getValue("scoring, maximum missed cleavage sites"));
+    //<note type="input" label="scoring, cyclic permutation">yes</note>
+    ui->scp_yes_radio_button->setChecked(true);
+    ui->scp_no_radio_button->setChecked(false);
+    if ( _tandem_params.getValue("scoring, cyclic permutation") == "no" ) { // -1 for not found
+        ui->scp_yes_radio_button->setChecked(false);
+        ui->scp_no_radio_button->setChecked(true);
+    }
+    //<note type="input" label="scoring, include reverse">yes</note>
+    //<note type="input" label="scoring, y ions">yes</note>
+    //<note type="input" label="scoring, b ions">yes</note>
+    //<note type="input" label="scoring, c ions">no</note>
+    //<note type="input" label="scoring, z ions">no</note>
+    //<note type="input" label="scoring, a ions">no</note>
+    //<note type="input" label="scoring, x ions">no</note>
+
     qDebug() << "EditTandemPresetDialog::populate end";
 }
 
-- 
GitLab