예제 #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);
        }
예제 #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);
        }