From a2e9c839aff653bf275eeb225b02697d9531599c Mon Sep 17 00:00:00 2001 From: Leon Hafner <60394289+LeonHafner@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:57:06 +0100 Subject: [PATCH] fix skip_multiqc channel not exist error --- workflows/chipseq.nf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workflows/chipseq.nf b/workflows/chipseq.nf index ebb9613e..0e3d9e3d 100644 --- a/workflows/chipseq.nf +++ b/workflows/chipseq.nf @@ -524,6 +524,8 @@ workflow CHIPSEQ { // // MODULE: MultiQC // + ch_multiqc_report = Channel.empty() + if (!params.skip_multiqc) { ch_multiqc_config = Channel.fromPath("$projectDir/assets/multiqc_config.yml", checkIfExists: true) ch_multiqc_custom_config = params.multiqc_config ? Channel.fromPath( params.multiqc_config ): Channel.empty() @@ -578,7 +580,8 @@ workflow CHIPSEQ { ch_multiqc_report = MULTIQC.out.report } - emit:multiqc_report = MULTIQC.out.report.toList() // channel: /path/to/multiqc_report.html + emit: + multiqc_report = ch_multiqc_report.toList() // channel: /path/to/multiqc_report.html versions = ch_versions // channel: [ path(versions.yml) ] }