28 lines
611 B
Text
28 lines
611 B
Text
process NANOFILT {
|
|
tag "${prefix}"
|
|
label 'process_low'
|
|
|
|
container 'quay.io/biocontainers/nanofilt:2.8.0--py_0'
|
|
|
|
input:
|
|
tuple val(prefix), path(reads)
|
|
|
|
output:
|
|
tuple val(prefix), path("*_trimmed.fastq.gz")
|
|
|
|
script:
|
|
"""
|
|
gzip \\
|
|
-cdf "${reads}" \\
|
|
| NanoFilt \\
|
|
--logfile "trimmed/${prefix}.nanofilt.log" \\
|
|
--length 100 \\
|
|
--quality 7 \\
|
|
--headcrop 30 \\
|
|
--tailcrop 30 \\
|
|
--minGC 0.1 \\
|
|
--maxGC 0.9 \\
|
|
| gzip \\
|
|
> "${prefix}_trimmed.fastq.gz"
|
|
"""
|
|
}
|