Exemple #1
0
        protected void AppendScan(IRawFile2 rawReader, List <IsobaricScan> result, int scan, string mode, double isolationWidth)
        {
            IsobaricScan item = new IsobaricScan();

            PeakList <Peak> pkl = rawReader.GetPeakList(scan, MinMz, MaxMz);

            if (pkl.Count < MinPeakCount)
            {
                return;
            }

            var recordScan = GetIdentificationScan(scan);

            item.ScanMode = mode;
            item.RawPeaks = pkl;
            item.PeakInIsolationWindow = rawReader.GetPeakInIsolationWindow(scan, isolationWidth);
            item.Scan = rawReader.GetScanTime(recordScan);

            result.Add(item);
        }
        public static double GetPrecursorPercentageInIsolationWindow(this IRawFile2 RawReader, int scan, double ppmTolerance)
        {
            var parentPkl = RawReader.GetPeakInIsolationWindow(scan);

            return(parentPkl.GetPrecursorPercentage(ppmTolerance));
        }