Replies: 2 comments
-
+1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
The sort option can be a closure https://nextflow.io/docs/latest/reference/operator.html#collectfile |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know when using
collectFile()
I can specify a custom sort order using closure, but is it possible to use a list for this?For example, if I have a tuple with an array of [fastq, md5] combinations, the order of the rows is messed up because Nextflow runs the processes asynchronously. When sorting this tuple by fastq names, I want to use the column of the csv file that was read in advance.
Note that this order is not natural ordering and cannot be solved by fastq's name.
Like:
If I have
fastq_md5
like this,I want to sort
fastq_md5
with usingnameOrder
.I know something is needed but I don't come up with.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions