Skip to content
Discussion options

You must be logged in to vote

Hello, @hkaspersen! You have a typo in your Nextflow code at the second line. It's checkIfExists with an s at the end. Having said that, you can use the same option with the file function. I have the following file structure in my machine:

/Users/mribeirodantas/input.csv
/Users/mribeirodantas/ex2.nf
/Users/mribeirodantas/sampleA
/Users/mribeirodantas/sampleB

The content of input.csv is:

sample,path
sample1,/Users/mribeirodantas/sampleA
sample2,/Users/mribeirodantas/sampleB
sample3,/Users/mribeirodantas/sampleC

As you can see, I don't have a sampleC file. By running the Nextflow script below (check the option I added to the file function),

Channel
    .fromPath('input.csv', checkIfExists…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by hkaspersen
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