From 28174b934d152cdf345b3a7bdf270867b52c3511 Mon Sep 17 00:00:00 2001 From: mauraisa Date: Mon, 9 Sep 2024 14:03:46 -0700 Subject: [PATCH] Create run_details_file before it needs to be uploaded. --- main.nf | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/main.nf b/main.nf index 210d26c..7164e81 100644 --- a/main.nf +++ b/main.nf @@ -112,6 +112,12 @@ workflow { all_mzml_ch = wide_mzml_ch } + // save details about this run + input_files = all_mzml_ch.map{ it -> ['Spectra File', it.baseName] } + version_files = Channel.empty() + save_run_details(input_files.collect(), version_files.collect()) + run_details_file = save_run_details.out.run_details + // if requested, upload mzMLs to panorama if(params.panorama.upload) { @@ -124,13 +130,6 @@ workflow { ) } - - // save details about this run - input_files = all_mzml_ch.map{ it -> ['Spectra File', it.baseName] } - version_files = Channel.empty() - save_run_details(input_files.collect(), version_files.collect()) - run_details_file = save_run_details.out.run_details - return }