Esempio n. 1
0
        public SpectrumMatchList GetCharge(int charge)
        {
            var chargeMatchList = new SpectrumMatchList();

            chargeMatchList.AddRange(from i in this
                                     where i.PrecursorCharge == charge
                                     select i);
            return(chargeMatchList);
        }
Esempio n. 2
0
        public void FilterSpectra(double windowWidth = 100, int retentionCount = 6)
        {
            var filteredList = new SpectrumMatchList();

            foreach (var match in this)
            {
                var spectrum = SpectrumFilter.GetFilteredSpectrum(match.Spectrum, windowWidth, retentionCount);
                filteredList.Add(new SpectrumMatch(match.Peptide, SequenceFormat, spectrum, match.ScanNum, match.PrecursorCharge, match.Decoy));
            }
            Clear();
            AddRange(filteredList);
        }