how to iterate over multi map values in a process? #4650
-
I've following code.
When I run it: It prints |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The issue here is that the This version of your workflow should produce the expected result: process test {
input: val(num)
output: stdout
script: "echo ${num}"
}
workflow {
Channel.of(1, 2, 3, 4)
.multiMap {
foo: it + 1
bar: it * it
}
.set { result }
test(result.foo).view()
} In future, if your query is a question related to Nextflow syntax, please consider the Nextflow community forum: https://community.seqera.io. If you query is a Nextflow bug report, this Github repository is still the appropriate venue. |
Beta Was this translation helpful? Give feedback.
-
@robsyme Thank you for your reply. I will use the shared link for my errors/syntax related stuff. I didn't know of the platform. I've been waiting for help on many posts on this github Q&A disucssion forum. |
Beta Was this translation helpful? Give feedback.
The issue here is that the
it
variable is reserved for the iterator value and should not be used in the process scope.This version of your workflow should produce the expected result:
In future, if your query is a question related to Nextflow syntax, please consider the Nextflow community forum: https://community.seqera.io.
If you query is a Nextflow bug report, this Github repository is still the appropriate venue.