Mercurial > repos > galaxytrakr > hfp_cronology_awsbatch
comparison 0.2.0/modules/multiqc/main.nf @ 0:9e8b1c747a6a draft default tip
planemo upload
| author | galaxytrakr |
|---|---|
| date | Fri, 29 May 2026 13:32:17 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:9e8b1c747a6a |
|---|---|
| 1 process MULTIQC { | |
| 2 label 'process_micro' | |
| 3 tag 'MultiQC' | |
| 4 | |
| 5 module (params.enable_module ? "${params.swmodulepath}${params.fs}multiqc${params.fs}1.14" : null) | |
| 6 conda (params.enable_conda ? 'bioconda::multiqc=1.14 conda-forge::python=3.11 conda-forge::spectra conda-forge::lzstring conda-forge::imp' : null) | |
| 7 container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | |
| 8 'https://depot.galaxyproject.org/singularity/multiqc:1.14--pyhdfd78af_0' : | |
| 9 'quay.io/biocontainers/multiqc:1.14--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 } |
