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