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

Support filtering incomplete penetrance in sample tree #642

Merged
merged 6 commits into from
Nov 15, 2024
Merged
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
6 changes: 3 additions & 3 deletions docs/advanced/classification_trees.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ VIP contains default filtration strategies for variant-consequences as well as v
The default decision tree to classify variant-consequences works as follows:

1. Each variant-consequence is classified as `Benign`, `Likely Benign`, `VUS`, `Likely Pathogenic`, `Pathogenic` or `Remove`
2. Variant-consequences classified as `Benign`, `Likely Benign` and `Remove` are removed
2. Variant-consequences classified as `Benign`, `Likely Benign` and `Remove` are removed by default.

![Default classification tree](../img/GRCh38_decision_tree.png)

Expand All @@ -26,8 +26,8 @@ The default decision tree to classify variant-consequences works as follows:
### Variant-consequences (samples)
The default decision tree to classify variant-consequences in the context of samples works as follows:

1. Each variant-consequence-sample is classified as `U1` (usable: probably), `U2` (usable: maybe) and `U3` (usable: probably not)
2. Variant-consequences classified as `U3` for all samples are removed
1. Each variant-consequence-sample is classified as `U1` (usable: probably), `U2` (usable: maybe), `U3` (usable: probably not) and `U4` (usable: only in cases of suspected incomplete penetrance).
2. Variant-consequences classified as `U3` and `U4` for all samples are removed by default.

![Default variant-sample classification tree](../img/sample_decision_tree.png)

Expand Down
Binary file modified docs/img/sample_decision_tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 60 additions & 1 deletion resources/decision_tree_samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,29 @@
"value": 20
},
"outcomeTrue": {
"nextNode": "vim"
"nextNode": "only_IP"
},
"outcomeFalse": {
"nextNode": "exit_u3"
},
"outcomeMissing": {
"nextNode": "only_IP"
}
},
"only_IP": {
"type": "BOOL",
"description": "Only AD IP suitable for pedigree.",
"query": {
"field": "FORMAT/VI",
"operator": "contains_none",
"value": ["AR","AD","XLR","XLD","YL","MT","AR_C"]
},
"outcomeTrue": {
"nextNode": "vid_IP"
},
"outcomeFalse": {
"nextNode": "vim"
},
"outcomeMissing": {
"nextNode": "vim"
}
Expand All @@ -68,6 +86,24 @@
"nextNode": "exit_u2"
}
},
"vim_IP": {
"type": "BOOL",
"description": "Inheritance match",
"query": {
"field": "FORMAT/VIG",
"operator": "contains",
"value": "field:INFO/CSQ/Gene"
},
"outcomeTrue": {
"nextNode": "exit_u4"
},
"outcomeFalse": {
"nextNode": "exit_u3"
},
"outcomeMissing": {
"nextNode": "exit_u4"
}
},
"vid": {
"type": "BOOL",
"description": "Inheritance denovo",
Expand All @@ -86,6 +122,24 @@
"nextNode": "exit_u2"
}
},
"vid_IP": {
"type": "BOOL",
"description": "Inheritance denovo",
"query": {
"field": "FORMAT/VID",
"operator": "==",
"value": 1
},
"outcomeTrue": {
"nextNode": "exit_u1"
},
"outcomeFalse": {
"nextNode": "vim_IP"
},
"outcomeMissing": {
"nextNode": "exit_u2"
}
},
"exit_u1": {
"description": "Usable: probably",
"type": "LEAF",
Expand All @@ -100,6 +154,11 @@
"description": "Usable: probably not",
"type": "LEAF",
"class": "U3"
},
"exit_u4": {
"description": "Usable: in case of incomplete penetrance",
"type": "LEAF",
"class": "U4"
}
}
}