Skip to content
Discussion options

You must be logged in to vote

If you aren't actually using the values of the CSV in nextflow, you can just use splitText, which does have a file option.

splitCSV doesn't have a file parameter because it doesn't produce a file, it produces a channel filled with lists. If you can't use the above option because you are using the CSV contents within nextflow, you can do something like csvChannel.map { it.join(',') }.collectFile(name: "output_filename.csv"), which joins each list together into a string, then joins each row in the channel together into a file.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bgobbi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants