csv file split into channels from file online #3294
-
I have uploaded a csv file to github, and want to use it as input for a pipeline test.
I am trying to make Nextflow create one channel that contains the actual fasta files listed inside the
When running this, the output of the process using the channel only creates a symlink named
Instead of the actual fasta files. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @hkaspersen What I don't fully understand is the output you obtain. Is it only one element? I've tried with my csv and collect returns to me all elements |
Beta Was this translation helpful? Give feedback.
-
I have for example this
and this pipeline
process This process will be called 2 times (one per row in the csv) when I run this pipeline I can see these files are displayed in the console. |
Beta Was this translation helpful? Give feedback.
-
I think what you want is something like this: params.input="https://url/to/csv_file.csv"
fasta_channel = Channel
.fromPath(params.input)
.splitCsv(header:true, sep:",")
.map { file(it.path) } or if you want to keep the IDs
|
Beta Was this translation helpful? Give feedback.
I think what you want is something like this:
or if you want to keep the IDs