add nextflow d30e48d
This commit is contained in:
22
nextflow/docs/snippets/recurse-process.nf
Normal file
22
nextflow/docs/snippets/recurse-process.nf
Normal file
@@ -0,0 +1,22 @@
|
||||
nextflow.preview.recursion = true
|
||||
|
||||
params.start = 10
|
||||
|
||||
workflow {
|
||||
count_down
|
||||
.recurse(params.start)
|
||||
.until { v -> v == 0 }
|
||||
.view { v -> "${v}..." }
|
||||
}
|
||||
|
||||
process count_down {
|
||||
input:
|
||||
val v
|
||||
|
||||
output:
|
||||
val v
|
||||
|
||||
exec:
|
||||
sleep(1000)
|
||||
v = v - 1
|
||||
}
|
||||
Reference in New Issue
Block a user