SV annotation gaps: whole-gene vs partial effect, intron and regulatory context, repeat class of inserted sequence

Open
#2,883 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by listing the full AnnotSV output columns against the gaps in annotation/annotsv_columns.py; inspect annotation/models/repeat_masker.py and the related issues #1040 and #2540 for existing import and gene-ranking work. Then identify which gaps AnnotSV fills directly and which need transcript, enhancer, TAD, or inserted-sequence calculations. Done means the gaps and their data sources are mapped; the issue leaves implementation scope open.

Written by the indexing model from the issue text.

Description

🤖 Written by Claude

This compares our SV annotation with what other tools compute: SVlog in GenTechGp/puzzleapp (inst/extdata/db/table_schema/documentation/svlog_predicates_format.tsv), and gnomAD's SVAnnotate.

What we have

  • VEP SV consequences: transcript_ablation, transcript_amplification, feature_truncation / feature_elongation.
  • Imported AnnotSV columns (annotation/annotsv_columns.py): ACMG class and score, Frameshift, Exons_spanned, Dist_nearest_SS, Nearest_SS_type, RE_gene, OMIM, pathogenic overlaps, and repeat / segdup / ENCODE blacklist at each breakpoint.
  • RepeatMasker through VEP, over the reference span (annotation/models/repeat_masker.py).

Gaps

Whole-gene vs partial effect

  • Whole-gene inversion: the inversion spans the transcript from the first base of the 5′ UTR to the last base of the 3′ UTR (SVAnnotate PREDICTED_INV_SPAN).
  • Partial duplication: one breakpoint inside the transcript and one beyond its end, so the TSS isn't duplicated (SVAnnotate PREDICTED_DUP_PARTIAL). A tandem duplication like this leaves one intact copy of the gene, so it usually isn't LoF.
  • Promoter only: overlaps a gene's promoter but not the transcript.
  • #2540's gene ranking needs the same "breakpoint inside the gene vs gene wholly inside the SV" calculation, so the two should share it.

Intron context for an intronic SV

  • Which intron of the MANE transcript, the intron's length, and the distance to the 5′ and 3′ splice sites.
  • The fraction of the intron removed. SVlog's lof_intron fires when the SV covers more than 50% of the intron or is within 1 kb of a splice site.
  • Dist_nearest_SS covers part of this.

Regulatory context for an intergenic SV

  • Enhancers deleted or duplicated, the nearest enhancer and nearest TAD boundary with their distances, and whether a TAD boundary is crossed.
  • SVlog uses these to call an SV "ordinary intergenic", one of its strongest reasons to exclude a variant.
  • RE_gene covers enhancer → gene. We have no TAD source.

Repeat class of the inserted sequence

  • For a sequence-resolved insertion: whether the inserted sequence is a mobile element (Alu / L1 / SVA) or a tandem repeat expansion, with its motif, period and copy number. SVscanner in puzzleapp runs RepeatMasker and TRF over the SV sequence.
  • RepeatMasker through VEP and AnnotSV's Repeat_type_left/right describe the reference. They can say a deletion removed an Alu, but not what an insertion inserted.
  • This enables "STR expansion at a known pathogenic locus" and "mobile element inserted into an exon, UTR or promoter".
  • Explicit insertions stay explicit at import (only DEL / DUP / INV become symbolic), so the sequence survives for callers that write it. A symbolic <INS> with no sequence gets nothing.

Check AnnotSV first

AnnotSV's full output already has columns we don't import that cover part of the above, and part of #1040:

  • Location / Location2 (for example intron3-intron5, txStart-exon2), Overlapped_CDS_percent, Overlapped_tx_length, Exon_count, Closest_left/right
  • HI / TS (ClinGen dosage), ExAC_delZ / dupZ / cnvZ (requested in #1040), LOEUF_bin
  • B_*_source / B_*_coord (which benign records matched), po_B_*_allG/someG, po_P_*

The first step is to list which gaps AnnotSV fills cheaply and which need our own calculation from transcripts, enhancers or TADs.

Related: #1040, #1793, #2540

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SACGF/variantgrid

All issues in SACGF/variantgrid

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.