-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add CADD annotation #266
Add CADD annotation #266
Conversation
|
c6251f3
to
4c1aed1
Compare
117ced8
to
0be186d
Compare
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! Only a couple of questions
modules/nf-core/cadd/cadd.diff
Outdated
Changes in module 'nf-core/cadd' | ||
--- modules/nf-core/cadd/main.nf | ||
+++ modules/nf-core/cadd/main.nf | ||
@@ -43,7 +43,7 @@ | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
def VERSION = "1.6.post1" // WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions. | ||
""" | ||
- touch ${prefix}.tsv.gz | ||
+ echo "" | gzip > ${prefix}.tsv.gz | ||
|
||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
|
||
************************************************************ |
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.
are these changes that we should try to add to the nf-core module as well?
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.
Probably, I'll remove them from here for now.
conf/modules/annotate_cadd.config
Outdated
} | ||
|
||
withName: '.*:ANNOTATE_CADD:BCFTOOLS_VIEW' { | ||
ext.args = { "--output-type z --types indels,other" } |
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.
Just out of curiosity, how big are the indels in the SNV/INDEL vcf coming from ONT data? Can they be several 10s of kb and would that severely affect how long it takes to run CADD?
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 haven't tested this yet, will do before merging.
69e695c
to
fa15d92
Compare
5de2edc
to
9b52a94
Compare
Added a workaround for references with chr, seems like CADD only scores 1-22,X,Y,M anyway (?) so this should be fine I think:
|
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! Some minor formatting
Great work 💯
nextflow_schema.json
Outdated
"cadd_prescored": { | ||
"type": "string", | ||
"exists": true, | ||
"format": "directory-path", | ||
"fa_icon": "fas fa-file", | ||
"description": "Path to the directory containing cadd prescored files.", | ||
"help_text": "This folder contains the compressed files and indexes that would otherwise be in data/prescored folder as described in https://github.com/kircherlab/CADD-scripts/#manual-installation." |
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.
Should we indicate that, as written currently, this file is only used to score the known indels. Might be worth clarifying that this is not the prescored snv file.
Co-authored-by: Anders Jemt <jemten@users.noreply.github.com>
a3167b7
to
3679dc9
Compare
Co-authored-by: Anders Jemt <jemten@users.noreply.github.com>
Closes #265
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).nextflow run . -profile debug,test,docker --outdir <OUTDIR>
).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).