mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
24 lines
590 B
Text
24 lines
590 B
Text
process cutadapt {
|
|
tag "${sample_id}"
|
|
|
|
container 'quay.io/biocontainers/cutadapt:1.16--py27_1'
|
|
|
|
input:
|
|
tuple sample_id, file(input_forward_fq), file(input_reverse_fq)
|
|
|
|
output:
|
|
tuple sample_id, file(output_forward_fq), file(output_reverse_fq)
|
|
|
|
script:
|
|
"""
|
|
cutadapt \
|
|
-j ${task.cpus} \
|
|
-q $params.cutadapt_min_quality \
|
|
--minimum-length $params.cutadapt_min_length \
|
|
--pair-filter=any \
|
|
--output ${forward_fq} \
|
|
--paired-output ${reverse_fq} '$input_forward_fq' '$input_reverse_fq'
|
|
|
|
cutadapt --version &> v_cutadapt.txt
|
|
"""
|
|
}
|