HERV-K (HML-2) biology¶
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.
HERV-K classification runs only under --human; the procedure is in
Human MEIs.
HML-2 architecture¶
A HERV-K (HML-2) provirus is LTR - INT - LTR: two identical long terminal repeats of 968 bp
(LTR5_Hs; LTR5A is 1,033 bp) flanking a 7,536 bp internal region, 9,472 bp in all
bin/hervk_arch.py:56-57, bin/hervk_classify.py:49-51. Homologous
recombination between the two LTRs excises the intervening LTR + INT, 8,504 bp whatever the
crossover point, and leaves a single recombinant solo LTR.
HERVK_ALLELE_REF and
HERVK_ALLELE. A fifth value, partial, names a reference element that is
neither a whole LTR nor a provirus with both LTRs.
A structural variant call is always a statement about two of these states, and the
polymorphism type depends on which two. A null allele against anything else is an insertion
polymorphism, the event behind the difference being a transposition; that is what the
HERVK_MEI flag records, and what makes a HERV-K locus comparable to an Alu or L1 insertion.
Solo LTR against provirus, or one unit against two, is structural variation in an element every
haplotype carries bin/hervk_reconcile.py:136-170.
Why size alone cannot tell them apart¶
An 8,504 bp insertion is equally consistent with LTR + INT entering a solo LTR and with a
complete provirus entering an empty site whose internal region carries a deletion. GraffiTE
therefore does not classify on size. It reads the architecture of the variant allele out of
the raw RepeatMasker fragments, and where that is ambiguous it reads the state off the masked
reference at the locus.
Two architectures name the allele pair directly bin/hervk_arch.py:254-356:
- Two full terminal LTRs, each running the length of its family's consensus, to within
perm_tol(50 bp) at either end, with internal sequence between them. The consensus length is the family's: 968 bp forLTR5_Hs,LTR5BandLTR5, 1,033 bp forLTR5Abin/hervk_arch.py:56,75,328-338. Nothing was consumed by the alignment, so the variant carries a whole provirus. Reported asARCH_2LTR. - One LTR split across the termini: the 5' fragment covering consensus
k+1..Land the 3' fragment1..k, complementary and summing to one LTR. The aligner broke a reference LTR at positionk, so the reference held one. Reported asARCH_PERM. The same split inside the internal region isARCH_INT_PERM, with its point inHERVK_J.
The variant's polarity sets which side of the pair it carries. For an insertion the
architecture describes the allele being added; for a deletion it describes reference sequence
being removed, so ARCH_2LTR reads provirus -> null on a DEL and null -> provirus on an
INS. Where the masked reference already holds a provirus, the classifier overrides that INS
reading and calls one unit gained, provirus -> prov_x2, keeping HERVK_EVIDENCE at ARCH_2LTR
and adding CNV_UNITS:1->2,UNIT_COUNT_ASSUMED to HERVK_NOTE. It does the same for ARCH_PERM
bin/hervk_classify.py:322-363.
HERVK_K records k. It is a property of the alignment, not of the biology: the inserted
length is the same for every k, so the gap penalty cancels and the handful of substitutions
separating the two LTR copies sets the placement. It varies between haplotypes and
between callers, so do not key on its value.
At k = 0 the split is degenerate: one whole LTR and nothing at the other end, which is
indistinguishable from a one-LTR-truncated provirus. The reference check is therefore the main
mechanism: the classifier masks the reference in a window of --hervk_ref_flank
(1,500 bp) either side of the candidate, widens it when an element runs into the edge, and calls
the state from the LTR and internal-region base pairs the window holds
bin/hervk_ref_state.py:46-72, 272-292.
HERVK_CLASS values¶
HERVK_ALLELE_REF and HERVK_ALLELE give the states directly; read those in downstream
analysis. HERVK_CLASS names the pair, not the direction
bin/hervk_classify.py:274-288, 424-467:
HERVK_CLASS |
states | |
|---|---|---|
null_solo |
null, solo | a solo LTR segregates |
solo_prov |
solo, provirus | dimorphic; no null observed |
truncated_prov |
as null_prov or solo_prov, with less than 80 % of the internal region |
|
null_prov |
null, provirus | a whole provirus segregates |
copy_number |
prov_xN, prov_xM |
the array gains or loses whole units |
other |
not resolved to two HML-2 states |
HERVK_EVIDENCE says what settled the call: ARCH_2LTR, ARCH_PERM, ARCH_INT_PERM,
ARCH_SOLO, CNV_PERIOD, REF_ANNOT (from the reference state), UNRESOLVED, or NON_HML2 (a
candidate with fewer than 50 bp of HML-2 sequence) bin/hervk_classify.py:434-436.
HERVK_PMAP is a confidence under a size model and never determines a class.
Copy-number loci¶
An HML-2 locus is not always one provirus. In a cohort of 20 diploid human genomes, the locus at chr7:4.70 Mb carries
two units in tandem sharing a central LTR, and one, two and three units all segregate
module/main.nf:555-562. The reference step counts the units of a
proviral reference element and measures their period, one internal region plus one LTR
(HERVK_N_UNITS_REF, HERVK_UNIT_BP) bin/hervk_ref_state.py:238-270.
An SV whose |SVLEN| lands on a whole number of that period, within 50 bp or 0.5 % of its
length, changes copy number by that many units. Those states are written prov_xN, with
provirus as the N = 1 spelling. Zero units is a solo LTR, because an array of N units carries
N + 1 LTRs and removing every unit leaves the one they shared, so the familiar solo/provirus
dimorphism is the N = 1 case of the same arithmetic
bin/hervk_classify.py:225-271.
The geometry, one internal region plus exactly one LTR with the junction inside the LTR the two copies share, is what unequal exchange between misaligned units produces. Hughes and Coffin (2004, PNAS 101:1668-1672) proposed that mechanism for the tandem HERV-K108 allele and suggested a solo LTR they found was its reciprocal product.
hervk_reconcile withholds graph genotypes at these loci (HERVK_GT_MASKED). The ALT path repeats
sequence the reference already carries, so reads from the pre-existing copy traverse it and
non-carriers pick up ALT support; in our run on the 20-genome cohort the ALT fraction at such a locus tracked
provirus dosage rather than carriage. Discovery genotypes come from haplotype-resolved
alignments, do not have this problem, and carry the allele counts
(HERVK_AC_DISC, HERVK_AN_DISC). Set --hervk_mask_graph_gt_at_cnv false to keep the graph
calls nextflow.config:103-111.
Why the SVA hits are not SVA¶
RepeatMasker frequently reports an SVA_* hit at the terminus of an HML-2 element. This is
homology, not a second element: SVA's SINE-R domain is HERV-K LTR derived. GraffiTE treats an SVA hit
that starts at SVA consensus position 900 or later and abuts HML-2 sequence within 50 bp as
SINE-R, reassigns it to the LTR class and tiles hits
winner-take-all along the variant, so an SVA hit lying on top of an LTR5_Hs hit is counted
once bin/hervk_arch.py:69-84, 201-233. The same homology is why the
--human filter carries its HERVK + SVA carve-out (Human MEIs).
Library naming¶
The internal region is named HERVK by Dfam and HERVK-int by RepBase-derived sets;
HERVK_int and HERVKint also occur. The classifier recognizes all of them, so no modified
library is needed bin/hervk_arch.py:65. HERVK9-int, HERVK11-int,
HERVK14-int and HERVKC4-int are deliberately not matched: they are separate ERV lineages.
The LTR families recognized are LTR5_Hs, LTR5A, LTR5B and LTR5
bin/hervk_arch.py:56.
The carve-out in the --human filter is stricter than the classifier: it requires the literal
name HERVK-int; see the note in Human MEIs.