2020-11-29 07:50:23 +00:00
|
|
|
process MULTIQC {
|
2020-11-23 13:01:55 +00:00
|
|
|
label 'process_medium'
|
|
|
|
|
2022-02-11 08:44:13 +00:00
|
|
|
conda (params.enable_conda ? 'bioconda::multiqc=1.12' : null)
|
2021-11-26 07:58:40 +00:00
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
2022-02-11 08:44:13 +00:00
|
|
|
'https://depot.galaxyproject.org/singularity/multiqc:1.12--pyhdfd78af_0' :
|
|
|
|
'quay.io/biocontainers/multiqc:1.12--pyhdfd78af_0' }"
|
2020-11-23 13:01:55 +00:00
|
|
|
|
|
|
|
input:
|
2022-06-07 11:58:27 +00:00
|
|
|
path "??/*"
|
2020-11-23 13:01:55 +00:00
|
|
|
|
|
|
|
output:
|
2020-12-02 07:08:41 +00:00
|
|
|
path "*multiqc_report.html", emit: report
|
2020-12-08 13:27:14 +00:00
|
|
|
path "*_data" , emit: data
|
|
|
|
path "*_plots" , optional:true, emit: plots
|
2021-10-01 13:04:56 +00:00
|
|
|
path "versions.yml" , emit: versions
|
2020-11-23 13:01:55 +00:00
|
|
|
|
2022-02-04 08:53:32 +00:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2020-11-23 13:01:55 +00:00
|
|
|
script:
|
2021-11-26 07:58:40 +00:00
|
|
|
def args = task.ext.args ?: ''
|
2020-11-29 07:50:23 +00:00
|
|
|
"""
|
2021-11-26 07:58:40 +00:00
|
|
|
multiqc -f $args .
|
2021-09-24 09:01:54 +00:00
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
2021-11-26 07:58:40 +00:00
|
|
|
"${task.process}":
|
|
|
|
multiqc: \$( multiqc --version | sed -e "s/multiqc, version //g" )
|
2021-09-24 09:01:54 +00:00
|
|
|
END_VERSIONS
|
2020-11-29 07:50:23 +00:00
|
|
|
"""
|
2022-03-28 15:48:39 +00:00
|
|
|
|
|
|
|
stub:
|
|
|
|
"""
|
|
|
|
touch multiqc_data
|
|
|
|
touch multiqc_plots
|
|
|
|
touch multiqc_report.html
|
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
multiqc: \$( multiqc --version | sed -e "s/multiqc, version //g" )
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
2020-11-23 13:01:55 +00:00
|
|
|
}
|