Replacement for merge
?
#2113
Replies: 4 comments 16 replies
-
This was done on purpose because |
Beta Was this translation helpful? Give feedback.
-
I agree join does not replace merge. I have 2 channels -- one with fastq files downloaded by SRR using their project ID and another with the run ids for those fastq files and I would like to use merge to create one channel with the id and the fastq files... process getfastq_data { |
Beta Was this translation helpful? Give feedback.
-
Since the concerns raised in this thread and other conversions, it has been decided to not deprecate the |
Beta Was this translation helpful? Give feedback.
-
I know this discussion is old, but I was thinking about the merge operator recently and I'm wondering if anyone has an actual use case for it. When would you need to combine two channels where you don't care how they get paired up? If you want to generate all combinations of two channels (e.g. outer product), use If you want to join items from two channels with a matching key (e.g. inner product), use If you want to emit multiple values from a process, but want those values to stay connected, then emit a tuple in a single channel. If anyone does have a use case, it would be good to include in our patterns docs. Otherwise it would be best to discourage people from using it, citing the alternatives listed above. |
Beta Was this translation helpful? Give feedback.
-
It seems that
merge
is now deprecated. However there doesn't seem to be a simple replacement, asjoin
requires a key. If I want to join two channels by position, how can I now do that? ie how can I replicate this example from the documentation?Beta Was this translation helpful? Give feedback.
All reactions