nf-core_modules/software/multiqc/main.nf
Paolo Di Tommaso 70daf8be30
Minor style improvents
This commit provides a minor refactoring with som
Nextflow code style improvments:
- Replaces `.toGiga()` with `.giga`
- Replaces `tag { foo }` with `tag "$foo"`
- Move publishDir before input declarations. Directives should be
  before the first input. Tho this is not enforced, it may be in
  future versions.
- Replaces input `file` with `path`
- Remove unnecessary parentheses
2020-07-27 12:11:42 +02:00

31 lines
627 B
Text

nextflow.preview.dsl=2
process MULTIQC {
// tag "FastQC - $sample_id"
publishDir "${outdir}/multiqc",
mode: "copy", overwrite: true
input:
path file
val outdir
val multiqc_args
// multiqc_args are best passed into the workflow in the following manner:
// --multiqc_args="--exlude STAR --title custom_report_title"
val verbose
output:
path "*html", emit: html
script:
if (verbose){
println ("[MODULE] MULTIQC ARGS: " + multiqc_args)
}
"""
multiqc $multiqc_args -x work .
"""
}