-
Notifications
You must be signed in to change notification settings - Fork 35
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
Annotate small indels with CADD scores #325
Annotate small indels with CADD scores #325
Conversation
|
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.
Will be nice to get CADD running :)
Some comments
assets/cadd_to_vcf_header_-1.0-.txt
Outdated
@@ -0,0 +1 @@ | |||
##INFO=<ID=CADD,Number=1,Type=Float,Description="The CADD relative score for this alternative."> |
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.
##INFO=<ID=CADD,Number=1,Type=Float,Description="The CADD relative score for this alternative."> | |
##INFO=<ID=CADD,Number=1,Type=Float,Description="PHRED-like scaled CADD score"> |
workflows/raredisease.nf
Outdated
@@ -140,6 +141,9 @@ workflow RAREDISEASE { | |||
} | |||
|
|||
// Initialize all file channels including unprocessed vcf, bed and tab files | |||
ch_cadd_header = Channel.fromPath("$projectDir/assets/cadd_to_vcf_header_-1.0-.txt", checkIfExists: true).collect() | |||
ch_cadd_scores = params.cadd_annotation ? Channel.fromPath(params.cadd_annotation).collect() |
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.
ch_cadd_scores = params.cadd_annotation ? Channel.fromPath(params.cadd_annotation).collect() | |
ch_cadd_annotations = params.cadd_annotation ? Channel.fromPath(params.cadd_annotation).collect() |
The scores haven't been computed yet
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.
or maybe ch_cadd_resources
is better? You decide :)
workflows/raredisease.nf
Outdated
@@ -401,6 +405,8 @@ workflow RAREDISEASE { | |||
if (!params.skip_mt_analysis) { | |||
ANALYSE_MT ( | |||
ch_mapped.bam_bai, | |||
ch_cadd_header, | |||
ch_cadd_scores, |
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.
ch_cadd_scores, | |
ch_cadd_annotations, |
workflows/raredisease.nf
Outdated
@@ -448,6 +454,8 @@ workflow RAREDISEASE { | |||
ANNOTATE_SNVS ( | |||
ch_vcf, | |||
params.analysis_type, | |||
ch_cadd_header, | |||
ch_cadd_scores, |
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.
ch_cadd_scores, | |
ch_cadd_annotations, |
ch_vcf // channel: [mandatory] [ val(meta), path(vcfs) ] | ||
ch_index // channel: [mandatory] [ val(meta), path(tbis) ] | ||
ch_header // channel: [mandatory] [ path(txt) ] | ||
ch_cadd_scores // channel: [mandatory] [ path(dir) ] |
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.
ch_cadd_scores // channel: [mandatory] [ path(dir) ] | |
ch_cadd_annotations // channel: [mandatory] [ path(dir) ] |
subworkflows/local/annotate_snvs.nf
Outdated
GATK4_SELECTVARIANTS.out.vcf | ||
.combine(ANNOTATE_CADD.out.vcf.ifEmpty("null")) | ||
.branch { it -> | ||
selvar: it[2].equals("null") | ||
return [it[0], it[1]] | ||
cadd: !(it[2].equals("null")) | ||
return [it[2], it[3]] | ||
} |
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.
Could you explain this code a bit more
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.
👍
PR checklist
This PR adds the functionality to annotate small indel with CADD scores.
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR> -stub
).nextflow run . -profile test_one_sample,docker --outdir <OUTDIR> -stub
).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).