-
Notifications
You must be signed in to change notification settings - Fork 42
Update annotation related code #193
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
Conversation
|
| params.snpeff_genome = getGenomeAttribute('snpeff_genome') | ||
| params.vep_cache_version = getGenomeAttribute('vep_cache_version') as String | ||
| params.snpeff_db = getGenomeAttribute('snpeff_db') | ||
| params.vep_cache_version = getGenomeAttribute('vep_cache_version') |
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.
maybe we should keep as String
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.
| params.vep_cache_version = getGenomeAttribute('vep_cache_version') | |
| params.vep_cache_version = getGenomeAttribute('vep_cache_version') as String |
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.
So you would keep the as String ?
| // SNPEFF | ||
| withName: 'SNPEFF_DOWNLOAD' { | ||
| ext.when = { params.annotate_tools && (params.annotate_tools.split(',').contains('snpeff') || params.annotate_tools.split(',').contains('merge')) } | ||
| ext.when = { params.tools && (params.tools.split(',').contains('snpeff') || params.tools.split(',').contains('merge')) } |
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.
We need to get rid of these 😁 (but let's do that another time)
| if (params.annotate_tools && (params.annotate_tools.split(',').contains('snpeff') || params.annotate_tools.split(',').contains('merge'))) checkPathParamList.add(params.snpeff_cache) | ||
| if (params.annotate_tools && (params.annotate_tools.split(',').contains('vep') || params.annotate_tools.split(',').contains('merge'))) checkPathParamList.add(params.vep_cache) | ||
| // only check if we are using the tools | ||
| if (params.tools && (params.tools.split(',').contains('snpeff') || params.tools.split(',').contains('merge'))) checkPathParamList.add(params.snpeff_cache) |
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.
I don't think this is used anymore since nf-schema does path validation
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.
ok, let's a cleanup in a following PR before the release
nvnieuwk
left a comment
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.
Looks good, but you still need to update the changelog (especially since this contains some breaking changes)
PR checklist
nf-core lint).nextflow run . -profile test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).