2020-11-29 07:50:23 +00:00
|
|
|
process MULTIQC {
|
2020-11-23 13:01:55 +00:00
|
|
|
label 'process_medium'
|
|
|
|
|
2022-07-06 08:16:34 +00:00
|
|
|
conda (params.enable_conda ? 'bioconda::multiqc=1.13a' : null)
|
2021-11-26 07:58:40 +00:00
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
2022-06-29 06:40:42 +00:00
|
|
|
'https://depot.galaxyproject.org/singularity/multiqc:1.13a--pyhdfd78af_1' :
|
|
|
|
'quay.io/biocontainers/multiqc:1.13a--pyhdfd78af_1' }"
|
2020-11-23 13:01:55 +00:00
|
|
|
|
|
|
|
input:
|
2022-06-08 11:48:27 +00:00
|
|
|
path multiqc_files, stageAs: "?/*"
|
2022-09-08 07:12:53 +00:00
|
|
|
path(multiqc_config)
|
2022-09-08 10:36:15 +00:00
|
|
|
path(multiqc_logo)
|
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 ?: ''
|
2022-06-08 12:36:13 +00:00
|
|
|
def config = multiqc_config ? "--config $multiqc_config" : ''
|
2020-11-29 07:50:23 +00:00
|
|
|
"""
|
2022-06-08 12:41:10 +00:00
|
|
|
multiqc \\
|
|
|
|
--force \\
|
|
|
|
$config \\
|
|
|
|
$args \\
|
2022-06-08 12:02:04 +00:00
|
|
|
.
|
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
|
|
|
}
|