From 4f418ebb6866b5d78705b639698c05f4551cb417 Mon Sep 17 00:00:00 2001 From: Abhinav Sharma Date: Sun, 23 Jun 2024 17:59:30 +0200 Subject: [PATCH] reconnect to the overall workflow [ci skip] --- workflows/validate_fastqs_wf.nf | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/workflows/validate_fastqs_wf.nf b/workflows/validate_fastqs_wf.nf index 52e25bf1..e9ed1dfb 100644 --- a/workflows/validate_fastqs_wf.nf +++ b/workflows/validate_fastqs_wf.nf @@ -30,7 +30,6 @@ workflow VALIDATE_FASTQS_WF { - /* FASTQ_VALIDATOR( fastqs_ch, ready ) @@ -39,19 +38,18 @@ workflow VALIDATE_FASTQS_WF { approved_fastqs_ch = UTILS_FASTQ_COHORT_VALIDATION.out.magma_analysis_json .splitJson() - .filter {it.value.fastqs_approved} - .map { - if (it.value.R2) { - [it.value.magma_sample_name, it.value.magma_bam_rg_string, [it.value.R1, it.value.R2]] - } else { - [it.value.magma_sample_name, it.value.magma_bam_rg_string, [it.value.R1]] - } - } + .filter {it.value.fastqs_approved} + .map { + if (it.value.R2) { + [it.value.magma_sample_name, it.value.magma_bam_rg_string, [it.value.R1, it.value.R2]] + } else { + [it.value.magma_sample_name, it.value.magma_bam_rg_string, [it.value.R1]] + } + } emit: - passed_fastqs_ch = approved_fastqs_ch + passed_fastqs_ch = approved_fastqs_ch -*/ }