Skip to content
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

Poc/alphamissense #567

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/nxf_vcf.config
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ params {
vep_plugin_utrannotator = "${projectDir}/resources/GRCh38/uORF_5UTR_PUBLIC.txt"
vep_plugin_vkgl = "${projectDir}/resources/GRCh38/vkgl_consensus_20231101.tsv"
vep_plugin_alphscore = "${projectDir}/resources/GRCh38/AlphScore_final_20230825_stripped_GRCh38.tsv.gz"
vep_plugin_alphaMissense = "${projectDir}/_dev/resources/AlphaMissense_hg38.tsv.gz"
vep_plugin_ncer = "${projectDir}/resources/GRCh38/GRCh38_ncER_perc.bed.gz"
}
}
Expand All @@ -98,7 +99,7 @@ params {
}

filter {
classes = "VUS,LP,P"
classes = "VUS,LP,P,LP_AM"
consequences = true
}

Expand Down
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ download_files() {
urls+=("9aea133bbe8dea635172e6de0cf05edf" "resources/hpo_20230822.tsv")
urls+=("df31eb0fe9ebd9ae26c8d6f5f7ba6e57" "resources/inheritance_20240115.tsv")
urls+=("7138e76a38d6f67935699d06082ecacf" "resources/vep/cache/homo_sapiens_refseq_vep_111_GRCh38.tar.gz")
urls+=("9fd167735f16a1b87da6eb3e4c25fcb5" "_dev/resources/AlphaMissense_hg38.tsv.gz")
urls+=("d2b23d618660cb2a7acfba17170dfd4c" "_dev/resources/AlphaMissense_hg38.tsv.gz.tbi")
# when modifying urls array, please keep list in 'ls -l' order

for ((i = 0; i < ${#urls[@]}; i += 2)); do
Expand Down
1 change: 1 addition & 0 deletions modules/vcf/annotate.nf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ process annotate {
vepPluginNcerPath = params.vcf.annotate[assembly].vep_plugin_ncer
capiceModelPath = params.vcf.annotate[assembly].capice_model
alphScorePath = params.vcf.annotate[assembly].vep_plugin_alphscore
alphaMissensePath = params.vcf.annotate[assembly].vep_plugin_alphaMissense
strangerCatalog = params.vcf.annotate[assembly].stranger_catalog

areProbandHpoIdsIndentical = areProbandHpoIdsIndentical(meta.project.samples)
Expand Down
4 changes: 4 additions & 0 deletions modules/vcf/templates/annotate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ vep() {
if [ -n "!{alphScorePath}" ]; then
args+=("--plugin" "AlphScore,!{alphScorePath}")
fi
if [ -n "!{alphaMissensePath}" ]; then
#The plugin supports transcript matching, but we this wont work for us due to it being based on ensembl id's
args+=("--plugin" "AlphaMissense,file=!{alphaMissensePath},cols=all")
fi
if [ -n "!{vepPluginNcerPath}" ]; then
args+=("--plugin" "ncER,!{vepPluginNcerPath}")
fi
Expand Down
30 changes: 29 additions & 1 deletion resources/decision_tree_GRCh38.json
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,29 @@
"nextNode": "exit_lp"
},
"outcomeFalse": {
"nextNode": "exit_lb"
"nextNode": "alphaMissense"
},
"outcomeMissing": {
"nextNode": "exit_vus"
}
},
"alphaMissense": {
"description": "AlphaMissense pathogenicity score > 0.2977",
"type": "BOOL",
"query": {
"field": "INFO/CSQ/am_pathogenicity",
"operator": ">",
"value": 0.2977
},
"outcomeTrue": {
"nextNode": "exit_lp_am"
},
"outcomeFalse": {
"nextNode": "exit_lb_am"
},
"outcomeMissing": {
"nextNode": "exit_lb"
}
},
"exit_rm": {
"description": "Remove",
Expand All @@ -411,6 +429,11 @@
"type": "LEAF",
"class": "B"
},
"exit_lb_am": {
"description": "Benign (Alpha Missense)",
"type": "LEAF",
"class": "LB_AM"
},
"exit_lb": {
"description": "Likely Benign",
"type": "LEAF",
Expand All @@ -426,6 +449,11 @@
"type": "LEAF",
"class": "LP"
},
"exit_lp_am": {
"description": "Likely Pathogenic (AlphaMissense)",
"type": "LEAF",
"class": "LP_AM"
},
"exit_p": {
"description": "Pathogenic",
"type": "LEAF",
Expand Down
7 changes: 7 additions & 0 deletions resources/field_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
"numberType": "NUMBER",
"numberCount": 1,
"type": "FLOAT"
},
"am_pathogenicity": {
"label": "AlphaMissense Score",
"description": "AlphaMissense pathogenicity score for missense variants",
"numberType": "NUMBER",
"numberCount": 1,
"type": "FLOAT"
},
"CAPICE_CL": {
"label": "CAPICE",
Expand Down
Loading