Commit 169fecc5 authored by Ludovic Legrand's avatar Ludovic Legrand
Browse files

collect avec creation des arguments pour une ligne de commande

parent 014f6cd9
nextflow.enable.dsl=2
test = Channel.fromPath('./rawdata/dev/control/*.fastq.gz')
process gunzip {
publishDir('result')
input:
val(par)
output:
path('log')
script:
println(par.join(' '))
"""
echo $par > log
"""
}
workflow {
gunzip(test.collect{ "--variant $it " })
gunzip.out[0].view()
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment