refactor: Make reference genome an input for EFETCH
This commit is contained in:
parent
7a3744a3d3
commit
b1ee784dac
2 changed files with 5 additions and 2 deletions
2
main.nf
2
main.nf
|
@ -11,7 +11,7 @@ workflow {
|
|||
.map { file -> tuple(file.simpleName, file) }
|
||||
.set { ch_input }
|
||||
|
||||
EFETCH()
|
||||
EFETCH('NC_036618.1')
|
||||
EFETCH
|
||||
.out
|
||||
.set { ch_reference }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue