24 lines
436 B
Text
24 lines
436 B
Text
process EFETCH {
|
|
tag "${genome}"
|
|
label 'process_single'
|
|
|
|
container 'quay.io/biocontainers/entrez-direct:16.2--he881be0_1'
|
|
|
|
input:
|
|
val(genome)
|
|
|
|
publishDir "${params.outdir}", mode: 'copy'
|
|
|
|
output:
|
|
path 'reference.fasta'
|
|
|
|
script:
|
|
"""
|
|
esearch \\
|
|
-db nucleotide \\
|
|
-query "${genome}" \\
|
|
| efetch \\
|
|
-format fasta \\
|
|
> reference.fasta
|
|
"""
|
|
}
|