Hi, I have a question about making multiple copies...
# nostupidquestions
s
Hi, I have a question about making multiple copies of a channel I have a process that generates an output channel, this channel now is an input to 3 other processes. How do I in that case make deep copies in this case?
✅ 1
n
Why would you want to make a deep copy of the input files? Do these processes overwrite the input files?
You could set
stageInMode
to
copy
but that is not advised unless completely necessary
j
Hi, I don't think you need to worry about this - you can take the channel from the process and just feed it into the next three processes simultaneously. The channel entries won't be consumed and only go into one of the three processes.
s
That is exactly the issue here, I want the exact same set of files in the channel to be passed to all 3 processes
I don't want the channel to be consumed by just one process
t
In DSL1, channel contents were consumed by processes. In DSL2, you can use a channel as an input to multiple processes without issue
🤔 1
party this 4
s
Somehow that doesn't seem to work for me
m
It might be to do with your other channel inputs then
party this 2
You still need to use
collect
or similar operators to reuse for example a reference genome with multiple read sets
party this 2
s
I will try and come back to this thread, thanks 🥸
Thanks a lot for all the help and the inputs. The `collect`method works. Thanks @Mahesh Binzer-Panchal 🙌
👍🏽 1