Replies: 1 comment 3 replies
-
Can you share a minimal code example? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a workflow that executes different processes depending on the users preferences. When all desired processes are complete, a last process will take all the outputs and create a summary of the most relevant results. To do this, I need to take the output tuples generated by all processes and aggregate them into a single tuple. So for instance:
When using mix() and groupTuple() I am able to group the first two tuples and the result looks something like:
["sample1", [/home/output/process1/sample1, /home/output/process2/sample1]]. However, when I try to mix and grouTuple for the third process, I get this error:
'Not a valid path value type: nextflow.util.ArrayBag'
Mind you I'm trying to mix the resulting tuple (Tuple1/2) of mixing Tuple1 and Tuple2 with Tuple3.
I understand this is because I am trying to use an Array/List as the mix() method input, and this is not supported. So my question is, how can I group the process outputs in a tuple containing the sampleID and a list of paths? I need this in order to make the summary process as "relaxed" as possible, so that, even though the user decides not to run all processes, it will still work. This way I do not need to create an input for the summary process that looks like: tuple val(sampleID), path(process1), path(process2), path(process3) but instead, tuple val(sampleID), path(all_results).
I hope I have explained myself clearly.
Thnk you in advance
Beta Was this translation helpful? Give feedback.
All reactions