Example #1
0
        /// <summary>
        /// Add the spectrum to quantification.
        /// </summary>
        private void MetroButtonAddQuant_Click(object sender, EventArgs e)
        {
            // Add the spectrum to the dictionary
            Quantification.AddTokvpArgSpecScanDict(valKVP.Key, valKVP.Value[potCitIndex]);
            // Update the quantification id list
            UpdateChosenForQuant(valKVP.Key.ID, true);

            // Enable and disable the button
            // Prevent moving back and forth through the complementary spectra
            metroButtonNextPotCitScan.Enabled = false;
            metroButtonPrevPotCitScan.Enabled = false;
            // Enable the remove button and disable the add button
            metroButtonAddQuant.Enabled    = false;
            metroButtonRemoveQuant.Enabled = true;
        }
Example #2
0
 /// <summary>
 /// Add the Arg Spectra to quantification.
 /// </summary>
 /// <param name="scoredSpectra">The spectra to be added.</param>
 private static void AddArgSpectraAboveCutOffToQuantification(Dictionary <XTSpectrum, List <RawScan> > scoredSpectra)
 {
     // Loop through all of the spectra
     foreach (KeyValuePair <XTSpectrum, List <RawScan> > spectrum in scoredSpectra)
     {
         // Loop through all of the complementary cit spectra
         foreach (RawScan complSpectra in spectrum.Value)
         {
             // Check that the CitScore is greater than the CutOff value
             if (complSpectra.CitScore >= ScoreSettings.CutOffScore && Quantification.argSpecScanDict.ContainsKey(spectrum.Key) == false)
             {
                 // If the spectrum passes, add the spectrum to the quantification together with the arginine spectra
                 Quantification.AddTokvpArgSpecScanDict(spectrum.Key, complSpectra);
                 Validation.argChosenForQuantList.Add(spectrum.Key.ID);
             }
         }
     }
 }