Hello,
I'm totally new to
nextflow.io, so this is my first hands-on experience with the tool.
I have two processes: the first one creates a set of files and I would like that an instance of the second process is executed in parallel for each of those files. I looked at the documentation, tried several options, but none worked as I expect.
The two processes are defined as follow:
process submit {
output:
file 'slicingPlan.tsv' into plan
file 'index_*' into indexes
"""
java -jar /Users/mas2182/Lab/TestWorkflows/goby/goby.jar -m suggest-position-slices -n 200 -o slicingPlan.tsv '${params.alignment1}' '${params.alignment2}' > /dev/null
split -l 1 slicingPlan.tsv index_
"""
}
process align {
input:
each index from indexes
"echo the line is: ${index}"
}
However, the second one is always executed only one time with the whole set of files passed as parameter and I don't understand why. Any suggestion is more than welcome.
With less priority, I would also like to do not use files a input for the second process, but a Channel with values created starting from the content of the file produced by the first one. Again, I'm failing to get to that point because all the examples I looked at seem to create Channels with set of values outside the processes.
Thanks!
manuele