private void LoadPeaks(Run run) { var sourcePeaksFile = Path.Combine(run.DataSetPath, run.DatasetName + "_peaks.txt"); //FULL.txt"; RunUtilities.GetPeaks(run, sourcePeaksFile); //create / load //TODO: adjust the RunUtilities class so that it can simply take a run and create the _peaks and load them. }
//note: does not actually create peaks. Only loads them. An exception is thrown if it's not there. private void CreatePeaksIfNeeded() { if (_run.ResultCollection.MSPeakResultList.Count == 0) { var expectedPeaksfile = Path.Combine(_run.DataSetPath, _run.DatasetName + "_peaks.txt"); if (!File.Exists(expectedPeaksfile)) { var ex = new Exception("No Peaks file found."); throw ex; // CreatePeaksFile(); //ExportPeaks_copied(expectedPeaksfile); } RunUtilities.GetPeaks(_run, expectedPeaksfile); } }
private void LoadPeaks(string userProvidedOutputFolderPath = null) { string outputFolderPath; if (string.IsNullOrEmpty(userProvidedOutputFolderPath)) { outputFolderPath = Run.DataSetPath; } else { outputFolderPath = userProvidedOutputFolderPath; } var expectedPeaksFile = Path.Combine(outputFolderPath, Run.DatasetName + "_peaks.txt"); RunUtilities.GetPeaks(Run, expectedPeaksFile); }