ClinVar indexed by protein position for PS1 / PM5 (same residue known pathogenic) in the analysis
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 22/100
Research direction
Start with annotation/models/models_clinvar.py (ClinVar.variant) and the VariantTranscriptAnnotation fields protein_position and hgvs_p, plus analysis/__analysis_readme.md for the PS1/PM5 audit. The work needs a per-ClinVarVersion index keyed by transcript version and protein position, built after import, and a PS1/PM5 filter that excludes the variant's own record. Done means both criteria filter correctly on a representative transcript, with star thresholds, and the design questions in the thread are settled first.
Written by the indexing model from the issue text.
Description
🤖 Written by Claude
Follows #2600 / PR #2603, whose ACMG evidence audit (analysis/__analysis_readme.md) left one criterion with no node: PS1 / PM5, a known pathogenic variant at the same residue. The ClinVar node matches records by variant (annotation/models/models_clinvar.py:ClinVar.variant), so a different nucleotide change at the same codon never matches.
What is needed
An index of ClinVar records by protein position, so a variant's VariantTranscriptAnnotation.protein_position / hgvs_p can be looked up against the pathogenic records on the same transcript:
- PS1 - same amino acid change (same residue, same resulting amino acid, different nucleotide change) with a pathogenic ClinVar record.
- PM5 - same residue, a different missense change, with a pathogenic ClinVar record.
Both need the ClinVar record's transcript, protein position and amino acid change. ClinVar's own records carry HGVS p. for the preferred transcript; otherwise the records are already linked to a Variant and that variant's VariantTranscriptAnnotation row for the matching transcript has protein_position and amino_acids.
Sketch
- A per-
ClinVarVersiontable of (transcript version, protein position, reference amino acid, alternate amino acid, highest pathogenicity, stars), built after a ClinVar import from the records joined to their annotation. - An Effect node (or ClinVar node) filter: "PS1: pathogenic at same residue, same change" and "PM5: pathogenic at same residue, different change", each with a minimum star rating like the ClinVar node's existing fields.
- Q: join on the variant's transcript annotation (transcript, protein position) against that table, excluding the variant's own ClinVar record, with the amino acid equality / inequality deciding PS1 vs PM5.
Residue positions depend on the transcript, so the table must be keyed by transcript version and the lookup restricted to the variant's representative transcript, not every overlapping transcript.
Related: #2605 (ACMG presets would want these two once they exist).
- Dominant language
- Python
- Stars
- 31
- Forks
- 4
- Avg merge
- 4h 52m
- Merged PRs (30d)
- 183
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SACGF/variantgrid
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
SACGF/variantgrid#2964 · 1 comment ·
Maintainers usually reply within 1 day
-
Genome build now duplicated in "imported as" on allele pagePossibly taken @TheMadBug claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
SACGF/variantgrid#2950 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
SACGF/variantgrid#2865 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SACGF/variantgrid#2647 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
SACGF/variantgrid#2341 · 3 comments ·
Maintainers usually reply within 1 day
All issues in SACGF/variantgrid
Similar issues
-
Test: to_hijri() accepts datetime.datetime and uses only the date partPossibly taken A pull request linked to this issue is open or already merged. Opengood first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 · 3 comments ·
Maintainers usually reply within 1 day
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresPossibly taken @AshutoshSingh840 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
UKGovernmentBEIS/control-arena#992 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Maintainers usually reply within 1 day