2020-03-16 14:17:38 +00:00
|
|
|
nextflow.preview.dsl = 2
|
2019-12-05 14:35:51 +00:00
|
|
|
|
2020-07-11 11:42:13 +00:00
|
|
|
process FASTQC {
|
|
|
|
|
2020-03-16 14:17:38 +00:00
|
|
|
// tag "FastQC - $sample_id"
|
2019-12-05 14:35:51 +00:00
|
|
|
|
2020-07-11 11:42:13 +00:00
|
|
|
input:
|
|
|
|
tuple val(name), path(reads)
|
|
|
|
val (outputdir)
|
2020-03-16 14:17:38 +00:00
|
|
|
// fastqc_args are best passed into the workflow in the following manner:
|
|
|
|
// --fastqc_args="--nogroup -a custom_adapter_file.txt"
|
2020-07-11 11:42:13 +00:00
|
|
|
val (fastqc_args)
|
|
|
|
val (verbose)
|
|
|
|
|
|
|
|
output:
|
|
|
|
tuple val(name), path ("*fastqc*"), emit: all
|
|
|
|
path "*.zip", emit: report // e.g. for MultiQC later
|
2019-12-05 14:35:51 +00:00
|
|
|
|
2020-07-11 11:42:13 +00:00
|
|
|
// container 'quay.io/biocontainers/fastqc:0.11.8--2'
|
2019-12-05 14:35:51 +00:00
|
|
|
|
2020-07-11 11:42:13 +00:00
|
|
|
publishDir "$outputdir",
|
|
|
|
mode: "copy", overwrite: true
|
2020-03-16 14:17:38 +00:00
|
|
|
|
2020-07-11 11:42:13 +00:00
|
|
|
script:
|
2020-03-16 14:17:38 +00:00
|
|
|
|
2020-07-11 11:42:13 +00:00
|
|
|
if (verbose){
|
|
|
|
println ("[MODULE] FASTQC ARGS: " + fastqc_args)
|
|
|
|
}
|
2020-03-16 14:17:38 +00:00
|
|
|
|
2020-07-11 11:42:13 +00:00
|
|
|
"""
|
|
|
|
module load fastqc
|
|
|
|
fastqc $fastqc_args -q -t 2 $reads
|
2020-03-16 14:17:38 +00:00
|
|
|
|
|
|
|
fastqc --version &> fastqc.version.txt
|
2020-07-11 11:42:13 +00:00
|
|
|
"""
|
2019-12-05 14:35:51 +00:00
|
|
|
|
|
|
|
}
|