L1 5' inversions¶
Applies to GraffiTE v1.1
Verified against v1.1.0.0 at commit bf51777. The
2024 paper describes v1.0, which
differs in places; see v1.0 vs v1.1.
Twin priming¶
Most L1 insertions are 5' truncated: reverse transcription starts at the polyA tail and stops before reaching the 5' end of the RNA. In a fraction of them the 5' part of the element is also inverted relative to the 3' part. Ostertag and Kazazian (2001) explained this by twin priming: after the first nick, reverse transcription of the 3' end begins as usual, then the second nicked strand primes a second reverse transcription on the same RNA, further upstream, in the opposite direction. The two cDNAs are joined, and the element ends up as an inverted 5' piece followed by a normally oriented 3' piece, often with a small deletion or duplication at the junction between them.
For a variant caller such an insertion is one event. For RepeatMasker it is two fragments of the same L1 on opposite strands, and without a rule to join them the element reads as two hits.
Strand signature¶
RepeatMasker reports each fragment's strand as + or C. An L1 with a 5' inversion appears as
a C fragment followed, along the variant sequence, by a + fragment, both belonging to the
same L1 (RepeatMasker gives them the same link ID). Only the C+ order counts as a 5'
inversion. Reverse-complementing a twin-primed insertion flips the strand labels and the
fragment order together, so the same element read from the other strand is C+ again; which
strand it sits on comes from the consensus coordinates instead, below.
C+ pattern in RepeatMasker output.How GraffiTE detects it¶
annotate_vcf.R groups the fragments of each RepeatMasker link ID into one hit and records the
distinct strands of its fragments, in query order, as one string (C+, +, C, +C). A hit is flagged
as an L1 5' inversion when its class is LINE/L1 and that string is exactly C+. The rule does
not count the fragments: a C piece followed by two + pieces also qualifies.
bin/annotate_vcf.R:104,119
annotate_vcf.R then derives the strand of the element as a whole, because neither fragment's
strand is the answer. It compares the consensus coordinate where each fragment begins: if the C fragment
begins at a lower consensus position than the + fragment, the element is on the + strand;
otherwise it is on C. That inferred value is what RM_hit_strands reports for the hit, and
polyA is scanned on the end that strand implies. Every other hit reports its fragments'
strands as they came.
bin/annotate_vcf.R:120-127, bin/add_polyA.py:116
The rule runs on every dataset, not only human ones. It needs the library to name the class
LINE/L1, and it applies to any L1 subfamily in it.
L1_5PINV field¶
| Value | Meaning |
|---|---|
None |
No hit on the variant matched the rule (this is also the value for variants with no hit at all). |
<link ID> |
The RepeatMasker link ID of the hit flagged as inverted, the same number that appears in RM_hit_IDs, so the fragments can be found in repeatmasker_dir/indels.fa.out. Several IDs are comma-separated. |
bin/annotate_vcf.R:177,213, bin/repmask_vcf.sh:30,181
Such a variant still has n_hits=1 when the inverted L1 is its only element, so it is eligible
for the trusted and human subsets like any other single-hit L1. In v1.0 the field was
mam_filter_1, written only with --mammal, and its value was the inferred strand:
5P_INV:plus, 5P_INV:minus, or None.