public void test1() { Run run = new ICR2LSRun(icr2LSRawDatafile1); run.CurrentScanSet = new ScanSet(2210); Task msGen = new GenericMSGenerator(732, 746); msGen.Execute(run.ResultCollection); Task peakdetector = new DeconToolsPeakDetector(); ((DeconToolsPeakDetector)peakdetector).PeakBackgroundRatio = 5; ((DeconToolsPeakDetector)peakdetector).SigNoiseThreshold = 2; peakdetector.Execute(run.ResultCollection); Console.WriteLine("Peaks detected = " + run.PeakList.Count); TomN14N15Analyzer analyzer = new TomN14N15Analyzer(); analyzer.ExtractN14N15Values(run.ResultCollection); Console.WriteLine("Peaks detected = " + run.PeakList.Count); Assert.AreEqual(14, run.PeakList.Count); }
public void test2() { Run run = new XCaliburRun(xcaliburTestfile); run.CurrentScanSet = new ScanSet(6005); Task msGen = new GenericMSGenerator(438, 500); msGen.Execute(run.ResultCollection); Task peakdetector = new DeconToolsPeakDetector(); peakdetector.Execute(run.ResultCollection); Console.WriteLine("Peaks detected = " + run.PeakList.Count); TomN14N15Analyzer analyzer = new TomN14N15Analyzer(); analyzer.ExtractN14N15Values(run.ResultCollection); Console.WriteLine("Peaks detected = " + run.PeakList.Count); }