/// <summary> /// Add the spectrum to quantification. /// </summary> private void MetroButtonAddQuant_Click(object sender, EventArgs e) { // Get the spectrum XTSpectrum spectrumCit = valSpec; // Add the spectrum to the dictionary Quantification.AddToLoneCitSpecList(spectrumCit); // Update the quantification id list UpdateChosenForQuant(valSpec.ID, true); // Enable and disable the button metroButtonAddQuant.Enabled = false; metroButtonRemoveQuant.Enabled = true; }
/// <summary> /// Add the Lone Cit Spectra to quantification. /// </summary> /// <param name="scoredSpectra">The spectra to be added.</param> private static void AddLoneCitSpectraAboveCutoffToQunatification(List <XTSpectrum> scoredSpectra) { // Loop through the spectra foreach (XTSpectrum spectrum in scoredSpectra) { // Check that the CitScore is greater than the CutOff value if (spectrum.CitScore >= ScoreSettings.CutOffScore) { // If the spectrum passes, add the spectrum to the quantification Quantification.AddToLoneCitSpecList(spectrum); Validation.loneCitChosenForQuantList.Add(spectrum.ID); } } }