Mercurial > repos > kkonganti > cfsan_bettercallsal
comparison 0.5.0/modules/multiqc/main.nf @ 1:365849f031fd
"planemo upload"
author | kkonganti |
---|---|
date | Mon, 05 Jun 2023 18:48:51 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:a4b1ee4b68b1 | 1:365849f031fd |
---|---|
1 process MULTIQC { | |
2 label 'process_micro' | |
3 tag 'MultiQC' | |
4 | |
5 module (params.enable_module ? "${params.swmodulepath}${params.fs}multiqc${params.fs}1.12" : null) | |
6 conda (params.enable_conda ? 'bioconda::multiqc=1.12 conda-forge::spectra conda-forge::lzstring' : null) | |
7 container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | |
8 'https://depot.galaxyproject.org/singularity/multiqc:1.12--pyhdfd78af_0' : | |
9 'quay.io/biocontainers/multiqc:1.12--pyhdfd78af_0' }" | |
10 | |
11 input: | |
12 path multiqc_files | |
13 | |
14 output: | |
15 path "*multiqc*" | |
16 path "*multiqc_report.html", emit: report | |
17 path "*_data" , emit: data | |
18 path "*_plots" , emit: plots, optional: true | |
19 path "versions.yml" , emit: versions | |
20 | |
21 when: | |
22 task.ext.when == null || task.ext.when | |
23 | |
24 script: | |
25 def args = task.ext.args ?: '' | |
26 """ | |
27 cp ${params.projectconf}${params.fs}multiqc${params.fs}${params.pipeline}_mqc.yml cpipes_mqc_config.yml | |
28 sed -i -e 's/Workflow_Name_Placeholder/${params.pipeline}/g; s/Workflow_Version_Placeholder/${params.workflow_version}/g' cpipes_mqc_config.yml | |
29 sed -i -e 's/CPIPES_Version_Placeholder/${workflow.manifest.version}/g; s%Workflow_Output_Placeholder%${params.output}%g' cpipes_mqc_config.yml | |
30 sed -i -e 's%Workflow_Input_Placeholder%${params.input}%g' cpipes_mqc_config.yml | |
31 | |
32 multiqc --interactive -c cpipes_mqc_config.yml -f $args . | |
33 | |
34 cat <<-END_VERSIONS > versions.yml | |
35 "${task.process}": | |
36 multiqc: \$( multiqc --version | sed -e "s/multiqc, version //g" ) | |
37 END_VERSIONS | |
38 | |
39 sedver="" | |
40 | |
41 if [ "${workflow.containerEngine}" != "null" ]; then | |
42 sedver=\$( sed --help 2>&1 | sed -e '1!d; s/ (.*\$//' ) | |
43 else | |
44 sedver=\$( echo \$(sed --version 2>&1) | sed 's/^.*(GNU sed) //; s/ Copyright.*\$//' ) | |
45 fi | |
46 | |
47 cat <<-END_VERSIONS >> versions.yml | |
48 sed: \$sedver | |
49 END_VERSIONS | |
50 """ | |
51 } |