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 {
|
|
|
|
input:
|
|
|
|
tuple val(name), path(reads)
|
|
|
|
val (fastqc_args)
|
2020-07-14 09:49:08 +00:00
|
|
|
val (outputdir)
|
2020-07-11 11:42:13 +00:00
|
|
|
|
|
|
|
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-14 09:49:08 +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:
|
|
|
|
"""
|
|
|
|
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
|
|
|
}
|