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:
|
2020-12-08 08:27:14 -05:00
|
|
|
path multiqc_files
|
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 ?: ''
|
2020-11-29 02:50:23 -05:00
|
|
|
"""
|
2021-11-26 02:58:40 -05:00
|
|
|
multiqc -f $args .
|
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
|
|
|
"""
|
2020-11-23 08:01:55 -05:00
|
|
|
}
|