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