Exemple #1
0
 protected override void InitializeProcessingTasks()
 {
     base.InitializeProcessingTasks();
     UimfDriftTimeExtractor = new UIMFDriftTimeExtractor();
     UimfTicExtractor       = new UIMF_TICExtractor();
     SaturationDetector     = new SaturationDetector();
 }
 protected override void InitializeProcessingTasks()
 {
     base.InitializeProcessingTasks();
     UimfDriftTimeExtractor = new UIMFDriftTimeExtractor();
     UimfTicExtractor       = new UIMF_TICExtractor();
     SaturationDetector     = new SaturationDetector();
     mCachedProgressMessage = string.Empty;
     mLastProgress          = DateTime.UtcNow;
 }
Exemple #3
0
        public void test1()
        {
            Run run = new UIMFRun(uimfFilepath);
            ResultCollection results = new ResultCollection(run);

            run.CurrentScanSet             = new ScanSet(300);
            ((UIMFRun)run).CurrentFrameSet = new FrameSet(1000, 999, 1001);

            Task ticExtractor = new UIMF_TICExtractor();

            ticExtractor.Execute(results);

            Assert.AreEqual(47973, results.Run.CurrentScanSet.TICValue);
        }
        public void msGeneratorSummingTest1()
        {
            Run run        = new UIMFRun(uimfFilePath3);
            int startFrame = 800;
            int stopFrame  = 802;

            int numFramesSummed = 3;
            int numScansSummed  = 9;


            FrameSetCollectionCreator framesetCreator = new FrameSetCollectionCreator(run, startFrame, stopFrame, numFramesSummed, 1);

            framesetCreator.Create();

            ScanSetCollectionCreator scanSetCreator = new ScanSetCollectionCreator(run, numScansSummed, 1);

            scanSetCreator.Create();

            ResultCollection    results       = new ResultCollection(run);
            List <timingResult> timingResults = new List <timingResult>();

            Task msgen              = new UIMF_MSGenerator();
            Task peakDetector       = new DeconToolsPeakDetector();
            Task decon              = new HornDeconvolutor();
            Task scanResultUpdater  = new ScanResultUpdater();
            Task uimfTicExtractor   = new UIMF_TICExtractor();
            Task driftTimeExtractor = new DeconTools.Backend.ProcessingTasks.UIMFDriftTimeExtractor();


            ((HornDeconvolutor)decon).MinPeptideBackgroundRatio = 4;

            foreach (FrameSet frameset in ((UIMFRun)run).FrameSetCollection.FrameSetList)
            {
                System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();



                ((UIMFRun)run).CurrentFrameSet = frameset;
                foreach (ScanSet scanset in run.ScanSetCollection.ScanSetList)
                {
                    sw.Reset();
                    timingResult timeresult = new timingResult();
                    timeresult.frameNum = frameset.PrimaryFrame;
                    timeresult.scanNum  = scanset.PrimaryScanNumber;
                    sw.Start();

                    run.CurrentScanSet = scanset;

                    msgen.Execute(results);
                    timeresult.msGenTime = sw.ElapsedMilliseconds;

                    sw.Reset();
                    sw.Start();
                    peakDetector.Execute(results);
                    timeresult.peakDetectorTime = sw.ElapsedMilliseconds;

                    sw.Reset();
                    sw.Start();
                    decon.Execute(results);
                    timeresult.deconTime = sw.ElapsedMilliseconds;

                    sw.Reset();
                    sw.Start();
                    scanResultUpdater.Execute(results);
                    timeresult.resultUpdaterTime = sw.ElapsedMilliseconds;

                    sw.Reset();
                    sw.Start();
                    uimfTicExtractor.Execute(results);
                    timeresult.ticExtractorTime = sw.ElapsedMilliseconds;


                    sw.Reset();
                    sw.Start();
                    driftTimeExtractor.Execute(results);

                    timeresult.driftTimeExtractorTime = sw.ElapsedMilliseconds;

                    timingResults.Add(timeresult);
                }
            }

            //reportTimingEachFrameEachScan(timingResults);

            Console.WriteLine("Total _isos = " + results.ResultList.Count);
            Console.WriteLine("PeptideBR = " + ((HornDeconvolutor)decon).MinPeptideBackgroundRatio);
            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine();

            reportTiming_FrameAggregate(timingResults, startFrame, stopFrame);
            Project.Reset();
        }