public void xcaliburSpeed_RAPID_Test1() { Run run = new XCaliburRun(xcaliburTestfile); int startScan = 6005; int stopScan = 7000; int numScansSummed = 1; ScanSetCollectionCreator scanSetCreator = new ScanSetCollectionCreator(run, startScan, stopScan, numScansSummed, 1); scanSetCreator.Create(); ResultCollection results = new ResultCollection(run); List <timingResult> timingResults = new List <timingResult>(); System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); foreach (ScanSet scanset in run.ScanSetCollection.ScanSetList) { if (results.Run.GetMSLevel(scanset.PrimaryScanNumber) != 1) { continue; } sw.Reset(); timingResult timeresult = new timingResult(); timeresult.frameNum = -1; timeresult.scanNum = scanset.PrimaryScanNumber; sw.Start(); run.CurrentScanSet = scanset; Task msgen = new GenericMSGenerator(); msgen.Execute(results); timeresult.msGenTime = sw.ElapsedMilliseconds; sw.Reset(); sw.Start(); Task peakDetector = new DeconToolsPeakDetector(); peakDetector.Execute(results); timeresult.peakDetectorTime = sw.ElapsedMilliseconds; sw.Reset(); sw.Start(); Task rapid = new RapidDeconvolutor(); rapid.Execute(results); timeresult.deconTime = sw.ElapsedMilliseconds; sw.Reset(); sw.Start(); Task scanResultUpdater = new ScanResultUpdater(); scanResultUpdater.Execute(results); timeresult.resultUpdaterTime = sw.ElapsedMilliseconds; timingResults.Add(timeresult); } reportTimingEachScan(timingResults); }
public void xcaliburSpeed_THRASH_Test1() { Run run = new XCaliburRun(xcaliburTestfile); int startScan = 6005; int stopScan = 6050; int numScansSummed = 1; ScanSetCollectionCreator scanSetCreator = new ScanSetCollectionCreator(run, startScan, stopScan, numScansSummed, 1); scanSetCreator.Create(); ResultCollection results = new ResultCollection(run); List <timingResult> timingResults = new List <timingResult>(); System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); foreach (ScanSet scanset in run.ScanSetCollection.ScanSetList) { if (results.Run.GetMSLevel(scanset.PrimaryScanNumber) != 1) { continue; } sw.Reset(); timingResult timeresult = new timingResult(); timeresult.frameNum = -1; timeresult.scanNum = scanset.PrimaryScanNumber; sw.Start(); run.CurrentScanSet = scanset; Task msgen = new GenericMSGenerator(); msgen.Execute(results); timeresult.msGenTime = sw.ElapsedMilliseconds; sw.Reset(); sw.Start(); Task peakDetector = new DeconToolsPeakDetector(); peakDetector.Execute(results); timeresult.peakDetectorTime = sw.ElapsedMilliseconds; sw.Reset(); sw.Start(); DeconToolsV2.HornTransform.clsHornTransformParameters hornParams = new DeconToolsV2.HornTransform.clsHornTransformParameters(); Task decon = new HornDeconvolutor(hornParams); decon.Execute(results); timeresult.deconTime = sw.ElapsedMilliseconds; sw.Reset(); sw.Start(); Task scanResultUpdater = new ScanResultUpdater(); scanResultUpdater.Execute(results); timeresult.resultUpdaterTime = sw.ElapsedMilliseconds; timingResults.Add(timeresult); } reportTimingEachScan(timingResults); /* * results on Gord's computer... 2009_11_18. * scanNum msgen peakDet decon updater * 6005 85 72 3013 3 * 6012 13 6 2661 0 * 6019 13 9 2908 0 * 6026 12 11 2560 0 * 6033 14 9 2778 0 * 6040 13 6 2558 0 * 6047 12 8 2753 0 * * Avg: 23.1 17.3 2747.3 0.4 */ }
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(); }