haplotyper-battle-royale/modules/efetch/main.nf

23 lines
397 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 'idv4.fasta'
script:
"""
esearch \\
-db nucleotide \\
-query "${genome}" \\
| efetch \\
-format fasta \\
> idv4.fasta
"""
}