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