Status: current compatibility guidance for pinned Ensembl VEP 116. DuckVEP is alpha; this document is not a claim of complete conformance or clinical validation.
What the compatibility target means
Within its supported surface, DuckVEP must reproduce the pinned VEP 116 executable under the same reference, transcript model and settings, including absent HGVS values and input-representation-dependent results. The compatibility contract pins the VEP, Ensembl core and variation revisions. The upstream source registry, dependency lock and individual comparison receipts supply source anchors, dependencies and run identities.
Every physical input record and source ALT remains a separate comparison unit, including duplicate POS/REF/ALT records. Equal reconstructed sequence does not permit replacing their different VEP outputs with a canonical answer. A disagreement stays in the denominator.
Three verdicts must remain separate:
- Observed upstream convention: reproducible VEP behavior that DuckVEP must follow.
- DuckVEP gap: unsupported behavior or a retained compatibility disagreement.
- Potential upstream erratum: a result contradicting an independently established contract. Reproduction, interpretation and upstream acknowledgement are separate facts.
A potential upstream erratum requires a minimized input, pinned model and executable, complete outputs and diagnostics, an independent sequence or versioned-rule argument, and controls excluding our parser, projection and comparator. Agreement with another tool is insufficient. No upstream acknowledgement is recorded for the observations below. None authorizes silently changing compatibility output.
HGVS 21.1.4 recommendations are a separate
nomenclature audit reference. Matching VEP does not certify HGVS correctness; an
ok result is a computation status, not that certificate. The internal strict
compatibility control is neither a second public consequence standard nor a certified
HGVS implementation. Genotype phase_policy := 'strict' addresses a different question.
Remaining limitations
Whole-haplotype SO, IMPACT and NMD follow DuckVEP’s own contract,
checked against pinned bcftools csq: VEP’s haplotype mode (Haplosaurus) reports sequences, differences,
carriers and flags but no consequence terms, and VEP’s NMD plugin evaluates one allele at a time.
Compound HGVS names the joint allele: two cis SNVs changing AGA to CGC are p.(Arg2=), as VEP
names the equivalent MNV (internal-codon differential;
regression in test/sql/duckvep_haplotypes.test), and the compound fuzz
compares random cis alleles with Mutalyzer and with VEP on the merged record.
The retained indel comparison contains 168,000 original records and 1,344,000 HGVSp comparisons. Independent and decoded-singleton routes agree, but raw-source routes retain 41,712 disagreements with independent-event VEP. Their distinct input semantics are explained below. All 336,000 independent SO comparisons agree in that finite matrix. These are recorded diagnostics, not current-build certificates, population error rates, or proof for compound events, reverse strands or phase-padded indels.
An insertion in a CDS whose inserted bases contain N is unresolved with reason
ambiguous_sequence and reports coding_sequence_variant. VEP decides frameshift_variant
from the lengths alone, so the two differ when the inserted length is not a multiple of three.
In a ClinVar sample of 11,819 alleles of at most 101 bases, 19 such insertions of 58 to 100
bases give 378 transcript pairs: the 134 pairs of the 7 in-frame insertions agree, and the 244
pairs of the 12 frame-changing insertions differ
(retained rows).
The recorded ClinVar consequence campaign bounds alleles at 50 bases and contains none.
Circular sequence regions are modelled where VEP has no model. A region flagged circular_seq that holds a
transcript, exon or feature with start > end runs on lifted intervals; VEP 116 reads such a transcript as
an ordinary interval with reversed bounds. In three public genomes with a VEP cache
(receipts, survey),
DuckVEP and VEP agree on every SO term of every other transcript except flank rows that exist only through the
origin, which VEP cannot emit; HGVS 3’ shifting within 1,100 bases of the origin also differs, because VEP clips
its window at the sequence end. For the crossing transcript itself, VEP reports no row for most events inside it
or an intergenic_variant transcript consequence, and it aborts --hgvs on insertions in its translation. These
are DuckVEP differences by design (an observed VEP limitation the model deliberately does not follow), not
matched results: the origin-crossing behavior is proved by rotation equivariance and agreement with a linear model,
not by VEP. Human MT, whose transcripts do not cross the origin, is byte-identical to the linear path. The
one remaining SO disagreement in those receipts (an insertion at the first base of a N. equitans stop codon,
inframe_insertion&stop_retained_variant in VEP against coding_sequence_variant&inframe_insertion) and six interior
HGVSp differences also occur without lifting; they are compatibility gaps unrelated to topology.
The conformance guide and rendered report describe executable checks and their scope. The evidence policy governs retained failures, comparison keys and controls; passing native properties cannot replace an executable differential.
Ambiguous bases: translation and allele validity are different
Classification: corrected DuckVEP compatibility defects, with scoped evidence.
An unambiguous source allele can lie in an N-containing codon whose amino acid is
determinate. For table-1 CDS ATGGCNTAA, CDS position 4 G>A changes Ala to Thr:
VEP reports missense_variant and p.Ala2Thr. Conversely, an N in the changed
source allele can make its peptide unavailable. N is never a wildcard for REF validation.
DuckVEP uses consensus translation while preserving separate checks for uploaded alleles, raw sequence ambiguity and curated reference proteins. Unknown local residues can coexist with missense or frame-change facts; they do not justify discarding all sequence predicates. The SNV comparison retains all 28,800 original SNVs over 125 ACGTN codons and 24 tables: 230,400 HGVSp and 57,600 SO comparisons agree. The baseline result set records the failing observations. These forward, phase-zero internal-codon tests do not establish all transcript contexts.
For length-changing records, a literally matching N in an erased anchor or shared
prefix/suffix differs from N in the changed payload. For CDS ATGGCNGCCTAA,
position 6 N>NGCC yields independent-event inframe_insertion and p.Ala2dup.
A removed N can still support a deletion while leaving the reference peptide unavailable.
Raw predicate flags and emitted SO are also distinct: a length-decreasing event may
have true raw missense and frameshift predicates but emit only frameshift_variant.
The indel witnesses and predicate witnesses retain original records, actual CLI/direct-API observations and controls. The diagnostic driver preserves source identities and absent outputs; direct-API evidence does not automatically certify VCF parser behavior.
Record geometry and consequence terms
Classification: observed VEP-116 conventions. The uploaded feature, minimized physical edit, displayed coordinates and altered sequence serve different purposes. DuckVEP keeps them distinct; normalizing an input before annotation can change the question VEP answers.
| Topic | Observed behavior and consequence for users |
|---|---|
| Retained REF bases | Equal-length uploaded spans determine local peptide windows. They can change start/stop terms even when the differing base is identical. Complete uploaded REF still requires validation. |
| CDS phase | Displayed CDS/protein coordinates use the first transcript exon phase; stored CDS padding uses the first coding exon phase. These may differ when CDS begins in a later exon. |
| Clipped HGVS coordinates | VEP orders clipped transcript-coordinate pairs numerically, except when the second coordinate is in the 3′ UTR. On reverse transcripts, a shifted insertion immediately below transcript start can use a +1 offset from the terminal exon base. |
| UTR and mapper gaps | A feature crossing the 3′ CDS end may lose peptide annotation, while one crossing the 5′ CDS start can retain start predicates. Empty annotated UTR intervals can still produce UTR terms for spanning features. |
| Partial codons and stops | Partial-codon status depends on sequence length and first affected peptide position, not only an attribute. Terminal coordinate tests, local peptides and raw-CDS fallback translation can disagree, including after reference peptide edits. |
| Predicate combinations | Start-lost/start-retained and stop-retained/protein-altering can coexist. In-frame insertion is not determined by length modulo three; deletion and insertion use different predicates. |
| Splice and noncoding features | ALT-only differing runs can reach an intron selected by VEP’s expanded cache. Short-intron exon stretching is candidate selection, not exon membership. Mature-miRNA overlap replaces generic noncoding exon terms. |
| Empty consequence sets | A real transcript overlap with no successful predicate receives transcript-associated intergenic_variant. It must not be confused with absence of a transcript from an incomplete model. |
| NMD | The plugin projects the full uploaded feature, including reversed insertion intervals, rather than the minimized edit. It is distinct from a transcript’s curated NMD_transcript_variant biotype term. |
Executable witnesses are in the projection differential and corpus differential. The annotation, coding and classification properties retain the specific strand, phase, start/stop, UTR, splice and NMD counterexamples. Pinned VariationEffect and NMD remain the source authorities, not biological simplifications of their term names.
Model inputs and structural events
Classification: upstream conventions and explicit DuckVEP scope.
- Assembly paths: X/Y PAR, patches and alternate haplotypes retain path-specific coordinates and transcript identities. DuckVEP models the exact paths supplied by the reference relation; it does not implicitly project absent paths or merge equivalent genes. The PAR fixture tests sequence-dependent annotation on both X and Y.
-
Release annotations: Ensembl release
VEcontains stored variation-effect rows; releaseCSQcan overwrite terms for the same allele/feature. Neither replaces executable VEP as the oracle. The release audit preserves this distinction. Regulatory model preparation excludes EMAR because VEP excludes those source rows before overlap evaluation. - Breakends: VEP adds one to local POS but retains the mate coordinate. Ordinary transcript terms use the local feature; truncation and regulatory/motif overlap can observe the mate. Candidate discovery and the fixed 5,000-base attachment distance are separate rules. DuckVEP emits each event/feature once, unioning endpoint terms; raw VEP may emit multiple rows. It does not infer fusion sequence. The BND fixture retains endpoint/default-term controls.
-
BND batching: VEP’s
input-buffer interval tree
can mix mate coordinates without
a chromosome key, making a record’s transcript set depend on other buffered records.
BND differentials use
buffer_size=1to state an isolated-event oracle contract; this is not conformance to arbitrary batched output. In the species pooled files (both mates of a pair in one run)buffer_size=1did not isolate three records; they agree with DuckVEP when re-run alone (species evidence). The multichromosome BND report records that scope. -
Symbolic and repeat alleles: VEP accepts a finite symbolic vocabulary, not arbitrary
<...>geometry. A bounded tandem repeat expanded to literal sequence is a small variant; an unexpanded repeat uses structural gain/insertion predicates. Nominal SV coordinates drive consequences; confidence intervals and inserted sequence remain provenance, not inferred exact geometry or compound HGVS. The confidence fixture and nominal-coordinate comparison test uncertainty metadata; VEP’s structural insertion predicate does not inspect inserted sequence. -
gVCF alleles:
<*>,*,<NON_REF>and.are different. The catch-all<*>has no known alternate coding sequence or HGVS, yet VEP’s length predicate can produce ablation when a long REF contains a complete feature. The gVCF fixture preserves mixed ALT order and long-REF controls. Literal deletions can also ablate transcripts without becoming symbolic structural records.
These rules do not establish a general structural-variant or pangenome annotation engine. The structural kernel and classification tests define the typed subset; original ALT, confidence, orientation and source identity remain necessary.
HGVS follows VEP’s state machine
Classification: observed executable conventions, not a certified HGVS standard. Protein HGVS is not simply a difference between two complete proteins, and transcript HGVS is not simply a walk along spliced CDS.
- Transcript HGVS shifts against a genomic reference window in transcript direction.
VEP’s clipped 1,000-base flank construction, allele-length limits and cached pre-shift
transcript slice affect endpoint cases. Duplication tests the copied source before
ordinary insertion flanks. These operations must not rewrite source coordinates or
consequence events;
shift_hgvsis notshift_3primeorshift_genomic. - Literal exonic SNPs have a phase-aware HGVS coordinate path that MNVs and indels do not share. Its displayed CDS position follows the first transcript exon phase, while physical CDS storage follows the first coding exon phase. A transcript-flank consequence can legitimately have no transcript HGVS; missing reference or failed REF validation is instead unresolved.
- Protein notation uses cached unshifted start/stop predicates and independently reconstructed frameshift state. Shared peptide clipping, terminal insertion flanks and stop-loss precedence affect both strings and applicability.
- Some HGVS paths translate with BioPerl’s default table 1: frameshift alternate CDS, late stop search and raw-reference duplication checks. Ordinary consequences still use the transcript’s declared table. Mitochondrial HGVSp can therefore use a stop incompatible with its consequence peptide’s translation table.
- Other executable details include incomplete-codon assignment behavior, distinct
terminal-partial insertion views, negative substring positions, Xaa-to-Ter conversion
and a delins extension guard after three-letter conversion. A rendered
Teris therefore not independent proof that the reconstructed sequence contains a stop. - Default independent-event VEP protein strings omit prediction parentheses. Parentheses alone do not change the asserted protein edit.
The compatibility policy is the single inventory of explicitly gated runtime behavior. The HGVS properties, original-record witnesses and SQL tests pin the strings and absent-output cases. Position-zero output is preserved as a VEP convention, not endorsed as valid HGVS.
A stop-loss witness with a sequence contradiction
Classification: reproduced synthetic sequence contradiction and HGVS-rule inference; unpublished complete evidence, no upstream acknowledgement.
The forward single-exon transcript ANCHOR1 spans chrA1:11–45, with phase-zero
CDS 11–22, standard table 1 and complete transcript sequence
ATGGGTCCTTAAAAAGAACAATAATAACTAGCTGA. Its CDS ATGGGTCCTTAA translates to
MGP*. These four physical records are separate inputs, including the duplicate allele:
| Record ID | POS | REF → ALT | VEP HGVSc | VEP HGVSp suffix |
|---|---|---|---|---|
ANCHOR1_10_T_0 |
19 | T → TT | c.10dup |
p.Ter4LeufsTer9 |
ANCHOR1_10_T_1 |
20 | T → TT | c.10dup |
p.Ter4delinsLeuTer |
ANCHOR1_11_T_0 |
20 | T → TT | c.10dup |
p.Ter4delinsLeuTer |
ANCHOR1_11_T_1 |
21 | A → TA | c.10dup |
p.Ter4delinsLeuTer |
Every record reconstructs ATGGGTCCTTTAAAAAGAACAATAATAACTAGCTGA.
Independent base-R and BioPerl translation agree on MGPLKRTIITS*, first stop at
position 12. The delins description instead asserts a stop at position 5.
The traced mechanism is an incomplete local codon rendered as Xaa and then Ter;
unmodified and observed VEP output agreed at buffer sizes 1 and 5,000.
Our HGVS 21.1.4 extension-rule
inference is p.(Ter4LeuextTer9): extension has priority when the reference protein
is extended. The frameshift string has the reconstructed termination distance but
a different operation; the delins string asserts a stop absent from that translation.
This does not establish prevalence, clinical impact or a general stop-loss defect.
The complete four-record outputs and trace are in the untracked receipts
hgvs_anchor_contract_NTMkInFP/receipt.json and
hgvs_anchor_trace_p2DHeEUD/mechanism_receipt.json, both under
test/duckvep/conformance/results/. These are local, build-unbound diagnostics,
not a published conformance pack or release-build certificate. The shipped
terminal-anchor differential
provides the broader executable comparison. DuckVEP’s compatibility target remains
each original record’s VEP result; this inference does not replace it.
Stop-codon deletions at an exon junction
Classification: reproduced sequence contradictions on synthetic and chromosome 21 inputs; mechanism traced in the installed VEP 116.0 source; no upstream acknowledgement.
VEP’s own known-bugs list says that variants overlapping exon/intron boundaries can get incorrect consequences and HGVS. The rows below belong to that family. DuckVEP reproduces each VEP result; the sequence-true reading is recorded here and does not replace it.
The forward transcript STOP2 of duckvep_stop_boundary.test
has CDS ATGGCCGCCGCAAAATGA, with the stop codon split TG|A by an intron, and
3-prime UTR AATTGTGAGG.... The unsplit transcript STOP1 has CDS ATGGCCGCCATCGACTGA.
| Record | VEP and DuckVEP | Sequence |
|---|---|---|
STOP2:1516 TG>T (c.17del) |
splice_region_variant, coding_sequence_variant; p.Ter6=
|
TGA becomes TAA: the stop is retained, as the protein name says, but no stop term is reported |
STOP2:1515 AT>A (c.16del) |
stop_lost; p.Ter6=
|
TGA becomes GAA (Glu): the stop is lost, and the protein name asserts it is unchanged |
STOP1:1516 TGA>T (c.17_18del) |
stop_lost; p.Ter6=
|
TGA becomes TTT (Phe): as above |
Mechanisms:
-
stop_retainedfor a deletion with anXpeptide allele calls_overlaps_stop_codon_cil, which tests the three genomic bases ending at the coding-region end. For a split stop codon those bases include intron, and the stop bases before the intron are outside the window. No stop term is then evaluated andcoding_unknownremains. -
frameshiftreturns false when the reference peptide allele starts with the stop, so the protein formatter does not take its frameshift branch and writes an equality at the stop. - When the original feature crosses the junction it has no peptide alleles. After the
3-prime shift places it inside the CDS, the same deletion is written as a frameshift:
21:42362489 CAC>ConENST00001093239isp.Ter81AsnfsTer13, the sequence-true name. The syntheticSTOP3:1618 GTG>G, the same kind of edit given inside the exon, isstop_lostwithp.Ter7=.
The stop-codon sweep reproduces the chromosome 21 rows; the findings give the counts. This does not establish prevalence beyond that chromosome.
Reverse-strand insertions shifted further than their length
Classification: potential upstream erratum, reproduced on chromosome 21 with a sequence argument; mechanism traced in the installed VEP 116.0 source; no upstream acknowledgement. DuckVEP follows the executable.
shift_feature_seqs (TranscriptVariationAllele.pm lines 1330–1347) rotates the
bases of a 3-prime-shifted insertion before protein HGVS replays them. On a
reverse-strand transcript it rotates seq_length - shift_length places. A shift
longer than the insertion makes that count negative, and the inserted bases are then
replayed as written, at the shifted position. HGVSc is unaffected, so HGVSc and HGVSp
describe different edits.
GRCh38, Ensembl 116 cache, each insertion shifted one base further than its length:
| Record | Transcript | VEP HGVSc | VEP HGVSp suffix | Translating the HGVSc edit |
|---|---|---|---|---|
21:33530773 A>ACA |
ENST00000361093 |
c.710_711dup |
p.Pro238CysfsTer12 |
p.Pro238ValfsTer12 |
21:41468506 C>CAC |
ENST00000676973 |
c.1205_1206dup |
p.Leu403ValfsTer18 |
p.Leu403CysfsTer18 |
21:41473411 G>GCTG |
ENST00000966231 |
c.739_741dup |
p.Ser247_Leu248insGln |
p.Ser247dup |
In ENST00000361093 the CDS reads …TATT GT CCAGCC… with GT at c.710_711.
Duplicating GT gives codon 238 GTC (Val). VEP’s Codons value -/TG shows the
written bases instead: TG after c.709 gives TGT (Cys).
The rotation is invisible when the bases around the insertion make both orders spell
the same sequence. 21:33534656 A>ATA on the same transcript has the same shift and
both readings give p.Met114IlefsTer26.
The behavior is the DUCKVEP_COMPAT_HGVS_REVERSE_LONG_SHIFT_UNROTATED entry of the
compatibility policy; the strict profile rotates
by the shift. A saturating indel corpus over chromosome 21 exons met the shape on
225 of 483,785 HGVSp pairs, all on reverse-strand transcripts. That corpus does not
estimate prevalence in called variants.
Deletions that start before the transcript
Classification: observed executable convention.
HGVSc clamps a deletion that starts outside the transcript to the transcript’s first
base before shifting. Protein HGVS replays the complete shifted deletion when the
shift places it wholly inside the CDS. The two strings then describe different edits.
ENST00000359759 starts at its start codon, 21:45455531:
| Record | VEP HGVSc | VEP HGVSp suffix |
|---|---|---|
21:45455529 CGAT>C |
c.2_3del |
p.Met1del |
21:45455529 CGATG>C |
c.2_4del |
p.Met1LeufsTer? |
The rule applies to every transcript, with or without an incomplete CDS start.
Whole alleles in HGVSc on a transcript with RNA edits
Classification: potential upstream erratum, reproduced on chromosome 21 against the VEP 116 RefSeq cache; mechanism traced in the installed VEP 116.0 source; no upstream acknowledgement. DuckVEP follows the executable.
hgvs_transcript (TranscriptVariationAllele.pm lines 1474–1514) builds the
notation from the clipped and 3-prime-shifted edit. On a transcript that carries an
_rna_edit attribute it then overwrites both notation alleles with the row’s whole
feature alleles. Positions and kind stay those of the clipped, shifted edit, so the
bases no longer fit them. The attribute need not lie near the variant: a poly(A) tail
appended after the last transcript base is enough.
| Record | Transcript | VEP HGVSc | Bases of the placed edit |
|---|---|---|---|
21:33539220 A>ATCA |
NM_001136005.1 |
c.97_98insTGA |
c.97_98insATG |
21:39175457 AT>TA |
NM_001320795.1 |
c.*132_*131insTA |
c.*132_*131insT |
21:21797414 AAG>TTA |
NR_109958.1 |
n.759delinsTTA |
n.759delinsTT |
The first record is shifted two bases and VEP prints the inserted bases unrotated. The other two keep a base that the alleles share.
The behavior is the DUCKVEP_COMPAT_HGVS_RNA_EDIT_FEATURE_ALLELES entry of the
compatibility policy. A saturating indel corpus
around the RNA edits of chromosome 21 met the shape on 6,077 of 836,655 HGVSc pairs.
That corpus does not estimate prevalence in called variants.
HGVSc numbering on a transcript whose RNA edits change its length
Classification: potential upstream erratum, reproduced on chromosome 21 against the VEP 116 RefSeq cache; mechanism traced in the installed VEP 116.0 source; no upstream acknowledgement. DuckVEP follows the executable.
Consequences, CDS and protein positions of such a transcript come from its edited
genome-to-cDNA map (TranscriptMapper::_load_mapper, TranscriptMapper.pm lines
136–235). hgvs_transcript (TranscriptVariationAllele.pm lines 1515–1526) numbers it
another way. It adds get_misalignment_offset (lines 1594–1624) to the genomic slice
position and passes the result to _get_cDNA_position (lines 2749–2871). That walk uses
Exon::cdna_start from a mapper that ignores the edits, so it counts the unedited exons.
The offset applies only to NM_ and XM_ transcripts. It sums the length change of each
edit whose start is not after the variant’s edited cdna_start, and a poly(A) tail counts.
An exonic SNV in the CDS is the exception: it prints the edited CDS position.
| Record | Transcript | VEP | Edited map |
|---|---|---|---|
21:45504530 G>A |
NM_030582.4 |
intergenic_variant, c.3382G>A
|
base deleted from the cDNA |
21:45504535 A>C |
NM_030582.4 |
synonymous_variant, c.3378A>C
|
edited CDS base 3378 |
21:45505139 C>CC |
NM_030582.4 |
c.3409-4dup, p.Lys1136GlnfsTer128
|
exonic, edited cDNA 3409 |
21:37223420 T>G |
NM_001331018.1 |
c.*2123+19A>C |
last exon base |
NM_030582.4 loses cDNA 3387–3395 to a 9-base deletion edit. Bases after the deletion
are moved 9 positions upstream in the unedited walk, so an exonic insertion near the next
exon start prints as intronic. On NM_001331018.1 a 1-base insertion and an 18-base tail
move the last base 19 bases past the transcript, where the walk anchors on the last exon.
The behavior is the DUCKVEP_COMPAT_HGVS_RNA_EDIT_UNEDITED_EXONS entry of the
compatibility policy. Without it DuckVEP numbers
HGVSc on the edited cDNA, and a base that an edit removed has no HGVSc.
The cDNA bound of a transcript lengthened by RNA edits
Classification: potential upstream erratum, reproduced on chromosome 21 against the VEP 116 RefSeq cache; mechanism traced in the installed VEP 116.0 source; no upstream acknowledgement. DuckVEP follows the executable.
within_cdna (VariationEffect.pm lines 670–694) accepts a mapped cDNA coordinate only
when it is not after Transcript::length. That length is the sum of the exon lengths,
without the edits. The coordinate comes from the edited mapper. When insertion edits
lengthen the transcript, its last genomic bases map past that bound. They then match no
transcript term, and VEP reports intergenic_variant for the transcript.
| Record | Transcript | VEP consequence | Edited cDNA |
|---|---|---|---|
21:37223420 T>G |
NM_001331018.1 |
intergenic_variant |
last base, after a 1-base insertion |
The behavior is the DUCKVEP_COMPAT_RNA_EDIT_UNEDITED_WITHIN_CDNA entry of the
compatibility policy. Without it the bound is the
edited transcript length, and these bases are 3_prime_UTR_variant.
The reference allele of a BAM-edited RefSeq cache
Classification: VEP 116 configuration behavior, reproduced genome-wide against the VEP 116 RefSeq cache; mechanism traced in the installed VEP 116.0 source. DuckVEP follows the executable.
The RefSeq cache info.txt carries a bam line. Config.pm (lines 563–568) then
enables --use_transcript_ref, and TranscriptVariation::_get_ref_allele
(TranscriptVariation.pm lines 440–468) reads the reference allele of a feature that
maps to cDNA from the edited spliced_seq. HGVSc prints that allele, and
_genomic_shift (TranscriptVariationAllele.pm lines 411–466) rotates it against the
genome when it 3-prime shifts a deletion. When the span crosses one RNA insertion edit
the allele carries the inserted bases.
| Record | Transcript | VEP HGVSc | Genomic-allele HGVSc |
|---|---|---|---|
22:21484050 C>T |
NR_003700.1 |
n.899A>A |
n.899G>A |
22:21484049 CC>C |
NR_003700.1 |
n.899del |
n.900del |
Running VEP with --use_given_ref on a 517-row sample of the genome-wide differences
reproduces the genomic-allele column for every HGVSc row; consequences and HGVSp do
not change. BaseVariationFeatureOverlapAllele::_get_differing_regions compares the
same allele, so a multi-base substitution over an RNA substitution edit locates its
splice-region bases against it (Y:56953154 TC>AA on NM_001394353.1 is
5_prime_UTR_variant only).
The same allele is the coding reference. VariationFeatureOverlap::new
(VariationFeatureOverlap.pm lines 167–184) builds every feature allele from
_get_ref_allele and the uploaded alternate allele, so the codon change applies the
uploaded ALT to the edited base and the uploaded REF is never compared with an
RNA-edited coding base. A substitution edit inside a CDS changes what an uploaded
allele means rather than refusing it.
| Record | Transcript | Edit | VEP consequence | VEP HGVSc | VEP HGVSp |
|---|---|---|---|---|---|
13:30462544 A>G |
NM_001313893.1 |
cDNA 1406 T to C | synonymous_variant |
c.465C>C |
p.Tyr155= |
13:30462544 A>C |
NM_001313893.1 |
cDNA 1406 T to C | stop_gained |
c.465C>G |
p.Tyr155Ter |
13:30462544 A>AT |
NM_001313893.1 |
cDNA 1406 T to C | frameshift_variant&stop_gained |
c.464dup |
The behavior is the DUCKVEP_COMPAT_HGVS_RNA_EDIT_TRANSCRIPT_REF entry of the
compatibility policy. Without it the reference
allele is the genomic one.
The reference allele of an RNA-edited transcript without a cached spliced_seq
Classification: VEP 116 defect, reproduced genome-wide against the VEP 116 RefSeq cache; mechanism traced in the installed VEP 116.0 source.
Sixteen RNA-edited RefSeq transcripts of the VEP 116 cache carry an _rna_edit
attribute and an edited translateable_seq, but no serialised spliced_seq.
Transcript::spliced_seq (Transcript.pm lines 823–880) then rebuilds the
exon sequence, unedited because the cached transcript has edits_enabled unset, and TranscriptVariation::_get_ref_allele
(TranscriptVariation.pm lines 441–470) reads the feature reference allele from it
at the edited cdna_start. Downstream of a deletion or insertion edit the allele is
the raw base next to the variant. TranscriptVariationAllele::codon (lines 870–874)
substitutes that allele into the edited translateable_seq, so the reference codon
is neither the genomic nor the edited one. NM_002537.3 has a 1 bp deletion at raw
cDNA 330:
| Record | Transcript | VEP consequence | VEP HGVSc | VEP HGVSp | Edited-CDS reading |
|---|---|---|---|---|---|
15:64691512 A>G |
NM_002537.3 |
missense_variant |
c.99A>C |
p.Glu33Asp |
synonymous_variant, c.99T>C
|
15:64691503 G>A |
NM_002537.3 |
missense_variant |
c.108A>T |
p.Gln36His |
synonymous_variant, c.108C>T
|
The model builder sets DUCKVEP_TX_RNA_EDIT_UNEDITED_SPLICED_SEQ on these
transcripts. The behavior is the DUCKVEP_COMPAT_RNA_EDIT_UNEDITED_SPLICED_SEQ
entry of the compatibility policy. Without it the
feature reference allele is read from the edited cDNA. HGVSp frameshift and
extension descriptions, which VEP builds from the cached edited peptide, still
differ on these transcripts.
The protein range of a start-lost in-frame deletion
Classification: VEP 116 output convention, reproduced on chromosome 18 against the VEP 116 RefSeq cache; mechanism traced in the installed VEP 116.0 source.
_get_hgvs_peptides 3-prime shifts an in-frame peptide deletion through
_check_peptides_post_var before the start_lost branch of
_get_hgvs_protein_format (TranscriptVariationAllele.pm lines 2140–2150) replaces
the alternate with ?. The printed range is the shifted one.
| Record | Transcript | VEP HGVSp | Unshifted range |
|---|---|---|---|
18:3253249 TGTC>T |
NM_006471.4 |
p.Ser3? |
p.Ser2? |
The behavior is the DUCKVEP_COMPAT_HGVS_START_LOST_DELETION_SHIFT entry of the
compatibility policy.
VEP 116 crashes next to an empty amino_acid_sub
Classification: oracle failure. VEP 116 dies; there is no VEP output to reproduce.
Fifteen RefSeq translations carry an amino_acid_sub attribute with an empty
replacement, which removes an in-frame stop from the peptide. VEP 116 dies with
substr outside of string (VariationEffect.pm near line 1340) on some insertions next
to the CDS 3’ end of these transcripts, for example 18:26856123 on
NM_001364289.2. The genome-wide oracle VCF leaves out nine bases around the CDS 3’
end of those transcripts. DuckVEP withholds their sequences
(unsupported_translation_edit) and reports them unresolved.
Upstream known bugs and DuckVEP
VEP publishes a list of known bugs. Where one changes output inside DuckVEP’s surface, DuckVEP follows the executable, as the compatibility target requires.
| Upstream known bug | DuckVEP |
|---|---|
| Exon/intron boundary variants can get incorrect consequences or HGVS | Followed; witnesses above and in the boundary findings |
| Incomplete terminal codons give unreliable consequences | Followed; partial-codon rules under “Record geometry and consequence terms” |
--hgvs with --no_stats on multiallelic input can give wrong positions |
Not modelled: DuckVEP annotates each ALT as an independent event |
| Multi-allelic alleles are not minimised by default | Followed by duckvep_vcf_events_sql, which reads records as VEP does |
--shift_3prime does not shift non-coding transcripts |
Outside the surface: DuckVEP has no --shift_3prime mode |
Frequency filtering of indels; --fork with --merged HGNC ids |
Outside the surface |
Haplotype sequences, reference curation and flags
Classification: observed Haplosaurus conventions and unresolved grouped metadata.
Core reference translation removes the last complete translated stop, applies legitimate
start methionine and reference peptide edits, and retains internal stops. Haplosaurus
then appends * only for an exact uppercase raw-CDS suffix TAA, TAG or TGA,
regardless of table or frame. Alternate translation has no reference edits or start
override and displays only the first-stop prefix.
For example, table-1 CTGGCCTAA has reference MA* but no-edit alternate LA*;
table-2 ATGGCCTGA has reference MAW* but alternate MAW.
Such protein differences do not prove a causal genomic edit at the differing residue.
The reference-translation evidence
covers these conventions; single-source HGVS remains separate from curated-reference
protein differences.
Raw source_records replay follows literal parser alleles, not decoded singleton
normalization. Haplosaurus skips non-ACGT mutation alleles, so the retained N>NGCC
example does not insert GCC on that route. DuckVEP preserves the skipped contributor
and conditional evidence with zero physical edits; HGVSp is NULL and input incomplete.
A validated REF slot is not a skipped alternate. Within the supported raw alphabet,
N, U and lowercase alternate bases skip; unsupported symbols remain explicit limitations.
Raw GT=1 is not decoded haploidy: Haplosaurus retains two file lanes, and its
undefined second slot replaces the complete REF with an empty ALT. DuckVEP keeps
this input-route distinction explicit rather than inferring a second called allele.
The raw observations and
SQL haplotype tests retain these distinctions.
Haplosaurus groups lanes by final sequence but copies indel/frame flags from the first
lane encountered. Later members do not combine those flags. The
grouped-flag experiment, recorded in
its results ledger, observes the
same 180-base sequence group with has_indel=0 for 11 hash seeds and 1 for 21,
with identical memberships and agreement between repeats. This is order-dependent
metadata, not a biological consensus rule. DuckVEP path flags and upstream group flags
remain distinct; the four full-output disagreements in the
publication audit
are not waived by matching sequences and counts. The
pinned container implementation
is the upstream authority; full grouped-metadata conformance remains unresolved.