Replies: 2 comments
-
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
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
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