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)
|
|
|
|
|
|
|
|
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
|
2019-12-05 14:35:51 +00:00
|
|
|
|
2020-07-14 15:38:20 +00:00
|
|
|
container 'docker.pkg.github.com/nf-core/fastqc'
|
|
|
|
// see https://github.com/nextflow-io/nextflow/issues/1674
|
|
|
|
conda "../environment.yml"
|
2019-12-05 14:35:51 +00:00
|
|
|
|
2020-07-14 15:38:20 +00:00
|
|
|
publishDir "${params.out_dir}", mode: params.publish_dir_mode
|
2020-03-16 14:17:38 +00:00
|
|
|
|
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
|
|
|
"""
|
2019-12-05 14:35:51 +00:00
|
|
|
}
|