nf-core_modules/software/fastqc/main.nf

38 lines
874 B
Text
Raw Normal View History

nextflow.preview.dsl = 2
2020-07-11 11:42:13 +00:00
process FASTQC {
// tag "FastQC - $sample_id"
2020-07-11 11:42:13 +00:00
input:
tuple val(name), path(reads)
val (outputdir)
// 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
2020-07-11 11:42:13 +00:00
// container 'quay.io/biocontainers/fastqc:0.11.8--2'
2020-07-11 11:42:13 +00:00
publishDir "$outputdir",
mode: "copy", overwrite: true
2020-07-11 11:42:13 +00:00
script:
2020-07-11 11:42:13 +00:00
if (verbose){
println ("[MODULE] FASTQC ARGS: " + fastqc_args)
}
2020-07-11 11:42:13 +00:00
"""
module load fastqc
fastqc $fastqc_args -q -t 2 $reads
fastqc --version &> fastqc.version.txt
2020-07-11 11:42:13 +00:00
"""
}