refactor: Make reference genome an input for EFETCH

This commit is contained in:
Thomas A. Christensen II 2023-09-23 15:38:55 -05:00
parent 7a3744a3d3
commit b1ee784dac
Signed by: millironx
GPG key ID: 09335146883990B9
2 changed files with 5 additions and 2 deletions

View file

@ -11,7 +11,7 @@ workflow {
.map { file -> tuple(file.simpleName, file) }
.set { ch_input }
EFETCH()
EFETCH('NC_036618.1')
EFETCH
.out
.set { ch_reference }

View file

@ -3,6 +3,9 @@ process EFETCH {
container 'quay.io/biocontainers/entrez-direct:16.2--he881be0_1'
input:
val(genome)
publishDir "results", mode: 'copy'
output:
@ -12,7 +15,7 @@ process EFETCH {
"""
esearch \\
-db nucleotide \\
-query "NC_036618.1" \\
-query "${genome}" \\
| efetch \\
-format fasta \\
> idv4.fasta