diff --git a/software/multiqc/main.nf b/software/multiqc/main.nf index 0e2ba0c9..ddfe6f59 100644 --- a/software/multiqc/main.nf +++ b/software/multiqc/main.nf @@ -9,22 +9,24 @@ process MULTIQC { label 'process_medium' publishDir "${params.outdir}", mode: params.publish_dir_mode, - saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:'') } + saveAs: { filename -> saveFiles(filename: filename, options: params.options, publish_dir: getSoftwareName(task.process), publish_id: '') } - conda (params.enable_conda ? "bioconda::multiqc=1.9" : null) + conda(params.enable_conda ? "bioconda::multiqc=1.9" : null) container "quay.io/biocontainers/multiqc:1.9--pyh9f0ad1d_0" input: - tuple val(meta), path(reads) +// path multiqc_config +// path multiqc_custom_config + path('fastqc/*') - output: path "*multiqc_report.html", emit: report - path "*_data" , emit: data - path "*_plots" , optional:true, emit: plots + path "*_data", emit: data + path "*_plots", optional: true, emit: plots script: +// def custom_config = params.multiqc_config ? "--config $multiqc_custom_config" : '' """ - multiqc -f $options.args . + multiqc -f $options.args $custom_config . """ } diff --git a/tests/software/multiqc/main.nf b/tests/software/multiqc/main.nf index a6ff0082..8abce77e 100644 --- a/tests/software/multiqc/main.nf +++ b/tests/software/multiqc/main.nf @@ -8,9 +8,13 @@ include { test_paired_end } from '../fastqc/main.nf' addParams( options: [ publ workflow test_multiqc { test_paired_end() + +// test_paired_end.out.html.collect { it[1] } +// .join(test_paired_end.out.zip) +// .view() + input = [ - [id: 'test'], - test_paired_end.out.html.join(test_paired_end.out.zip, by: 0).flatten().filter(java.nio.file.Path).toList() + test_paired_end.out.zip.collect { it[1] }.ifEmpty([]) ] MULTIQC(input)