Skip to content
Discussion options

You must be logged in to vote

Thanks for your help, mix was the answer but additional work was required. Unfortunately the mix function does not emit in order and for this to work you need to know the order of the files. I don't know groovy at all so it took me many hours to figure out how to get the tuple (pair_id, [file 1, file 2, ... file N]) in order. The fix ended up being quite elegant, but the toSorted function is presumably found in the groovy documentation, and is no where in the nextflow api. The other key realization was that the file paths which appear as plain strings when you .view() turn out to have a .name attribute, which allows you to sort by the base name of the file. Otherwise it would be impossibl…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dan-sprague
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@manuelesimi
Comment options

Answer selected by dan-sprague
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants