Output files (chromosomal chunks) merging in nextflow #2123
Replies: 2 comments
-
Can't you use the collectFile operator, documented in nextflow patterns ? |
Beta Was this translation helpful? Give feedback.
-
With the two command below...
... I have created a folder that contains the following files (I'm working with files to make sure it's easy for you to plug my solution into your pipeline):
I will now run a loop in bash to write to every file, its own filename. This way, by the end, we should be able to verify that the right files have been merged. Do this with the code below:
I will read these files into a channel and use the
There won't be any interesting output, as what matters to us was written to a file. You can check your work directory to find what was done with
Let's
And voilà :). A reminder that you can use the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a nextflow process that produces multiple chunks for each chromosomes into a channel, say, imputation which looks like,
There are many chunks for each chromosome (22 chromosomes). How can I effectively merge them to respective chromosomes for each type of file set to get,
Any help?
Beta Was this translation helpful? Give feedback.
All reactions