Hi,
I have what seems to be a basic question, but I can't find an answer. Chances are I misunderstood how collectFile() works, so I would appreciate anyone pointing me in the right direction.
I have a channel which is the output of a process. This channel contains multiple files of the same format.
In the process that follows, I would like to process all the files in this channel at the same time, that is, as if you were doing:
cat *.bam | <do something>
Where the *.bam represents all files ending in "bam" (which are all in the channel I pass to this process). What I want to do is to write something that does like:
cat <all_channel_files> | <do something>
Is there an elegant and concise way of doing it?