From 674bf15845dc35cc96c211db51f2bc527b982c6c Mon Sep 17 00:00:00 2001 From: Judith Bernett Date: Thu, 5 Dec 2024 16:16:38 +0100 Subject: [PATCH] giving back valid measure variables: if curvecurator&raw -> run processes, if it's curvecurator but already processed, just append _curvecurator to metric, else return normal metric --- subworkflows/local/preprocess_custom/main.nf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/subworkflows/local/preprocess_custom/main.nf b/subworkflows/local/preprocess_custom/main.nf index 7d0f25f..528d95c 100644 --- a/subworkflows/local/preprocess_custom/main.nf +++ b/subworkflows/local/preprocess_custom/main.nf @@ -15,7 +15,12 @@ workflow PREPROCESS_CUSTOM { PREPROCESS_RAW_VIABILITY(dataset_name, path_data) FIT_CURVES(dataset_name, PREPROCESS_RAW_VIABILITY.out.path_to_toml, PREPROCESS_RAW_VIABILITY.out.curvecurator_input) POSTPROCESS_CURVECURATOR_DATA(dataset_name, FIT_CURVES.out.path_to_curvecurator_out, measure) + ch_measure = POSTPROCESS_CURVECURATOR_DATA.out.measure + }else if(params.curve_curator){ + ch_measure = Channel.of("${measure}" + "_curvecurator") + }else{ + ch_measure = measure } emit: - measure = POSTPROCESS_CURVECURATOR_DATA.out.measure + measure = ch_measure }