Get LRG / RefSeqGene data from cdot, remove the LRG_RefSeqGene download
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start with genes/cached_web_resource/lrg_ref_seq_gene.py, LRGRefSeqGene, the cdot import path for TranscriptVersion.data, DjangoTranscriptDataProvider, and library/vg/inspect/transcript.py. Read how HGVSMatcher currently resolves LRG transcripts and RefSeqGene contigs, then trace cdot's refseqgene import and provider hooks. Done when transcript and genomic LRG/NG_ lookups use cdot and the old download, model, task, and ClinGen LRG fallback are removed.
Written by the indexing model from the issue text.
Description
🤖 By Claude Opus 5.5
Low priority. The aim is fewer annotation files and downloads for VG to manage, with LRG data coming through cdot like the rest of the transcript data.
Now
VG downloads NCBI's LRG_RefSeqGene as a CachedWebResource (CACHED_WEB_RESOURCE_LRG_REF_SEQ_GENE, genes/cached_web_resource/lrg_ref_seq_gene.py) into the LRGRefSeqGene table. HGVSMatcher uses it to swap an LRG transcript (LRG_1097t3) for its RefSeq transcript before converting, and falls back to the ClinGen Allele Registry when VG doesn't have that transcript. Genomic LRGs and RefSeqGenes (LRG_292:g., NG_005905.2:g.) only go through ClinGen.
cdot now has this
From cdot data 0.2.38 (SACGF/cdot#259) and client 0.2.39, built from the same NCBI LRG_RefSeqGene file plus NCBI's RefSeqGene alignments:
- Each RefSeq transcript that is an LRG transcript has
lrg(egLRG_1097t3) andlrg_protein(egLRG_1097p3), so these end up inTranscriptVersion.dataon import. - RefSeq transcripts inside an NG_ have that alignment in
genome_builds[build]["alt_alignments"]["NG_..."]. - A new top-level
refseqgenetable:{"NG_011340.1": {"lrg": "LRG_1097", "genome_builds": {...}}}. LocalDataProvider(whichDjangoTranscriptDataProviderextends) handles LRG transcripts and NG_/LRG contigs. A subclass only has to return the transcript for an LRG name from_get_transcript, and implement_get_refseqgene_for_lrg(lrg)(LRG -> NG_ accession).
Change
- Requires cdot data >= 0.2.38 and client >= 0.2.39.
- Look up LRG transcripts from
TranscriptVersion.data["lrg"](needs a way to query it, eg an indexed field set on import) instead ofLRGRefSeqGene. - Import the
refseqgenetable with the cdot data, and implementDjangoTranscriptDataProvider._get_refseqgene_for_lrg. This givesLRG_/NG_g.HGVS without ClinGen. - Remove the
LRGRefSeqGenemodel, itsCachedWebResourceand task, and updatelibrary/vg/inspect/transcript.py. - The ClinGen fallback for LRGs can then go too. Today it relies on ClinGen's reference bases.
- 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