Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use checkIfExists #165

Closed
ewels opened this issue Sep 28, 2018 · 0 comments
Closed

Use checkIfExists #165

ewels opened this issue Sep 28, 2018 · 0 comments
Labels
template nf-core pipeline/component template

Comments

@ewels
Copy link
Member

ewels commented Sep 28, 2018

The new checkIfExists option was added in nextflow-io/nextflow#666 and is now released. Would be great to use it!

See https://gitter.im/nextflow-io/nextflow?at=5ae09da61130fe3d361684a1 for reason:

star_index = Channel
        .fromPath(params.star_index)
        .ifEmpty { exit 1, "STAR index not found: ${params.star_index}" }

However, as far as I can see, this does not work if a wrong file path is given since fromPath() doesn't check for file existence and therefore, the channel is not empty.

@ewels ewels added the template nf-core pipeline/component template label Sep 28, 2018
@apeltzer apeltzer added this to nf-core tools in hackathon-qbic-2019 Apr 2, 2019
@drpatelh drpatelh closed this as completed Oct 7, 2019
hackathon-qbic-2019 automation moved this from nf-core tools to Done Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template nf-core pipeline/component template
Projects
No open projects
Development

No branches or pull requests

2 participants