From a92d2e0251df06005f3d437fd93dc64133380727 Mon Sep 17 00:00:00 2001 From: Laurent Modolo <laurent.modolo@ens-lyon.fr> Date: Tue, 2 Nov 2021 10:42:55 +0100 Subject: [PATCH] mutliqc.nf: fix flatten procedure --- src/nf_modules/multiqc/main.nf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/nf_modules/multiqc/main.nf b/src/nf_modules/multiqc/main.nf index f33386d2..fef35b50 100644 --- a/src/nf_modules/multiqc/main.nf +++ b/src/nf_modules/multiqc/main.nf @@ -16,7 +16,7 @@ multiqc( report_b, report_c, report_d - ).collect() + ) ) */ @@ -29,8 +29,9 @@ workflow multiqc { take: report main: - report.map{ - if (it instanceof List){ + report + .map{it -> + if (it.size() > 1){ it[1] } else { it @@ -38,6 +39,7 @@ workflow multiqc { } .flatten() .unique() + .view() .set { report_cleaned } multiqc_default(report_cleaned.collect()) -- GitLab