private void LoadLibrary(IEnumerable <DbIonMobilityPeptide> library) { LibraryPeptideList.Clear(); foreach (var peptide in library) { var val = new ValidatingIonMobilityPeptide(peptide); if (!LibraryPeptideList.Any(p => p.Equals(val))) { LibraryPeptideList.Add(val); } } }
private void LoadLibrary(IEnumerable <DbIonMobilityPeptide> library) { LibraryPeptideList.Clear(); foreach (var peptide in library) { var val = new ValidatingIonMobilityPeptide(peptide.Sequence, peptide.CollisionalCrossSection, peptide.HighEnergyDriftTimeOffsetMsec); if (!LibraryPeptideList.Any(p => p.Equals(val))) { LibraryPeptideList.Add(val); } } }
public void ClearLibraryPeptides() { LibraryPeptideList.Clear(); }