Example #1
0
        protected override IEnumerable<PeakSet> BulkPeakFind(DataReader uimf, FileInfo originFile, int frameNumber)
        {
            var mzData = GetFullMzInfo(uimf, frameNumber);
            var doubleMzData =
                mzData.Select(
                    keyValuePair => new KeyValuePair<double, double>(keyValuePair.Key, keyValuePair.Value))
                    .ToList();
            var mzpeaks = PeakFinder.FindPeaks(doubleMzData);

            var mzPeakOutputLocation = DataExporter.GetOutputLocation(
                    originFile,
                    "Mz_Peaks",
                    frameNumber,
                    "xml");
            DataExporter.OutputPeaks(mzpeaks, mzPeakOutputLocation);
            var peakSet = new List<PeakSet>();
            peakSet.Add(mzpeaks);
            return peakSet;
        }
Example #2
0
        protected override IEnumerable <PeakSet> BulkPeakFind(DataReader uimf, FileInfo originFile, int frameNumber)
        {
            var peakSets = new List <PeakSet>();

            foreach (var xicTarget in Options.XicTargetList)
            {
                var xicData  = GetXicInfo(uimf, frameNumber, xicTarget.TargetMz, xicTarget.Tolerance, this.Options.Getmsms);
                var xicPeaks = PeakFinder.FindPeaks(xicData);
                var xicPeakOutputLocation = DataExporter.GetOutputLocation(
                    originFile,
                    "XiC_Peaks_mz_" + xicTarget.TargetMz + "_tolerance_" + xicTarget.Tolerance + "_Frame",
                    frameNumber,
                    "xml");
                DataExporter.OutputPeaks(xicPeaks, xicPeakOutputLocation);

                peakSets.Add(xicPeaks);
            }

            return(peakSets);
        }
Example #3
0
        protected override IEnumerable <PeakSet> BulkPeakFind(DataReader uimf, FileInfo originFile, int frameNumber)
        {
            var ticData       = GetFullScanInfo(uimf, frameNumber);
            var doubleTicData =
                ticData.Select(scanInfo => new KeyValuePair <double, double>(scanInfo.DriftTime, scanInfo.TIC))
                .ToList();

            var ticPeaks             = PeakFinder.FindPeaks(doubleTicData);
            var mzPeakOutputLocation = DataExporter.GetOutputLocation(
                originFile,
                "TiC_Peaks",
                frameNumber,
                "xml");

            DataExporter.OutputPeaks(ticPeaks, mzPeakOutputLocation);
            var peakSets = new List <PeakSet>();

            peakSets.Add(ticPeaks);
            return(peakSets);
        }