2020-11-29 08:50:23 +01:00
|
|
|
process MULTIQC {
|
2020-11-23 18:31:55 +05:30
|
|
|
label 'process_medium'
|
|
|
|
|
2022-09-12 15:48:58 +02:00
|
|
|
conda (params.enable_conda ? 'bioconda::multiqc=1.13' : null)
|
2021-11-26 07:58:40 +00:00
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
2022-09-12 15:48:58 +02:00
|
|
|
'https://depot.galaxyproject.org/singularity/multiqc:1.13--pyhdfd78af_0' :
|
|
|
|
'quay.io/biocontainers/multiqc:1.13--pyhdfd78af_0' }"
|
2020-11-23 18:31:55 +05:30
|
|
|
|
|
|
|
input:
|
2022-06-08 13:48:27 +02:00
|
|
|
path multiqc_files, stageAs: "?/*"
|
2022-09-08 09:12:53 +02:00
|
|
|
path(multiqc_config)
|
2022-09-15 13:53:15 +02:00
|
|
|
path(extra_multiqc_config)
|
2022-09-08 12:36:15 +02:00
|
|
|
path(multiqc_logo)
|
2020-11-23 18:31:55 +05:30
|
|
|
|
|
|
|
output:
|
2020-12-02 12:38:41 +05:30
|
|
|
path "*multiqc_report.html", emit: report
|
2020-12-08 18:57:14 +05:30
|
|
|
path "*_data" , emit: data
|
|
|
|
path "*_plots" , optional:true, emit: plots
|
2021-10-01 14:04:56 +01:00
|
|
|
path "versions.yml" , emit: versions
|
2020-11-23 18:31:55 +05:30
|
|
|
|
2022-02-04 09:53:32 +01:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2020-11-23 18:31:55 +05:30
|
|
|
script:
|
2021-11-26 07:58:40 +00:00
|
|
|
def args = task.ext.args ?: ''
|
2022-06-08 14:36:13 +02:00
|
|
|
def config = multiqc_config ? "--config $multiqc_config" : ''
|
2022-09-15 13:53:15 +02:00
|
|
|
def extra_config = extra_multiqc_config ? "--config $extra_multiqc_config" : ''
|
2020-11-29 08:50:23 +01:00
|
|
|
"""
|
2022-06-08 14:41:10 +02:00
|
|
|
multiqc \\
|
|
|
|
--force \\
|
|
|
|
$args \\
|
2022-09-15 13:53:15 +02:00
|
|
|
$config \\
|
|
|
|
$extra_config \\
|
2022-06-08 14:02:04 +02:00
|
|
|
.
|
2021-09-24 11:01:54 +02: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 11:01:54 +02:00
|
|
|
END_VERSIONS
|
2020-11-29 08:50:23 +01:00
|
|
|
"""
|
2022-03-28 17:48:39 +02: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 18:31:55 +05:30
|
|
|
}
|