Conversation
Since this is an optional file, this should not be required by the pipeline?
Markdown linting is failingTo keep the code consistent with lots of contributors, we run automated code consistency checks.
Once you push these changes the test should pass, and you can hide this comment 👍 We highly recommend setting up markdownlint in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help! Thanks again for your contribution! |
YAML linting is failingTo keep the code consistent with lots of contributors, we run automated code consistency checks.
Once you push these changes the test should pass, and you can hide this comment 👍 We highly recommend setting up yaml-lint in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help! Thanks again for your contribution! |
| if (params.ensembl_mappings) { ch_ensembl_mappings2 = file(params.ensembl_mappings, checkIfExists: false) } | ||
| if (params.ensembl_mappings) { ch_ensembl_mappings3 = file(params.ensembl_mappings, checkIfExists: false) } | ||
| if (params.reddim_genes_yml) { ch_reddim_genes_yml = file(params.reddim_genes_yml, checkIfExists: true) } | ||
| if (params.reddim_genes_yml) { ch_reddim_genes_yml = file(params.reddim_genes_yml, checkIfExists: false) } |
There was a problem hiding this comment.
The logic is intended to check for file existence only where the file is specified. Are you seeing it run this check even without the file being provided?
There was a problem hiding this comment.
This is probably the issue in fact:
Line 34 in c49202f
There was a problem hiding this comment.
Though I'm not sure how optional this really is, given that the channel is used unconditionally
There was a problem hiding this comment.
Yes I try to not specify anything i.e. remove the value that was previously set, but the pipeline still expects it because of the line above
There was a problem hiding this comment.
What I'm saying is, the if (params.reddim_genes_yml) { should prevent the existence check from happening where the parameter is not supplied, which implies that the problem is the value is getting set inappropriately somewhere, rather than the existence check itself.
reddim_genes.yml requirement
Since this is an optional file, this should not be required by the pipeline?
PR checklist
nf-core lint).nextflow run . -profile test,docker).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).