-
Notifications
You must be signed in to change notification settings - Fork 11
Remove explicit reddim_genes.yml
requirement
#25
base: dev
Are you sure you want to change the base?
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! |
@@ -27,7 +27,7 @@ if (params.celltype_mappings) { ch_celltype_mappings = file(params.celltype_mapp | |||
if (params.ensembl_mappings) { ch_ensembl_mappings = file(params.ensembl_mappings, checkIfExists: false) } | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably the issue in fact:
Line 34 in c49202f
reddim_genes_yml = './conf/reddim_genes.yml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though I'm not sure how optional this really is, given that the channel is used unconditionally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).