feat: Add fasterq-dump module
This commit is contained in:
parent
7e0f64f78b
commit
9f70b504e2
1 changed files with 25 additions and 0 deletions
25
modules/fasterq_dump/main.nf
Normal file
25
modules/fasterq_dump/main.nf
Normal file
|
@ -0,0 +1,25 @@
|
|||
process FASTERQ_DUMP {
|
||||
tag "${prefix} (${sra})"
|
||||
label 'process_single'
|
||||
|
||||
container 'quay.io/biocontainers/sra-tools:3.0.8--h9f5acd7_0'
|
||||
|
||||
input:
|
||||
tuple val(prefix), val(sra)
|
||||
|
||||
output:
|
||||
tuple val(prefix), path("*.fastq.gz")
|
||||
|
||||
publishDir "${params.outdir}/${task.process}", mode: 'copy'
|
||||
|
||||
script:
|
||||
"""
|
||||
fasterq-dump \\
|
||||
--verbose \\
|
||||
--concatenate-reads \\
|
||||
--stdout \\
|
||||
${sra} \\
|
||||
| gzip \\
|
||||
> "${prefix}.fastq.gz"
|
||||
"""
|
||||
}
|
Loading…
Reference in a new issue