nf-core_modules/software/fastqc/main.nf

25 lines
699 B
Text
Raw Normal View History

nextflow.preview.dsl = 2
2020-07-15 08:16:48 +00:00
def MODULE = "fastqc"
params.fastqc_publish_dir = "${params.out_dir}/$MODULE"
2020-07-11 11:42:13 +00:00
process FASTQC {
input:
tuple val(name), path(reads)
output:
tuple val(name), path ("*fastqc*"), emit: all
2020-07-14 15:38:20 +00:00
path "*.zip", emit: report // e.g. for MultiQC later
path "*.version.txt", emit: version
2020-07-15 08:16:48 +00:00
container "docker.pkg.github.com/nf-core/$module"
2020-07-14 18:37:35 +00:00
conda "${moduleDir}/environment.yml"
2020-07-15 08:16:48 +00:00
publishDir "${params.fastqc_publish_dir}/$name", mode: params.publish_dir_mode
2020-07-11 11:42:13 +00:00
script:
"""
2020-07-14 15:38:20 +00:00
fastqc ${params.fastqc_args} -t ${task.cpus} $reads
fastqc --version | sed -n "s/.*\\(v.*\$\\)/\\1/p" > fastqc.version.txt
2020-07-11 11:42:13 +00:00
"""
}