From 84b2ae0e84b10d2659c1080bce67014f803721fe Mon Sep 17 00:00:00 2001 From: Laurent Modolo <laurent.modolo@ens-lyon.fr> Date: Fri, 4 Jun 2021 10:12:58 +0200 Subject: [PATCH] multiqc: add workflow to perform report channel cleanning --- src/nf_modules/multiqc/main.nf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/nf_modules/multiqc/main.nf b/src/nf_modules/multiqc/main.nf index 0b24b68a..f7ac1dd6 100644 --- a/src/nf_modules/multiqc/main.nf +++ b/src/nf_modules/multiqc/main.nf @@ -3,6 +3,25 @@ container_url = "lbmc/multiqc:${version}" params.multiqc = "" params.multiqc_out = "QC/" +workflow multiqc { + take: + report + main: + report.map{ + if (it instanceof List){ + it[1] + } else { + it + } + } + .unique() + .set { report_cleaned } + multiqc_default(report_cleaned.collect()) + + emit: + report = multiqc_default.out.report +} + process multiqc { container = "${container_url}" label "big_mem_mono_cpus" -- GitLab