public void loadIMFResultsAndThenExport() { IsosResultUtilities iru = new IsosResultUtilities(); List <IsosResult> results = iru.getIMFResults(imfIsosFolder, 500, 600); UIMFIsosExporter exporter = new UIMFIsosExporter(Path.Combine(imfIsosFolder, "mergedIsosResults.csv")); ResultCollection rc = new ResultCollection(new IMFRun()); rc.ResultList = results; exporter.Export(rc); }
public void smallExportTest1() { Project project = Project.getInstance(); //TODO: add project parameters (for summing) project.RunCollection.Add(new UIMFRun(uimfFilepath, 1200, 1202, 250, 300)); Task msGen = new UIMF_MSGenerator(200, 2000); DeconToolsV2.Peaks.clsPeakProcessorParameters detectorParams = new DeconToolsV2.Peaks.clsPeakProcessorParameters(); detectorParams.PeakBackgroundRatio = 3; detectorParams.PeakFitType = DeconToolsV2.Peaks.PEAK_FIT_TYPE.QUADRATIC; detectorParams.SignalToNoiseThreshold = 3; detectorParams.ThresholdedData = false; Task peakDetector = new DeconToolsPeakDetector(detectorParams); Task decon = new HornDeconvolutor(); Task driftTimeExtractor = new UIMFDriftTimeExtractor(); project.TaskCollection.TaskList.Add(msGen); project.TaskCollection.TaskList.Add(peakDetector); project.TaskCollection.TaskList.Add(decon); project.TaskCollection.TaskList.Add(driftTimeExtractor); TaskController controller = new UIMF_TaskController(project.TaskCollection); controller.Execute(project.RunCollection); UIMFIsosExporter isosExporter = new UIMFIsosExporter(uimfIsosExporterTest1output); isosExporter.Export(project.RunCollection[0].ResultCollection); }
public void readInBinaryDataAndExport() { UIMFIsosExporter isosExporter = new UIMFIsosExporter(uimfIsosExporterTest2output); isosExporter.Export(binaryUIMFData, false); }