2023-09-23 20:34:27 +00:00
|
|
|
process EFETCH {
|
2023-09-23 20:36:01 +00:00
|
|
|
label 'process_single'
|
|
|
|
|
2023-09-23 20:34:27 +00:00
|
|
|
container 'quay.io/biocontainers/entrez-direct:16.2--he881be0_1'
|
|
|
|
|
2023-09-23 20:38:55 +00:00
|
|
|
input:
|
|
|
|
val(genome)
|
|
|
|
|
2023-09-23 20:34:27 +00:00
|
|
|
publishDir "results", mode: 'copy'
|
|
|
|
|
|
|
|
output:
|
2023-09-23 20:39:21 +00:00
|
|
|
path 'reference.fasta'
|
2023-09-23 20:34:27 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
"""
|
|
|
|
esearch \\
|
|
|
|
-db nucleotide \\
|
2023-09-23 20:38:55 +00:00
|
|
|
-query "${genome}" \\
|
2023-09-23 20:34:27 +00:00
|
|
|
| efetch \\
|
|
|
|
-format fasta \\
|
2023-09-23 20:39:21 +00:00
|
|
|
> reference.fasta
|
2023-09-23 20:34:27 +00:00
|
|
|
"""
|
|
|
|
}
|