ferro-hgvs
A high-performance HGVS variant nomenclature parser and normalizer, written in Rust with Python
bindings. It supports every HGVS coordinate system (g / c / n / r / p / m / o) and
edit type (substitution, deletion, insertion, duplication, inversion, repeat).
Use it as a Python package, a Rust crate, or a command-line tool. API docs are on docs.rs; source is on GitHub.
Start here
- Installation —
pip install ferro-hgvs,cargo install ferro-hgvs, or the Rust crate. - Quickstart — parse a variant, then normalize one.
Guides
- Normalize variants — batches, files, formats, error modes.
- Reference data — what
ferro preparedownloads, and the optional Ensembl / RefSeqGene data. - Benchmarking — timing ferro and comparing it against other HGVS tools.
- CLI reference — every subcommand.
Interpretation
The Interpretation section is a per-line reading of the HGVS recommendations that records exactly how ferro interprets each clause — with runnable example spellings, the form ferro normalizes each input to, and the reasoning behind each decision. It is under construction, one spec page at a time.
Installation
ferro ships as a Python package, a Rust crate, and a standalone command-line tool. Install whichever fits your workflow — they share the same engine.
Python
pip install ferro-hgvs
Pre-built wheels are available for Linux (x86_64, aarch64), macOS (x86_64 and Apple Silicon), and Windows (x86_64) on Python 3.10+.
Command-line tool
cargo install ferro-hgvs
This builds the ferro binary from source and places it on your PATH. It needs a Rust toolchain
(rustup).
Rust library
Add the crate to your project:
[dependencies]
ferro-hgvs = "1"
Verify the install
ferro parse "NM_000088.3:c.459A>G"
import ferro_hgvs
print(ferro_hgvs.parse("NM_000088.3:c.459A>G"))
Parsing needs no reference data. Normalization against real transcripts does — see Reference data.
Quickstart
This walks through parsing a variant, then normalizing one against reference data.
Parse a variant
Parsing validates a description and returns its structure. It needs no reference data.
ferro parse "NM_000088.3:c.459A>G"
import ferro_hgvs
variant = ferro_hgvs.parse("NM_000088.3:c.459A>G")
print(variant.variant_type) # "coding"
print(variant.reference) # "NM_000088.3"
print(str(variant)) # "NM_000088.3:c.459A>G"
Normalize a variant
Normalization rewrites a description into its canonical form. It needs reference sequences, so first prepare a reference (a one-time download — see Reference data):
ferro prepare --output-dir ferro-reference
ferro check --reference ferro-reference
Then normalize:
ferro normalize "NM_000088.3:c.459del" --reference ferro-reference/
import ferro_hgvs
normalizer = ferro_hgvs.Normalizer.from_manifest("ferro-reference/manifest.json")
print(normalizer.normalize("NM_000088.3:c.459del"))
Read the warnings
Normalization sometimes repairs a description in a way the normalized string does not itself
record — separately reported members merged into one delins
(MEMBERS_COALESCED_FROM_REPORTED_FORM), a reference-range insertion payload replaced by the bases
it denotes (INSERTED_SEQUENCE_EXPANDED), or a stated reference base that contradicted the reference
and was accepted anyway (REFSEQ_MISMATCH).
These are reported as warning[CODE]: message on stderr (and in the warnings array under
--format json, the detail column under --format tsv), so a pipeline reading only stdout will
not see them. The message on each warning[CODE]: line says what the code means.
Next steps
- Normalize variants — batches, files, output formats, error modes.
- Reference data — what
ferro preparedownloads and the optional data. - CLI reference — every subcommand.
Normalize variants
Normalization rewrites a description into its canonical form — 3′-shifting, collapsing equivalent spellings, and applying the recommendations’ preferred representation. This guide covers batches, files, output formats, and error modes.
Normalization needs reference sequences. Prepare a reference first (see
Reference data) and pass --reference.
A single variant
ferro normalize "NM_000088.3:c.459del" --reference ferro-reference/
Read from stdin instead:
echo "NC_000001.11:g.12345A>G" | ferro normalize --reference ferro-reference/
A batch from a file
One description per line:
ferro normalize -i variants.txt --reference ferro-reference/ -o normalized.txt
Sort the input by transcript accession (or genomic position) for large batches. ferro caches each resolved transcript, so consecutive variants on the same transcript skip the dominant cost of re-reading it. Sorted input keeps the working set resident and is markedly faster.
Use several workers for large batches:
ferro normalize -i variants.txt --reference ferro-reference/ -j 8
Output formats
-f/--format selects the output:
text(default) — the normalized description, one per line.json— a structured record per input, including awarningsarray.tsv— a table with headerline, input, normalized, changed, status, detail, plus a summary line on stderr. This is the format for answering “which of my variants changed?”
ferro normalize -i variants.txt --reference ferro-reference/ -f tsv > normalized.tsv
Error modes
--error-mode controls how strict ferro is about its input and output:
strict(default) — validates that the input conforms to the recommendations and fails on a violation.lenient— accepts a wider range of inputs and repairs where it can; fails only when it cannot normalize.silent— lenient, but without the diagnostic messages.
Regardless of mode, normalization may repair a description in a way the output string does not
record. Those repairs are reported as warning[CODE]: message on stderr (and in the warnings
array under -f json, the detail column under -f tsv). A pipeline reading only stdout will not
see them, so capture stderr or use -f json/-f tsv. The message on each warning[CODE]: line
says what the code means; use --ignore / --reject to tune specific codes.
Normalize or rederive?
ferro exposes two entry points for canonicalizing an HGVS description, but they are different operations with different guarantees. This guide says what each does, which axes each supports, and when to reach for one over the other.
normalize | rederive | |
|---|---|---|
| what it takes | an HGVS description | an HGVS description |
| what it does | shifts and re-spells the given description in place | throws the spelling away and re-derives from the denoted bases |
| axes | every axis — g/c/n/r/p/m | genomic only — g. (and m. on the two rCRS accessions) |
| confluence | best-effort (rule 3) — converges equivalent inputs | confluent by construction, over one window |
| needs a reference | yes | yes |
normalize — canonicalize a description you were handed
Use normalize when you already have a description and want its canonical form: 3′/5′ shifting
and the recommendations’ preferred representation, applied to the spelling you passed in. It works
on every axis, because a c./r./p. description carries information — reading frame, which
transcript, a protein consequence — that a genomic base window cannot recover.
import ferro_hgvs
nz = ferro_hgvs.Normalizer(reference_json="…")
nz.normalize("NM_000088.3:c.100delA") # -> "NM_000088.3:c.100del"
Converging equivalent inputs to one output is confluence — rule 3 of the normalization
rules, which normalize targets on a best-effort basis: a
handful of known residual defects remain, where two spellings of one variant still normalize to
two strings. Those are tracked bugs, not the intended contract.
rederive — one canonical description per variant
Use rederive when the input’s spelling should carry no weight — when you want the description
for a variant, regardless of how it happened to be written. rederive expresses the variant as
the bases it denotes (a reference/alternate window) and derives a description from those bases
alone, so two spellings of one variant reach one result:
nz.rederive("NC_TEST.1:g.14_15insACGTACGT") # -> "NC_TEST.1:g.7_14dup"
nz.rederive("NC_TEST.1:g.7_14dup") # -> "NC_TEST.1:g.7_14dup"
Because it re-derives from a genomic sequence window, rederive is genomic-only and refuses a
transcript or protein axis. Project onto the axis you need afterwards if required.
rederive returns the alignment-derived form by default. Pass recommended_form=True to route
the result through normalize for ferro’s recommended, reference-anchored form:
nz.rederive("NC_TEST.1:g.11del", recommended_form=True) # 3′-shifted per the recommendations
rederive is the single-call form of the to_sequences → from_sequences round trip described
in Deriving a description from sequences; read that guide for the
mechanics and for the read-dependence cost of a window-local derivation.
Which one?
- You have a description and want it in canonical form on its own axis →
normalize. - You want the same description for a variant no matter how two callers spelled it, on a genomic
axis →
rederive. - You have raw bases (a reference/alternate window) rather than a description →
from_sequences.
Project a variant to another axis
ferro project re-expresses a variant on a chosen output axis — genomic (g), coding (c), non-coding (n), protein (p), or RNA (r) — against a transcript. It is how you move a genomic call onto a transcript, or read the protein consequence of a coding one.
ferro project --axis c --transcript NM_000059.4 --reference <dir> \
'NC_000013.11:g.32316466T>G'
# NC_000013.11(NM_000059.4):c.6T>G
Coding-axis rules apply on the projected axis
The projected c./r. axis is normalized on the transcript, so it applies the coding-axis rules a bare genomic axis cannot — and produces the same string ferro normalize gives for the coding-authored form of the variant, whichever axis you started from.
The clearest case is the coding one-amino-acid delins exception (DNA/delins.md:18): two substitutions one nucleotide apart within a single codon are written as one delins, not as two members.
# BRCA2 codon 2 (c.4_6 = CCT): c.4 C>A and c.6 T>G, with c.5 unchanged.
ferro project --axis c --transcript NM_000059.4 --reference <dir> \
'NC_000013.11:g.[32316464C>A;32316466T>G]'
# NC_000013.11(NM_000059.4):c.4_6delinsACG
Because both members fall in one codon, the coding axis merges them into c.4_6delinsACG — identical to ferro normalize on NM_000059.4:c.[4C>A;6T>G]. The genomic axis has no reading frame, so it keeps the members individual, and a pair that straddles a codon boundary or an exon junction stays split on every axis.
Pairs with deriving from sequences
If you hold bases rather than a description — a window from a BAM, a VCF row — derive the genomic description with from_sequences first (see Deriving a description from sequences), then project it onto the transcript:
# 1. derive the g. description from the bases
# 2. project it onto the transcript
ferro project --axis c --transcript NM_000059.4 --reference <dir> '<the g. description>'
Deriving a description from sequences
If what you have is bases rather than a description — a window out of a BAM, a VCF row, an
aligner’s output — from_sequences derives the description instead of asking you to spell one:
import ferro_hgvs
ferro_hgvs.from_sequences("NC_000001.11", 1000, "AGCGT", "AGT")
# NC_000001.11:g.1002_1003del
use ferro_hgvs::{from_sequences, FromSequencesOptions};
let variant = from_sequences("NC_000001.11", 1000, "AGCGT", "AGT",
&FromSequencesOptions::default())?;
The axis follows the accession: g., or m. on NC_012920 / NC_001807, which HGVS requires the
m. coordinate system for. Every other accession class — transcript, protein, UniProt — is refused
with a message naming it.
It reads no reference sequence. The output is a pure function of its arguments — the
accession, the position, the two sequences and the options — so the same bases give the same
description on any machine, against any reference build, with no hidden input. position is
1-based, and reference is taken on trust: verifying it would need the reference and would make
the provider a hidden input, costing exactly the determinism the function exists to provide.
That is five values, not four. max_grid_cells is not inert — it decides whether an answer is
produced at all — so the “four arguments” this section and the Rust docs both used to claim is
withdrawn. Purity is the property; the count was wrong. (FromSequencesOptions carries a
direction too, but it is not a caller-facing knob: it is #[doc(hidden)], always 3’ on every
shipped path, and exists for the internal differential oracle described under rule 6.)
How to: one canonical description per variant
The job this exists for — a pipeline that aligns reads, post-processes a BAM, and wants one description per variant, decided by the observed bases and nothing else.
1. Get a window. From a pileup, a VCF row, or an aligner’s output: the reference bases over
some interval, the observed bases over the same interval, and the 1-based position of the window’s
first base. If what you hold is a description rather than bases, Normalizer::to_sequences
produces the same window — see Going the other way.
2. Derive, and read the flag.
d = ferro_hgvs.from_sequences_detailed("NC_000001.11", 1000, "AGCGT", "AGT")
d.variant # NC_000001.11:g.1002_1003del
d.placement_bounded_by_window # False — the bases settled the placement, not the window
# The same variant, read through a window that stops at it:
d = ferro_hgvs.from_sequences_detailed("NC_000001.11", 1000, "AGCG", "AG")
d.variant # NC_000001.11:g.1002_1003del — the same answer
d.placement_bounded_by_window # True — the deletion is flush with the window's 3' edge
The two rows are the flag’s whole meaning: same description, different confidence that a wider
read would agree. The first window has a base to spare 3’ of the deletion, so the placement is
settled by the bases; the second ends exactly where the deletion does, so the flag fires even
though the answer is unchanged. This example used to show only the second window while claiming
False, which inverted both the value and its explanation.
Prefer from_sequences_detailed to from_sequences in a pipeline. The flag is the only thing that
tells you the window may have decided the answer, and a bare from_sequences discards it.
3. Store it, or normalize first. What you have is already conformant (rule 1) and deterministic
(rule 4), so it is safe to store and to compare between runs and between machines. It is not
necessarily the recommended form, and it is not guaranteed to agree with a description derived from
a different window — those are rules 2 and 3, and both need the reference. If you want them, run
normalize on the result. That is the whole offer: derive now, normalize later, or never.
4. If the flag is set and you need the reference-anchored answer, either re-derive from a wider
window or run normalize. Do not treat a flagged result as wrong — see below.
How wide should the window be?
Wide enough to contain the whole interval over which the change could legally be placed. That is the exact condition, and it is what the cost section pins.
Operationally: pad on both sides by at least the length of the longest ambiguous run — a
homopolymer or tandem repeat — the variant might sit in. An insertion or duplication needs one
further base 5’, since that is where a 5’-most insertion anchors. to_sequences pads by 128 on
each side, so its window is span + 2 * pad; that covers ordinary repeats comfortably, and is
worth raising if you work with long tracts.
Two things follow that are easy to get backwards:
- A window that cuts the interval does not give a wrong answer, it gives a bounded one. The description still denotes the same bases and carries the same canonical SPDI; it is simply placed at the window’s edge rather than the run’s. What you lose is the preferred spelling, not correctness.
placement_bounded_by_windowis conservative on purpose. It reports “this could have moved”, not “this is wrong” — a window flush with a tract is flagged and is nonetheless the same answer a whole-sequence derivation gives. Distinguishing the two needs the reference, which this function does not read.
The refusals, and what to do about each
The policy is to refuse rather than quietly answer with a weaker rule, so each of these is actionable rather than fatal:
| refusal | why | what to do |
|---|---|---|
| the accession is not genomic | this surface emits g. (and m. on the two rCRS mitochondrial accessions) and nothing else; NM_…:g.9_10del would be well-formed and denote nothing | pass the genomic accession, and project afterwards if you need a transcript axis |
| an inserted payload sits against the window’s 5’ edge | HGVS writes an insertion between two positions, so it would have to anchor at position - 1 — outside the window | re-fetch with more 5’ flank. How much is direction-dependent, so widen rather than adding a fixed one base |
the alignment grid exceeds max_grid_cells | a cost bound — a cell is roughly 18 bytes, and the default admits a window of about 4 096 bases | raise max_grid_cells if you have the memory, or narrow the window. Real structural alleles are far past any sane budget: LRG_542:g.[101177_102434delins36;107248_127198delins21] spans 26 kb |
a symbol outside the IUPAC-IUBMB set, a zero position, an empty reference | the input cannot denote anything | fix the input. X and - are refused deliberately (standards.md:39) — they are alignment symbols, not bases |
U in either sequence | this surface’s axis is DNA; a g./m. description naming U would be well-formed and wrong | pass T, and project onto an r. axis afterwards if you need RNA |
Case is not a refusal: a soft-masked (lower-case) window derives exactly as its upper-case twin does, and both sequences are folded before anything reads them.
Which rules it delivers
This is the whole design, and it falls straight out of the four normalization rules:
| rules delivered | force | needs | |
|---|---|---|---|
from_sequences | 1 (conformant), 4 (deterministic) | both absolute | the caller’s four arguments |
normalize, afterwards | 2 (recommended form), 3 (confluent) | both best effort | the reference |
Rules 1 and 4 are the two the normalization rules call always achievable, so a function that has only the caller’s arguments can still deliver both in full. Rules 2 and 3 need the reference: rule 2’s scope names the 3’ rule explicitly, and a reference-anchored shift is precisely what a window-local function cannot perform.
So an output may be 3’-shiftable further than the window allowed, and that is not a defect.
Run normalize afterwards if you want it — Normalizer::from_sequences(..., recommended_form = true)
does both in one call. (Normalizer::rederive is the one-call path when you have a
description rather than a sequence pair — see Normalize or rederive?.)
Run it unless you have a reason not to. In an internal sweep of many synthetic shapes, normalize
moved a meaningful share of derived descriptions — in three classes: repeat notation (g.27_28insAAA → g.27A[4]),
reference-anchored member re-derivation, and an inversion spread across several members
(g.[17C>A;19T>A;21T>G] → g.17_21inv, which the alignment DAG partitions before anything can see
it, since it minimises edit distance and an inversion is not in that cost model). All three are
rule 2 and rule 3 — the recommended form and agreement with a wider view — which is exactly the
pair this design assigns to normalize. Rules 1 and 4 hold either way.
That movement rate is a qualitative claim about a narrow sweep, not a benchmark: one synthetic contig, a handful of shape generators, genomic axis only, from a one-off measurement with no committed harness — so it is deliberately not quoted here as a number.
What you get for it
Two spellings of one variant, over one window, reach one description — because the derivation
never sees a spelling. Over the cis confluence corpus that is 5 636 classes with no divergence —
its genomic half, and all of what this surface can reach: the corpus is generated --axes g,c
at 11 272 classes, and the 5 636 c. classes are drawn against NM_TEST.1, which the g.-only
gate refuses, so not one of them enters the comparison. The exclusion is structural and is asserted
as such in tests/it/from_sequences_corpus.rs.
Over the nine externally-reported confluence pairs (#1419 / #1420 / #1421) it is nine of nine, in
both shuffle directions — where normalize, handed the same pairs as descriptions, currently
converges none of them.
Read “over one window” as load-bearing, not as hedging. It is what makes the claim arithmetic:
to_sequences computes its window from the denoted bases, so both spellings of a variant get
byte-identical (position, reference, alternate) triples, and a pure function of that triple can
only give one answer. It is also the exact limit — the claim is confluence over spellings, and
rule 3’s scope is confluence over inputs. Two reads covering one variant differently are two
inputs, and the section below is what happens then.
Read the comparison with normalize as two functions answering different questions rather than as
one beating the other. A caller who has a description and wants it normalized still needs
normalize to converge; the pairs are simply the case where being handed a description is itself
the problem.
The cost, stated plainly
A window-local derivation is read-dependent. Nothing may shift outside the bases you supplied,
so a read that stops partway through an ambiguous run places the change at the end of the read
rather than the end of the run. One deletion from the AAAA at 12–15 of a test contig, seen
through three windows:
| window | reference | alternate | derived | placement_bounded_by_window |
|---|---|---|---|---|
| 10–16 | GCAAAAG | GCAAAG | g.15del | false |
| 12–15 | AAAA | AAA | g.15del | true |
| 10–14 | GCAAA | GCAA | g.14del | true |
None of these is wrong. All three carry the same canonical SPDI (14:A:) and denote the same
bases — g.14del is a conformant description of exactly the same variant, it is simply not the
3’-most spelling. So what a truncating read costs you is the recommended form (rule 2) and
agreement with a wider read (rule 3): precisely the two rules this function never claimed,
because both need the reference. Rules 1 and 4 hold in every row. normalize closes the gap,
shifting to 15 regardless of what the read covered.
The boundary is exact, and pinned in tests/it/from_sequences_window_condition.rs:
Two windows that both contain the whole interval over which the change can be placed derive the same description. A window that cuts that interval places the change at its own edge instead.
Note that for an insertion or duplication that interval already reaches one base 5’ of the tract, since that is where a 5’-most insertion anchors — so “contains the interval” subsumes the flank requirement rather than needing a separate clause.
placement_bounded_by_window is a “could move” flag, not a “is wrong” flag, and it is
conservative in that direction on purpose. Row 2 is flagged and already correct; row 3 is flagged
and merely non-preferred. Telling those apart requires knowing what lies outside the window — the
reference — which this function does not read, so it reports the uncertainty rather than resolving
it. Treat a true as “re-derive from a wider window, or run normalize, if you need a
reference-anchored answer”.
Two refusals are worth knowing about in advance, both deliberate — the policy is to refuse rather than degrade to a weaker rule:
-
An alignment grid over budget. The default admits a window of about 4 096 bases; a cell costs roughly 18 bytes.
max_grid_cellsis the knob, and the refusal names it. Real structural alleles are well past it —LRG_542:g.[101177_102434delins36;107248_127198delins21]spans 26 kb.Do not read the multi-member census as a measure of this refusal. Of the 592 multi-member alleles harvested from ClinVar, CMRG and Paraphase, 443 windows were captured and 59 derive — but splitting the 384 refusals by message gives 384 accession refusals and 0 grid refusals, every one of them an
NM_transcript hitting theg.-only gate above. The structural rows are filtered out of the capture before the grid is ever consulted. That figure was quoted here as evidence for the grid bound and is not. -
An inserted payload against the window’s 5’ edge. HGVS writes an insertion between two positions, so such a payload can only be anchored at
position - 1— outside the window, and non-existent whenpositionis 1. Supply more 5’ flank;Normalizer::to_sequencespads both sides for you.
Going the other way
Normalizer::to_sequences is the inverse, so a caller who already holds descriptions needs no new
plumbing to reach the derivation:
pair = normalizer.to_sequences(variant, pad=128)
derived = normalizer.from_sequences(pair.accession, pair.position, pair.reference, pair.alternate)
The pad is not decoration: dup typing reads the reference bases immediately 5’ of an insertion
point (DNA/duplication.md:18), so a member flush with the window’s 5’ edge comes back as an ins
instead of a dup. It is applied to both sides — the window is span + 2 * pad — and the
bases come back upper-cased, so a soft-masked region does not produce a mixed-case pair.
Bounding a derivation to a region it must not leave
When a variant must stay inside a target region, an amplicon or a tiling window, anchor every raw pair to that region first. The derivation is a pure function of the window it is handed, so one window gives one answer:
pair = ferro_hgvs.SequencePair("chr1", 10, "GCAAAAG", "GCAAAG") # straight from a BAM
str(pair.derive().variant) # 'chr1:g.15del' — rolls to the run's end
bounded = pair.trim_to(end=14) # hold it at 14
str(bounded.derive().variant) # 'chr1:g.14del'
trim_to needs no reference and can only narrow. To widen, use Normalizer::reanchor, which
reads the padding bases from the reference:
anchored = normalizer.reanchor(pair, start=5, end=25) # 5' widened, 3' widened
str(anchored.derive().variant) # 'chr1:g.15del'
both = normalizer.reanchor(pair, start=5, end=14) # 5' widened, 3' narrowed
str(both.derive().variant) # 'chr1:g.14del'
reanchor moves a window’s edges; it does not relocate the window. Each edge may go outwards
(padded from the reference) or inwards (trimmed), in any combination — but the window you ask for
must overlap the pair’s own, and the overlap must still hold the bases the two sequences
disagree on. reanchor(pair, start=1000, end=1200) on the pair above is refused, not fetched: the
changed bases exist only in the pair, so there is nothing to carry to a region the pair does not
cover. So “anchor every raw pair to my target region” works exactly when every raw pair overlaps
that region — which is the case the feature is for, and is worth checking rather than assuming.
Prefer pair.derive() to re-spreading the four fields: a pair returned by trim_to or
reanchor carries its own position, and pairing a pre-trim position with post-trim bases is
the mistake the method exists to prevent.
Both take 1-based inclusive bounds, and None leaves that edge where it is.
Both refuse rather than clamp, in every case: a bound that would cut a base the two sequences
disagree on (naming the coordinate), a bound that would empty the reference, start past end,
and — for reanchor — a bound outside the sequence, or a window disjoint from the pair’s. A window
silently pulled back to the contig would hide a bug upstream of the call.
Case is not a disagreement: a soft-masked reference against an upper-case alternate trims normally.
trim_to fetches nothing and so leaves your bases as you passed them; reanchor reads flank from
the provider and therefore returns the whole window upper-cased, exactly as to_sequences
does, rather than splicing provider bases onto caller bases and handing back a mixed-case pair.
Reach for this when the bound is a requirement, not to make heterogeneous inputs agree. For that,
Normalizer::from_sequences(..., recommended_form = true)and ato_sequencesround trip both already converge, and both reach the reference-anchored placement — which can shift as far as the sequence allows rather than as far as your window allows. Anchoring to a window that cuts an ambiguous run makes every caller using that window agree with each other and disagree with the reference. That is a legitimate contract and a poor default;placement_bounded_by_windowreports it either way.
Reference data
Parsing needs no reference data. Normalization does — it must read the transcript and genome
sequences a description refers to. ferro prepare downloads and assembles them into a reference
directory.
Prepare a reference
ferro prepare --output-dir ferro-reference
This downloads RefSeq transcripts, genome FASTAs, and cdot metadata, and writes them under
ferro-reference/. A bare prepare builds a RefSeq-only reference — accessions NM_ / NR_ /
NP_ / NG_.
Verify it
ferro check --reference ferro-reference
Optionally pre-build the on-disk cdot cache as a setup step, so the one-time cache build does not slow the start of a real (or timed) run:
ferro check --reference ferro-reference --build-cache
Optional data
Two opt-in flags provision more than RefSeq. Pass them at prepare time; both are incremental, so
re-running prepare over an existing reference adds the requested data and preserves what is already
there.
Ensembl support (accessions ENST / ENSG / ENSP) — downloads Ensembl cdot metadata and cDNA
FASTAs (~1 GB+); off by default. Without it, an Ensembl input reports “Reference not found”:
ferro prepare --output-dir ferro-reference --ensembl
RefSeqGene placements — derives version-independent NG_ placements and the
NG_→transcript-version map, required to resolve legacy gene-symbol selectors (NG_(GENE):c.…) and
bare-NG_ hosted lookups:
ferro prepare --output-dir ferro-reference \
--derive-ng-placements path/to/ng_accessions.txt
A fully-provisioned reference combines both in one run:
ferro prepare --output-dir ferro-reference --ensembl \
--derive-ng-placements path/to/ng_accessions.txt
Genomic-parent placements
ferro prepare also downloads genomic-parent placement data used to project transcript-coordinate variants into a genomic parent’s own frame (#480):
- RefSeqGene→genome alignments (
GCF_*_refseqgene_alignments.gff3, from NCBI’s archivedalignments/ARCHIVE/all/— the feed stopped updating in 2024; latest GRCh38 is the RS-109/p13 snapshot, valid for p14 since primaryNC_accessions are unchanged) → manifestrefseqgene_alignments; parsed byMultiFastaProviderinto per-NG_GenomicPlacement. The corresponding GRCh37 snapshot (GCF_000001405.25_105.*) → manifestrefseqgene_alignments_grch37, merged with the GRCh38 file so anNG_resolves to its build-appropriate placement (#653/#713). - LRG XML genomic mapping → per-
LRG_GenomicPlacement(parsed on demand).
ReferenceProvider::genomic_placement exposes these; VariantProjector::project_to_genomic composes the NM_→NC_ (cdot) step with the NC_→NG_/LRG_ transform to re-express coordinates in the parent frame. With no placement it declines rather than emit chromosome coordinates under the parent accession. That transform is affine only when the placement carries no alignment gaps — an LRG record lists <diff> elements alongside its <mapping_span>, and since #1833 the indel ones are carried on the placement and honoured, so 46 of the prepared reference’s 1294 LRG records map through a gap list rather than a pure offset (#1499).
Using it
Point any normalizing command at the directory:
ferro normalize -i variants.txt --reference ferro-reference/
To guard against a reference that has drifted on disk, add --strict-reference, which hard-fails if
the reference’s content no longer matches its recorded identity (the default warns and proceeds).
Faster reads: the 2-bit sequence store
Normalization has to read reference bases constantly. Read straight from the FASTA text, every access
pays to strip newlines and upper-case the bytes — which profiling shows dominates the time ferro normalize spends reading the reference. ferro prepare avoids that by doing the work once:
alongside the usual files it writes a sequence_store.pac sidecar — the reference sequences decoded
and packed two bits per base (the same idea as bwa’s .pac). At run time normalize and project
memory-map that file and read bases directly, so the per-access decode disappears, with
byte-for-byte identical output. In our own runs — roughly 500,000 ClinVar variants, single-threaded,
with a warm page cache — this cut wall-clock time by about a third. Treat that as indicative rather than
a benchmark: the speedup depends on your corpus, CPU, and storage, so measure it on your own workload
(time the same ferro normalize run with and without a sequence_store.pac beside the reference).
The sidecar is written as part of the normal prepare step — there is no separate command:
# Writes ferro-reference/sequence_store.pac alongside the other files:
ferro prepare --output-dir ferro-reference
# --force rebuilds it even when a matching one is already present:
ferro prepare --output-dir ferro-reference --force
There is nothing to turn on:
- It is built automatically by
ferro prepare, and rebuilt when you re-prepare.--forcerebuilds it even if a matching one is already present; without--forcea matching sidecar is kept and the one-time pack skipped. - It is loaded automatically by
normalizeandprojectwhenever asequence_store.pacsits beside the reference. The one-time build cost is paid only byprepare, never by an ordinary run. - It fails safe. If the sidecar is absent, was built for a different reference, or is unreadable,
ferro silently falls back to reading the FASTA text — the result is the same either way. Editing a
reference FASTA in place changes its size, modification time, or contents, which the sidecar’s
fingerprint detects (it samples the source bytes, so a same-size, same-timestamp edit is caught too);
the stale store is then ignored and rebuilt on your next
ferro prepare— no--forceneeded. The store is a speed-up, never a source of different answers.
To point at a store in a non-default location — or to force one to be built on first use — set
FERRO_SEQUENCE_STORE to its path:
FERRO_SEQUENCE_STORE=/path/to/sequence_store.pac \
ferro normalize -i variants.txt --reference ferro-reference/
Error Handling
ferro-hgvs provides configurable error handling with three modes:
| Mode | Behavior |
|---|---|
strict | Reject non-conformant input (default) |
lenient | Auto-correct with warnings |
silent | Auto-correct silently |
# Use lenient mode to auto-correct common issues
ferro parse --error-mode lenient "p.val600glu" # Corrects to p.Val600Glu
# Ignore specific warnings
ferro parse --ignore W1001,W2001 "p.val600glu"
# Get help on any error/warning code
ferro explain W1001
ferro explain --list
Configuration File
Create .ferro.toml in your project directory:
[error-handling]
mode = "lenient"
ignore = ["W1001", "W2001"] # Silently correct these
reject = ["W3003"] # Always reject these
Comparing normalization rules (FERRO_PARTITION)
Unstable.
FERRO_PARTITIONis an evaluation switch, not a supported feature. It is not covered by semantic versioning, its values may change, and it is expected to be removed once the normalization rule is settled. Do not depend on it in production pipelines.
Normalization cuts each changed region of sequence into allele members. FERRO_PARTITION selects which rule does that cutting, so a candidate rule can be measured against the shipped one over a real corpus before anything changes for users.
| Value | Rule |
|---|---|
unset / empty / canonical-coalesced | The shipped rule, and what every normal invocation uses. canonical, plus the delins.md:44-47 merge: a split whose payload realigns as one block is re-spelled as a single delins. Applied after the downstream passes rather than at partition time, so it cuts identically to canonical and differs only in what survives. |
live | The rule shipped up to and including v0.14.0: a single-gap alignment search plus two narrow escapes. No longer the default — set it by name to reproduce pre-flip output. |
shadow | Cut only at alignment steps common to every minimal alignment. |
canonical | The member-count-minimal minimal alignment, without the merge above. |
With the variable unset — or set to the empty string — output is byte-identical to a build with no switch at all.
The default moved in v0.15.0, from
livetocanonical-coalesced. If you are comparing against a stored corpus normalized by v0.14.0 or earlier, the like-for-like arm is nowFERRO_PARTITION=live, not the unset one. The change is disclosed as a representation change inCHANGELOG.md; the ruling behind it is that a description is derived from the resulting sequence rather than preserved from the input’s spelling, whichpartition_block—live’s cutter — cannot do.
Running an A/B comparison
Run the same input twice and diff the normalized descriptions. In tsv format the columns are line, input, normalized, changed, status, detail, so column 3 is the normalized string:
# 1. a baseline arm, named explicitly. `live` is the pre-v0.15.0 rule, which is
# the one to use when the question is "what moved for my stored corpus";
# name the arm rather than relying on unset, which is now the NEW rule.
FERRO_PARTITION=live ferro normalize --input variants.txt --reference /path/to/reference \
--format tsv --error-mode lenient -j 10 > shipped.tsv
# 2. the candidate rule — here, the shipped default
ferro normalize --input variants.txt --reference /path/to/reference \
--format tsv --error-mode lenient -j 10 > candidate.tsv
# 3. what moved
diff <(cut -f3 shipped.tsv) <(cut -f3 candidate.tsv) | head
# 4. how many moved, counting only rows that succeeded on both sides
# (columns 3/5 are `normalized`/`status`; a row that failed carries no
# normalized string, so comparing column 3 alone would score two different
# failures as identical)
paste <(cut -f3,5 shipped.tsv) <(cut -f3,5 candidate.tsv) \
| awk -F'\t' '$2 == "ok" && $4 == "ok" && $1 != $3' | wc -l
# and, separately, rows whose status itself changed
paste <(cut -f5 shipped.tsv) <(cut -f5 candidate.tsv) | awk -F'\t' '$1 != $2' | wc -l
This works on a stock release build — the switch is not behind a build feature, so no special binary or wheel is needed.
Two traps worth knowing
A misspelled value is refused, loudly. FERRO_PARTITION=canonicl makes ferro exit with an error before it reads any input, naming the value you gave and the arms this build has:
FERRO_PARTITION="canonicl" is not a partitioner this build has. This build's arms
are: live, shadow, canonical, canonical-coalesced. Refusing rather than falling
back to `live`, because a bake-off served the shipped rule under a candidate's
name reports that the candidate changes nothing.
Naming this build’s arms is the point: a value that exists on some other branch, or that used to exist, is reported as absent here rather than quietly answered as live.
The refusal comes from the CLI, not from the normalizer. Up to and including v0.14.0 it was a panic raised deep inside normalization, which meant a development-only switch could abort any process — a long-running service, or a Python caller, across the FFI boundary — that merely happened to have the variable set. A release build of the library now falls safe to live for a value that names no arm and keeps the refusal for its caller to report. Every binary and every example in this repository reports it — ferro, ferro-web, ferro-benchmark, both spec generators, and all 23 declared examples, which are the bake-off harnesses, the window extractors and the artifact generators — and that is pinned by a test whose denominator is Cargo.toml’s own [[bin]] and [[example]] tables rather than by this sentence, so a target added later cannot quietly skip it. The one class of cargo target still outside that obligation is [[bench]]: criterion’s criterion_main! generates the main, so there is no hand-written entry point to put the call in. If you embed ferro as a library and run bake-offs through it, read ferro_hgvs::normalize::partition_switch_startup_error() at startup and do the same.
Builds up to and including v0.13.1 fell back to live instead, and produced a clean, empty diff that read as “the candidate changes nothing”. The fallback emitted a warning through the log facade, but the ferro CLI installs no logger, so that warning reached no stream and RUST_LOG could not surface it — there was no signal at all. If you are on an older build, treat every empty diff as unproven.
A positive control on an input known to differ is still worth running, because it catches the other way a comparison can be vacuous: a variable that never reached the process at all (a lost export, a sudo that scrubbed the environment, a container that did not forward it). That case is indistinguishable from unset, which is legitimately live, so no amount of validation inside ferro can catch it. On your own corpus a zero remains ambiguous between “the switch is not taking effect” and “this corpus has no affected variants”.
These three inputs run against the built-in test data, so they need no --reference and no prepared reference directory. Between them they separate all four arms — every pair of arms disagrees on at least one row, so the control tells you which arm you got, not merely that something changed:
printf 'NM_001234.1:c.[5_6insAC;9del]\nNM_001234.1:c.2_6delinsGA\nNM_001234.1:c.4_10delinsAC\n' > control.txt
for arm in live shadow canonical canonical-coalesced; do
echo "== $arm"
if FERRO_PARTITION=$arm ferro normalize --input control.txt --format tsv \
--error-mode lenient > "control.$arm.tsv"; then
tail -n +2 "control.$arm.tsv" | cut -f3
else
echo " FAILED (exit $?) -- ferro did not produce this arm's column"
fi
done
The status check is not boilerplate. An unrecognised arm now aborts the process, and a pipeline reports the exit status of its last command — so ferro … | tail | cut reports cut’s success and the loop prints an empty column under the arm’s heading. An empty column and an aborted run look identical, which is the same “a broken measurement reads as a result” failure this whole section is about. Redirecting first and testing the status makes the abort say so.
| input | live | shadow | canonical | canonical-coalesced (= unset) |
|---|---|---|---|---|
c.[5_6insAC;9del] | c.[5_6insA;7_9delinsCAA] | c.[5_6insAC;11del] | c.[5_6insAC;11del] | c.[5_6insAC;11del] |
c.2_6delinsGA | c.2_6delinsGA | c.2_6delinsGA | c.[2del;4_6delinsA] | c.2_6delinsGA |
c.4_10delinsAC | c.4_10delinsAC | c.4_10delinsAC | c.[4C>A;6_10del] | c.[4C>A;6_10del] |
All six pairs of arms are separated, which is what makes this tell you which arm you got rather than merely that something changed: row 1 separates live from the other three, row 2 isolates canonical (it is the only arm that does not merge that block), and row 3 separates {live, shadow} from {canonical, canonical-coalesced}. Rows 1 and 3 together separate live from canonical-coalesced; row 3 alone separates shadow from it.
Because canonical-coalesced is now the default, running with the variable unset must reproduce that last column exactly. If it reproduces the live column instead, you are on a pre-v0.15.0 build.
If the arm you selected does not produce its column above, the variable is not reaching ferro and any comparison you run is meaningless. Only once the control behaves is a zero on your own corpus informative.
This control has now been wrong twice, so check it rather than trusting it. The first version offered
c.[2del;9del],c.[3del;9del]andc.[2del;9dup]and claimedcanonicalanswersc.[2del;33del]; on those three inputs no arm differed fromliveat all. Its replacement —c.[5_6insAC;9del],c.[2del;5del],c.[2del;9del]— was also wrong in four of its twelve cells when re-measured:liverow 1 readc.[5_6insA;7_9delinsCAA]and notc.6_9delinsACCAA, and rows 2 and 3 separated nothing, every arm answeringc.[2del;6del]andc.[2del;11del]. Both failures share one cause:NM_001234.1is a G homopolymer fromc.9toc.33, so deletion pairs inside it shuffle to a common form on every arm instead of partitioning differently. A discriminating row has to be adelinswhose payload re-aligns, which is what the three above are. The table is measured, not composed.
From Python, it must be set before the first normalization. The value is read once per process and cached, so:
import os
os.environ["FERRO_PARTITION"] = "canonical" # must precede the first normalize call
import ferro_hgvs
Setting it after any variant has been normalized silently does nothing, and it cannot be changed within a running process. Comparing two rules therefore means two separate processes (or two CLI runs, as above), not two calls in one script.
Benchmarking
ferro ships a benchmark harness for measuring its own throughput and comparing it against other HGVS
tools (mutalyzer, biocommons/hgvs, hgvs-rs). This guide covers running it; for the published figures
and full method, see
docs/BENCHMARK_RUNBOOK.md.
Timing ferro alone
The main ferro binary needs no special build. Prepare a reference (see
Reference data), then time a normalize run:
ferro prepare --output-dir data/ferro
ferro check --reference data/ferro
ferro normalize -i patterns.txt --reference data/ferro -j 8 -t timing.json
-t/--timing writes timing information to JSON. Two things matter for a fair number:
- Warm the cache first.
ferro check --reference data/ferro --build-cachebuilds the on-disk cdot cache as a setup step, so the one-time build does not land inside the timed region. - Sort the input by transcript accession (or genomic position). ferro caches each resolved transcript, so sorted input keeps the working set resident and is markedly faster on large batches.
Comparing against other tools
Tool comparison uses the separate ferro-benchmark binary, built with the benchmark feature:
cargo build --release --features benchmark
ferro-benchmark prepares each tool’s reference data (reusing ferro’s for transcripts), runs
parse/normalize, and compares results:
# Prepare another tool against the same transcript data
ferro-benchmark prepare mutalyzer --ferro-reference data/ferro --output-dir data/mutalyzer
# Normalize a shared pattern set with each tool
ferro-benchmark normalize mutalyzer -i patterns.txt -o mutalyzer.json \
--mutalyzer-settings data/mutalyzer/mutalyzer_settings.conf
# Compare two tools' outputs
ferro-benchmark compare results normalize ferro.json mutalyzer.json -o comparison.json
Supported tool values: ferro, mutalyzer, biocommons, hgvs-rs, and all.
The Python-based tools (mutalyzer, biocommons/hgvs, seqrepo) run in a pixi
environment defined by the repository’s pixi.toml; run pixi shell to activate it before
preparing them.
Reading the numbers honestly
All tools are benchmarked offline — reference data preloaded locally, network disabled — so the
figures measure parse/normalize compute, not per-variant I/O. Out of the box the other tools resolve
each variant against a remote service (a network round-trip per variant), which is far slower than
any local figure. That local, offline setup is exactly what ferro prepare builds. When you quote a
benchmark, say which configuration it was measured in, and confirm the run succeeded and produced
correct output before trusting a timing — a crashed run still prints a wall-clock line.
Normalization rules
ferro’s normalizer follows four rules about its output, and three about how it handles the gaps.
The output contract
-
Conformant. Output follows the HGVS recommendations. Absolute — never traded. Scope: the
syntax.yamlgrammar, plus every prohibition, read from prose force rather than keyword casing — “not allowed”, “not correct”, “can not be used”, “by definition”, theclass="invalid"markup, and the setchecklist.mdenumerates. -
Recommended form. Where the spec prefers among conformant forms, ferro produces it. Best effort. Scope: “recommended”, “preferred”, lowercase “should”, the 3’ rule. A preference clause outranks maintainer judgment, but not rule 3: where it is not evaluable on what a normalizer holds, rule 3 governs.
-
Confluent. Inputs denoting one variant produce one output. Best effort. Every rule — rule 2 included — is evaluated over the resulting sequence, never over the input’s spelling. Reference context counts as sequence: transcript model, exon boundaries, reading frame, strand and topology are functions of the accession, not of the description.
-
Deterministic. Same input, same output. Absolute. Note that 4 does not imply 3 — a deterministic normalizer can be arbitrarily non-confluent.
The procedure
-
Where the spec is silent, ambiguous, or self-contradictory: the issue is filed upstream first and cited, and only then does ferro ship a provisional choice.
- Self-contradictory — two clauses that cannot both hold — is a defect. Every conforming tool must pick a side and none of them can be right, so filing is a bug report and is not optional.
- Silent is merely incomplete. Ferro decides under rule 6 and violates nothing; filing is a feature request, worth making but never a reason to hold a release.
-
Among multiple conformant forms: the maintainers choose. There are no user options for normalization form. Error mode is an orthogonal axis and stays available. The 3’/5’ shuffle direction was the one exception, and it is now removed from the public surface rather than excused: it is not orthogonal — it selects the frame every rule is evaluated in — so it was a user option for normalization form sitting inside this rule. ferro shifts 3’, the only direction the HGVS recommendations describe, and no CLI flag, Python keyword or service config key selects otherwise. The 5’ arm survives internally as a differential oracle over ferro’s own test suite; an instrument is not a user option, and rules 2 and 3 are now claimed once rather than per direction.
-
Disclosure. Any change to these rules, and any different choice made under 5 or 6, is disclosed: in the changelog before v1, by a major version bump after. Output that violates rules 1-4 is a bug, not a disclosure.
Why 2 and 3 are best effort, and 1 and 4 are not
Rules 1 and 4 are always achievable. Conformance is checkable against the spec text, and determinism is a property of ferro’s own code; nothing external can prevent us honouring them.
Rules 2 and 3 depend on the spec determining an answer, and sometimes it does not:
- No preference exists. The spec ranks substitution, deletion, inversion, duplication and
insertion, but says nothing about competing
delinsforms. - Two preferences disagree.
general.mdranks duplication above insertion;DNA/inversion.mdprefers an insertion for inverted copies. No single output satisfies both. - The same clause has two versions.
general.md’s current text and its forthcoming NOTE give opposite answers for variants separated by one nucleotide. - The variant’s decomposition is not recoverable. Recovering one means choosing an alignment,
and the spec does not say which, so there is no derivable form to converge on. Block length does
not settle it: an equal-length block can still carry a balanced del+ins pair, so its column
correspondence need not be unique —
CAG -> AGAis equal length with edit distance 2, not the position-wise 3. What decides whether a reference base is unchanged is whether every minimal alignment matches it, so the property to key on is edit distance against block length, never length alone. Seerulings[unchanged-is-read-over-every-minimal-alignment]. - The preference keys on information a normalizer does not hold. A “frequently occurring
variant” (
RNA/delins.md:41); a repeat “variable in the population” (RNA/repeated.md:33,protein/repeated.md:22); two variants “reported (or might occur) individually” (DNA/delins.md:83). The spec determines an answer; ferro cannot see what it keys on.
“Best effort” is bounded by the spec’s determinacy and by what a normalizer’s inputs can decide — not by ferro’s implementation quality. A failure of rule 2 or 3 caused by ferro’s code is a bug under rule 7; one caused by the spec not determining an answer triggers rule 5; one caused by a clause keying on provenance or population data is a declared deviation, and a permanent one — no upstream answer can put that information into a normalizer’s hands.
Permanent is the only thing the last case adds, and it does not exempt the question from rule
5. The grain matters, because the two grains give opposite answers. Read on its own, such a
clause is not silent, ambiguous or self-contradictory — it determines an answer perfectly well, and
ferro is the one that cannot see what the answer keys on. Read against the spec’s own
re-derivation mandate — general.md:157-160, which has a protein description derived by
comparing the variant and reference protein sequences and says knowledge of the underlying DNA
change “should not be used”, with general.md:13 extending the method to RNA — it is one half of a
pair that cannot both hold. That is rule 5’s self-contradiction limb exactly, and the ruling ledger
says so in those words. What the carve-out states is that rule 5’s escalation cannot end
the matter here: a choice made under rule 5 is provisional pending an upstream ruling, and no
ruling upstream makes provenance visible, so the deviation outlives the filing.
Where it is recorded is worth stating precisely, because the obvious pointer does not resolve.
canonical-form-choice-when-both-legal has no deviates_from field: it carries all four
clauses in its rationale as the recorded counter-evidence to re-derivation, opens that paragraph
with “The spec contradicts itself here”, and adopts re-derivation over them deliberately. The one
of the four that is recorded as a deviation is DNA/delins.md:83, through the
deviates_from: ["docs/recommendations/DNA/delins.md:79-84"] on
separation-is-a-property-of-the-spelling-not-of-the-variant — the record whose ruling the rule 3
example below turns on.
A worked example of reading force from prose
DNA/duplication.md says a variant that can be described as a duplication must be — but the
“must” is scoped by the preceding clause, which defines when a duplication can be used at all:
only when the additional copy is directly 3’-flanking the original. So the rule ranks the label
for one span; it does not require that a partition be chosen so as to produce a duplication.
Reading the force without the scope inverts the rule.
What rule 3 excludes
“Never over the input’s spelling” is narrower than it sounds. Most of a description is context.
| Carried by the description | Treatment |
|---|---|
Accession, axis (g./c./n.), version | Used — it is the reference context |
| Which bases end up different | Used — this is the variant |
Cis against trans ([a;b] against [a];[b]) | Used — different variants, not two spellings of one |
Type label (dup against ins, inv against delins) | Re-derived, then ranked by general.md |
| How the edit set is cut into members | Excluded — a property of who wrote the string |
| Which copy in a run of identical residues a member names | Excluded — the 3’ rule assigns this “arbitrarily” (general.md:41) |
| Repeat unit and phase, where several are equivalent | Excluded |
So three rows read Excluded, and they are three spellings of the one thing the input does not get to decide: the partition, the run-position choice that feeds it, and — where several unit-and-phase pairs describe one tract equally well — which pair a repeat member names.
NC_000001.11:g.1001002_1001016 reads ATGAGGGGCCACTGT: a GGGG run at 1001006-1001009, a CC
run at 1001010-1001011, a lone C at 1001013. Two spellings, one denoted sequence
(ATGAGGGCATGT), because 1001010 and 1001011 are both C:
g.[1001009del;1001010del;1001013del] written gaps of 0 and 2
g.[1001009del;1001011del;1001013del] written gaps of 1 and 1
general.md:34’s “two variants separated by one or more nucleotides should be described individually”
reads those gaps, so it answers twice for one variant. Rule 3 reads them off the partition ferro
derives instead: both give g.[1001009_1001010del;1001013del]. Rule 2 then keeps that over the
spanning g.1001009_1001013delinsCA, which merges across two unchanged nucleotides. Pinned in
tests/it/cis_confluence_adjudication.rs.
Known limitation
ferro cannot today guarantee that every input form is normalized according to these rules. They are enforced intent, not a claim of current completeness.
Rule 7’s disclosure mechanism — the Representation-Change: trailer and how it reaches the
changelog — is documented in
CONTRIBUTING.md.
Where the individual decisions live
Rules 5 and 6 above say how a question is decided where the recommendations are silent, ambiguous or self-contradictory. What was decided, case by case, is recorded separately, as adjudication records — each naming the clauses in tension, which one governs, which is deviated from, and why. Those records are published in full, with their clause quotes, in docs/NORMALIZATION_CONTRACT.md.
That document is generated from the records and gated against them, so it cannot drift; it deliberately does not restate the seven rules above, which are stated only here.
The inverse index — for each stage of the normalizer, which record or clause governs it, and which decisions are governed by nothing — is docs/NORMALIZATION_STAGE_AUDIT.md. Read that one if what you want to know is whether a behaviour you are looking at was chosen or merely happened.
CLI reference
The ferro command groups its work into subcommands. Run ferro <command> --help for the full,
authoritative options of any one — this page is a map, not a substitute.
Core
| Command | What it does |
|---|---|
parse | Parse and validate an HGVS description (no reference needed). |
normalize | Rewrite descriptions into canonical form (needs a reference). See Normalize variants. |
project | Re-express a variant on a chosen output axis (g / c / n / p / r). |
explain | Explain an error or warning code (e.g. ferro explain W3003). |
Reference data
| Command | What it does |
|---|---|
prepare | Download and assemble reference data. See Reference data. |
check | Verify a reference directory is ready (optionally pre-build the cache). |
convert-gff | Convert a GFF3/GTF annotation to transcripts.json. |
build-transcript | Build a single-exon transcripts.json from a FASTA + CDS coordinates. |
VCF and interchange
| Command | What it does |
|---|---|
annotate-vcf | Annotate a VCF file with HGVS notation. |
vcf-to-hgvs / hgvs-to-vcf | Convert between VCF and HGVS. |
extract-hgvs | Extract HGVS patterns from VEP-annotated VCF files. |
liftover | Lift genomic coordinates between genome builds. |
Generation and prediction
| Command | What it does |
|---|---|
generate | Generate an HGVS description from components. |
describe | Generate a description from reference and observed sequences. |
effect | Predict the protein effect of a variant. |
backtranslate | Backtranslate a protein variant to possible DNA variants. |
Common options
Most commands accept -i/--input <file> (one description per line) and -o/--output <file>. The
output format is set with -f/--format, and the accepted values depend on the command: text|json
for parse and project, text|json|tsv for normalize, and text|json|markdown for explain.
Commands that normalize also accept --reference <dir> and --error-mode <strict|lenient|silent>.
Supported HGVS Syntax
| Type | Prefix | Example |
|---|---|---|
| Genomic | g. | NC_000001.11:g.12345A>G |
| Coding DNA | c. | NM_000088.3:c.459A>G |
| Non-coding | n. | NR_000001.1:n.100A>G |
| RNA | r. | NM_000088.3:r.459a>g |
| Protein | p. | NP_000079.2:p.Val600Glu |
| Mitochondrial | m. | NC_012920.1:m.3243A>G |
Edit Types
- Substitution:
A>G,Val600Glu - Deletion:
del,100_200del - Insertion:
100_101insATG - Deletion-Insertion:
100_102delinsATG - Duplication:
100_102dup - Inversion:
100_200inv - Repeat:
100CAG[20]
Why ferro-hgvs?
ferro-hgvs provides the most comprehensive HGVS variant normalization across all pattern types, with performance orders of magnitude faster than alternatives.
Normalization Capabilities Comparison
| Pattern Type | ferro | mutalyzer | biocommons | hgvs-rs |
|---|---|---|---|---|
| Genomic (g.) | ✓ | ✓ | ✓ | ✓ |
| Coding (c.) exonic | ✓ | ✓ | ✓ | ✓ |
| Coding (c.) intronic | ✓ | ✓** | ✗ | ✗ |
| Non-coding (n.) | ✓ | ✓ | ✓ | ✓ |
| RNA (r.) | ✓ | ✓ | ✓ | ✓ |
| Protein (p.) | ✓ | Net* | ✗ | ✗ |
* mutalyzer protein normalization requires network access for NP_→NM_ lookups (cannot be cached locally). ** mutalyzer intronic support is enabled by default via genomic-context rewriting; disable with –no-rewrite-intronic.
Performance Comparison
All tools are benchmarked in ferro’s offline configuration — best case for every tool. Reference data is preloaded locally (a local UTA database and SeqRepo) and the network is disabled, so the figures below measure parse/normalize compute, not I/O. Out of the box, hgvs-rs, biocommons/hgvs, and mutalyzer resolve each variant against a remote UTA/SeqRepo or the Mutalyzer web API — a network round-trip per variant (~100–1000 ms), i.e. roughly 1–10 variants/sec, hundreds to thousands of times slower than shown here (an order-of-magnitude estimate from per-call network latency, not separately benchmarked). That local, offline setup is exactly what ferro’s prepare command builds; ferro needs no external service.
Median patterns/sec over 5 reps on an Apple M2 Max, local/offline. All tools draw from one stratified ClinVar population; per-tool sample sizes are calibrated so each tool is measured over a meaningful interval — fast cells (e.g. ferro/hgvs-rs parse) draw from millions of patterns, while slower cells (e.g. the per-tool normalize columns) draw from as few as tens to thousands. All tools exclude process/interpreter startup from the timed region — the mutalyzer/biocommons Python subprocesses are timed by their own internal startup-excluded timer, matching ferro/hgvs-rs. Only ferro parallelizes natively (rayon); the other tools are single-threaded libraries, so their normalize @8 workers figures come from the benchmark harness running 8 independent instances in parallel, while parsing is not sharded for them — hence the single-threaded label in their parse @8 workers column (mutalyzer normalize likewise shows no gain at 8 workers: per-call cache and IPC overhead dominate, so sharding does not help). Every tool runs fully offline against local reference data — a local UTA database and SeqRepo, with mutalyzer’s network lookups disabled — the configuration ferro’s prepare command enables; the figures therefore reflect compute throughput, not per-variant network latency. Reference-data load is excluded for all tools. ferro full-population peak: parse 20.0M/s, normalize 77.0k/s. See docs/BENCHMARK_RUNBOOK.md for the full method.
Parse
| Tool | Throughput @ 1 worker | Throughput @ 8 workers | ferro speedup @ 8w |
|---|---|---|---|
| ferro | 5.1M/s | 12.2M/s | — |
| mutalyzer | 352/s | single-threaded | 35,000× |
| biocommons | 3.9k/s | single-threaded | 3,100× |
| hgvs-rs | 3.6M/s | single-threaded | 3× |
Normalize
| Tool | Throughput @ 1 worker | Throughput @ 8 workers | ferro speedup @ 8w |
|---|---|---|---|
| ferro | 78.1k/s | 260.2k/s | — |
| mutalyzer | 4/s | 4/s | 73,000× |
| biocommons | 368/s | 818/s | 320× |
| hgvs-rs | 195/s | 1.3k/s | 200× |
ferro thread scaling
| Threads | 1 | 2 | 4 | 8 |
|---|---|---|---|---|
| ferro parse | 5.1M/s | 9.4M/s | 16.0M/s | 12.0M/s |
Input ordering matters for batch throughput. Resolving a transcript (reading its full sequence from the reference and rebuilding its CDS/exon metadata) dominates per-variant cost. ferro memoizes resolved transcripts in a bounded in-memory cache, so repeated lookups of the same transcript are near-free. Providing variants sorted by transcript accession — or by genomic position, which clusters variants onto the same transcripts — maximizes the cache hit rate and can speed up large batches by an order of magnitude versus randomly-ordered input. Ordering matters most when the number of distinct transcripts in the run exceeds the cache capacity (very large or genome-wide inputs); below that, the working set stays resident regardless of order.
Reference Data: What ferro Prepares
The ferro prepare command downloads and organizes all reference data needed for comprehensive normalization. This data is then shared with other tools (mutalyzer, biocommons, hgvs-rs) to enable their local operation.
| Data Type | Source | Size | Enables |
|---|---|---|---|
| RefSeq transcripts | NCBI | ~1GB | NM_/NR_/XM_ normalization |
| cdot metadata | MANE | ~200MB | Transcript-to-genome mappings |
| GRCh38 + GRCh37 genomes | NCBI | ~4GB | NC_ genomic normalization |
| RefSeqGene (sequences + genome alignments) | NCBI | ~600MB | NG_ gene-region normalization; projecting c./n. variants into an NG_ parent’s own g. frame (via the RefSeqGene→genome alignment GFF3) |
| LRG sequences + XML | EBI | ~50MB | LRG_ stable-reference normalization; projecting c./n. variants into an LRG_ parent’s own g. frame (via the LRG XML genomic mapping) |
| Protein sequences | Derived from CDS | ~200MB | NP_/XP_ protein normalization |
| Legacy transcript versions | NCBI | ~50MB | Historical ClinVar variants |
Key insight: Without ferro’s reference preparation, other tools require network access for each variant lookup (adding 100-1000ms latency per variant). With ferro’s cached reference data, all tools can operate fully offline with consistent, reproducible results.
Deriving version-independent NG_ placements (#728)
ferro prepare --derive-ng-placements <accessions.txt> derives genomic placements for the listed NG_ versions (one exact accession per line, e.g. NG_012337.3; blank lines and # comments ignored), writing derived_refseqgene_placements.json into the reference directory and wiring the manifest’s derived_refseqgene_placements field. This fills version gaps the archived RefSeqGene→genome GFF3 snapshots do not cover. It needs cdot + the genome in the same prepare run and uses NCBI EFetch per accession; accessions that cannot be validated are skipped with a warning. The field is preserved across subsequent prepare runs.
Interpreting the HGVS Recommendations
The HGVS nomenclature recommendations are the standard for naming sequence variants. They are large and carefully written, but — like any natural-language standard — in places they leave a question open, or two passages can be read as pointing different ways. A normalizer still has to emit exactly one string. Where ferro has had to settle such a question, this section records the decision, mirrored page-for-page against the official recommendations.
32 pages, one per spec section
Each page shows the spec's own text, ferro's reading of it, and a table of example spellings with ferro's verdict on each.
Every example is exercised
A build check parses each spelling and asserts every reference-backed output against a real GRCh38 reference. A wrong verdict, a moved quote, or a changed normalization fails the build.
New to the vocabulary?
Start with How to read a page — the verdicts, the table conventions, and the recurring terms, explained once.
The verdicts, at a glance
The recommendations are HGVS’s, not ferro’s. ferro’s job is to take any input and produce the form the recommendations prefer; the verdict describes ferro’s output against that goal.
recommended the form the recommendations prefer — the target. conformant valid HGVS, but not yet the recommended form. refused not valid HGVS; ferro correctly rejects it. bug ferro produced invalid HGVS — a defect.
Full definitions, plus the table conventions (self, —, “parse-only”) and the recurring terms,
are on the How to read a page reference.
Pages
DNA
| Page | Covers |
|---|---|
| Substitution | one base replaced by one other base |
| Deletion | removing one or more bases |
| Duplication | a tandem copy of existing bases |
| Insertion | new bases between two adjacent positions |
| Inversion | a reverse-complemented span |
| Deletion-Insertion | one or more bases replaced by one or more others |
| Repeated Sequences | short tandem repeat notation |
| Alleles | combining variants in cis / trans / unknown phase |
| Complex | translocations and multi-part rearrangements |
| Other | cases the rest of the list doesn’t cover |
RNA
| Page | Covers |
|---|---|
| Substitution | one base for one base, on the transcript |
| Deletion | removing one or more transcript bases |
| Duplication | a tandem copy on the transcript |
| Insertion | new transcript bases between two positions |
| Inversion | a reverse-complemented transcript span |
| Deletion-insertion | transcript bases replaced by others |
| Repeated Sequences | tandem repeat notation, transcript coordinates |
| Alleles | cis / trans / unknown / product combinations |
| Splicing | splice-site consequences written as del/ins |
| Adjoined transcript | gene-fusion transcripts |
Protein
Protein examples run against NP_003997.1 (dystrophin, the translation of NM_004006.3) in the
committed slice. There are no genomic sequence alignments on this axis — a p. description has no
SPDI — so the pages rely on the executed verdict and “normalizes to” columns.
| Page | Covers |
|---|---|
| Substitution | one amino acid for one (missense, nonsense, silent) |
| Deletion | removing one or more residues, 3′-placed |
| Duplication | a tandem copy of residues |
| Insertion | residues added between two flanking positions |
| Deletion-insertion | residues replaced by others |
| Repeated Sequences | amino-acid repeat notation |
| Frameshift | translation shifted to another frame |
| Extension | the sequence extended past a terminus |
| Alleles | cis / trans / unknown phase on the protein |
Cross-cutting
These three shadow the spec’s non-axis pages — the rules and notation that apply across DNA, RNA, and protein.
| Page | Covers |
|---|---|
| General notation | the DNA-level-primary rule, mandatory prefixes, prioritisation, and the special characters (=, /, _, …) |
| Uncertain descriptions | ( ) / ? / ^ notation for predicted or incompletely-known variants, across all axes |
| Publication checklist | the most frequently offended rules, as correct-vs-refused pairs |
What this section is not
It is not a second copy of the rules. The canonical ruleset lives in the
normalization rules page, and every adjudication is recorded
once in the ruling ledger
(hgvs_spec_normalization_overrides.json,
rendered for reading as
NORMALIZATION_CONTRACT.md).
These pages draw their explanations from the ledger rather than restating them — a rule written
in two places is a rule that drifts.
How it stays honest
Every example is exercised through ferro by a build check, though not every row is checked the same
way: each spec quote is verified against the pinned spec checkout, every spelling is parsed (and
strict-refused where marked refused), and every
reference-backed output — a row on an accession in the committed slice — is asserted against a real
GRCh38 reference. Rows marked — (parse-only foreign accessions, and p. rows with no genomic
SPDI) are checked for parsing only. A wrong verdict, a moved quote, or a changed normalization on a
checked row fails the build — so a page cannot claim reference-backed behavior ferro does not have.
How to read a page
Every interpretation page has the same shape. This page explains that shape and the handful of recurring terms, once — the per-page write-ups link back here instead of repeating it.
The layout of a page
Each page mirrors one section of the official HGVS recommendations. Under a heading naming the
exact spec lines it covers (e.g. `substitution.md:5`), you’ll find up to four things:
- the spec text being interpreted, quoted verbatim;
- ferro’s reading of that clause, in one or two sentences;
- a table of example spellings, each with ferro’s verdict and the form ferro normalizes it to;
- a Why block linking the governing decision in the ruling ledger (see the ledger below).
The verdicts
The recommendations are HGVS’s, not ferro’s. ferro’s job is to take any input and produce the form the recommendations prefer. The verdict describes ferro’s output against that goal:
recommended ferro’s output is the form the recommendations prefer — whether the input was already that form, or ferro normalized it there. This is the target.
conformant ferro’s output is valid
HGVS, but not yet the recommended form — a known limitation, or a deliberate house choice among
forms the spec treats as equally legal. Where an issue tracks it, the row links to it. Some
conformant rows carry no normalized output (—): the string round-trips through ferro’s parser as
well-formed HGVS — which is what the verdict measures — while the behavior behind it is a known,
issue-tracked gap, such as a prohibited spelling ferro accepts at parse and refuses only at
normalize, or a parse that is semantically wrong. Parser acceptance alone is not specification
validity: where the documented grammar marks a shape invalid, the row says so.
refused the input is not valid HGVS; ferro rejects it in strict mode. Refusing is the correct behavior here.
bug ferro’s output is not valid HGVS — a defect. This should never happen; where a page shows one, it links to the open issue. Rare by design.
The table columns
| Column | What it means |
|---|---|
| Input | the HGVS string fed to ferro, verbatim |
| Verdict | one of the four above, describing ferro’s output |
| Normalizes to | the form ferro produces — see the two special tokens below |
| Notes | a short plain-language explanation of that row |
In the Normalizes to column:
- = input (written
selfin the source) — the input is a fixed point: ferro leaves it exactly as given, because it is already the recommended form. - not run here (written
—in the source) — this spelling is not run against the test reference on this page, usually because it uses an accession outside the small committed slice ferro tests against. The row is still checked for parsing (and for strict-refusal where marked refused), just not for its normalized output. - anything else is the literal string ferro rewrites the input to.
Recurring terms
parse-only here
The example uses a real accession that isn’t in the committed reference slice, so ferro can parse it but can’t look up its bases to normalize it here. The row proves the spelling is well-formed HGVS; the normalization is exercised elsewhere against a full reference.
confluence
Several different input spellings that all normalize to the same output. A page notes confluence when, for example, a split form and its merged delins both land on the one recommended string — the point being that ferro maps a family of equivalent inputs onto a single canonical answer.
strict vs. lenient
Two error-handling modes. Strict rejects anything not valid HGVS at parse time (this is what a refused verdict checks). Lenient instead repairs the input where it can and emits a warning, failing only if it cannot normalize at all. Some rows describe behavior that only the lenient tier can express.
CONFIRM-by-inspection (and DISPUTE-by-inspection)
An evidence class, not a verdict. Where ferro’s behavior is mechanical parser or normalizer
logic with no spec clause in tension, there is no adjudication to record, so the section carries no
Why block and instead states a claim reached by reading the spec text against the shipped code.
CONFIRM-by-inspection means that reading found ferro’s behavior matches the spec; DISPUTE-by-inspection means it found a divergence (which the page files as an issue). This is weaker than a
checked verdict row: it is a reasoned reading, not a build-enforced assertion.
warning codes (W####)
A machine-readable code ferro attaches to a normalization event — for instance a merge or a repair — alongside the human-readable message. They identify the exact rule that fired; you don’t need to memorize them.
The ruling ledger, and ruling ids
Where ferro has had to settle a question the spec leaves open, the decision is recorded once in
the ruling ledger, keyed by a short ruling id like canonical-form-choice-when-both-legal. A
Why block on a page transcludes that record’s one-line summary and links to its full entry.
The reasoning lives in the ledger, never re-typed on the pages — a rule written in two places is a
rule that drifts. The ledger is rendered for reading as
NORMALIZATION_CONTRACT.md.
The numbered rules the pages cite (rule 2, rule 6, …) are the ferro
normalization rules ruleset — the canonical set the ledger
sits under.
How it stays honest
Every example is exercised through ferro by a build check, though not every row is checked the same
way. Each spec quote is verified against the pinned spec checkout, and every spelling is parsed (and
strict-refused where marked refused). A row that
carries a normalized output — a reference-backed row on an accession in the committed slice — has
that output asserted against a real GRCh38 reference. Rows marked — are checked for parsing only:
these are parse-only foreign-accession rows, and p. rows (a protein description has no genomic
SPDI). A wrong verdict, a moved quote, or a changed normalization on a checked row fails the build —
so a page cannot claim reference-backed behavior ferro does not have.
Substitution — ferro’s reading
ferro’s reading of the HGVS substitution recommendations, clause by clause — each spelling with the form ferro normalizes it to and a verdict on that output. New here? See How to read a page for the verdicts, the table conventions, and the recurring terms.
RNA twin: Substitution (r.).
substitution.md:5 — definition: one nucleotide for one
one nucleotide is replaced by one other nucleotide
Ferro: a substitution is exactly 1→1; IUPAC ambiguity codes stand in for the single replacing base.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.76A>G | recommended | self | canonical single-base substitution |
NM_004006.3:c.54G>H | recommended | self | replacement is IUPAC H = A, C, or T |
NC_000023.10:g.33038255C>A | recommended | — | the spec’s genomic example (GRCh37 accession — parse-only here) |
NM_004006.3:c.79GC>TT | refused | — | two nt — violates 1→1; rejected as “deprecated multi-base substitution syntax” |
substitution.md:15 — two or more nucleotides is a delins
two or more consecutive nucleotides are described as deletion/insertion (delins) variants
Ferro: a multi-base replacement is never a substitution; write it as a delins.
Why ferro reads it this way
absolute-prohibition-enforcement-stage — Spellings the spec prohibits are rejected — at parse in strict mode; lenient mode instead repairs the input where it can and fails only if it cannot normalize.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.79_80delinsTT | recommended | self | the two-base change written as a delins |
NM_004006.3:c.79_80GC>TT | refused | — | rejected: “deprecated multi-base substitution syntax” — use delins |
substitution.md:16-18 — separation, and the one-codon exception
two variants separated by one or more nucleotides should be described individually
Ferro: the separation rule (ruleset rule 2); the exception folds two subs into one delins only when they sit one nucleotide apart and together change one amino acid.
Why ferro reads it this way
separation-rule-force-modal-or-negation — Two changes a nucleotide or more apart are described individually — this is the spec’s preference (ruleset rule 2), not an outright ban; the only spelling the recommendations forbid is the split at separation zero.
codon-carve-out-shape-restriction — Two changes one nucleotide apart that together alter a single amino acid are ruled one delins whatever the edit types — because “together affecting one amino acid” is a fact about the resulting sequence, not about how the input was spelled — though the coding-codon pass currently implements only the substitution/unchanged-base/substitution triplet.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.145_147delinsTGG | recommended | self | one-codon delins, CGC→TGG |
NM_004006.3:c.[145C>T;147C>G] | recommended | NM_004006.3:c.145_147delinsTGG | ferro normalizes the split to the recommended delins (warns MEMBERS_COALESCED_FROM_REPORTED_FORM) |
NM_004006.3:c.235_237delinsTAT | recommended | self | the Lys79 codon; the split predicts p.[Lys79*;Lys79Asn], the delins p.Lys79Tyr |
NM_004006.3:c.[235A>T;237G>T] | recommended | NM_004006.3:c.235_237delinsTAT | split → the recommended delins (same codon exception) |
substitution.md:19 — no change is =, not a substitution
found not changed are described as
Ferro: a tested, unchanged position is =; a no-change substitution is normalized to it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.123= | recommended | self | c.123 screened, unchanged (reference C) |
NM_004006.3:c.123C>C | recommended | NM_004006.3:c.123= | a no-change substitution is normalized to the recommended = |
substitution.md:20 — polymorphisms are not A/G
it is not correct to describe
Ferro: the slash form for “polymorphism” is not valid HGVS; ferro rejects it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.76A>G | recommended | self | the correct form |
NM_004006.3:c.76A/G | refused | — | the disallowed “polymorphism” slash — rejected at parse |
substitution.md:32 — adjacent substitutions are one delins
changes involving two or more consecutive nucleotides are described as deletion-insertion (delins) so the description
Ferro: at separation zero the split is not correct; two adjacent members that both consume reference
bases are one delins. The same rule licenses re-merging adjacency that per-member 3′ shifting
creates (protein p.[Gly16Ala;Gly17del] → p.Gly16_Gly17delinsAla), keeping normalization
idempotent.
Why ferro reads it this way
delins-adjacent-members-when-both-consume-reference — Two adjacent changes that both consume reference bases are written as a single delins; the spec marks the split spelling “not correct” at separation zero.
canonical-form-choice-when-both-legal — When two descriptions of one variant are both legal and no clause chooses between them, ferro applies the edit set to the reference and re-derives the description from the resulting sequence — subject to every explicit spec tie-break, and breaking any remaining tie toward the already-shipped form — rather than preserving the input’s spelling.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.79_80delinsTT | recommended | self | adjacent c.79,c.80 written as one delins |
NM_004006.3:c.[79G>T;80C>T] | recommended | NM_004006.3:c.79_80delinsTT | ferro normalizes the adjacent split to the recommended delins |
NM_004006.3:c.79_80GC>TT | refused | — | the multi-base substitution spelling — rejected |
substitution.md:39-41 — an IUPAC ambiguity code as the replacing base
a substitution of the
Gnucleotide atc.54(coding DNA reference sequence) byA,C, orT
Ferro: the single replacing base may be an IUPAC ambiguity code, not only A/C/G/T; the
one-for-one substitution shape is unchanged.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.54G>H | recommended | self | replacement is IUPAC H = A, C, or T |
LRG_199t1:c.54G>H | recommended | — | the spec’s own example, on LRG_199t1 — parse-only here |
substitution.md:42-46 — = at a position, over the whole sequence, and over a range
the description
NM_004006.2:c.=can not be used
Ferro: three = notations denote different things and stay distinct — c.123= (one position
screened, unchanged), c.= (the entire reference sequence analysed, no change found), and a
range = (no variant found across that region). A normalizer must not collapse one into another.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.123= | recommended | self | one position screened, unchanged (reference C) |
NM_004006.3:c.= | recommended | self | whole-sequence “no change” — a distinct claim from a position = |
LRG_199t1:c.94-23_188+33= | recommended | — | a range =: no variant found across the region (exon 3 of DMD) — parse-only here |
substitution.md:47-49 — mosaic and chimeric
a mosaic case where at position
Ferro: mosaic (/) and chimeric (//) mixtures are valid; the recommendations write the reference
allele first.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.85=/T>C | recommended | self | mosaic: reference = written first, then T>C |
NM_004006.3:c.85=//T>C | recommended | self | chimeric: a mix of c.85= and c.85T>C cells |
NM_004006.3:c.85T>C/= | recommended | NM_004006.3:c.85=/T>C | variant-first spelling; ferro reorders it to the recommended reference-first form, since substitution.md:49 writes the reference first (#2034). |
substitution.md:57-60 — the parenthesized (predicted) form on the DNA axis
it should be described as
c.(76A>G)
Ferro: when only RNA was sequenced, the DNA-level consequence is written parenthesized as
c.(76A>G); ferro accepts and preserves this form.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.(76A>G) | recommended | self | parenthesized (predicted) substitution on the c. axis |
substitution.md:61-69 — shortened manuscript notations are not HGVS
simplified descriptions can be used like
Ferro: these are informal manuscript shorthand, not HGVS — none carries the
accession:coordinate structure, so ferro declines them.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.1 3G>T | refused | — | manuscript shorthand — no : accession structure |
GJB2 76A>C | refused | — | gene-symbol shorthand — not an accession |
rs2306220 T>C | refused | — | dbSNP-id shorthand — not an accession |
DXS1219 CA[18];[21] | refused | — | marker-name shorthand — not an accession |
substitution.md:70-79 — promoter variants need a wider reference
NM_004006.1:c.-128354C>TorNM_000109.3:c.-401C>Tare invalid
Ferro: a c. position outside its transcript’s own numbered span is not describable against that
transcript (a reference-bounds fact, not a parse fact) — describe it against a
genomic-with-transcript-coordinates reference or a plain genomic g. reference instead. Both
escape forms are valid HGVS that ferro accepts.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.10(NM_004006.1):c.-128354C>T | recommended | — | genomic reference carrying transcript coordinates — parse-only here |
NC_000023.10:g.33357783G>A | recommended | — | plain genomic reference (chrX, hg19) — parse-only here |
L01538.1:g.1407C>T | recommended | — | a genomic reference containing the promoter region — parse-only here |
substitution.md:80-96 — polymorphism slash, and two tail Q&As ruled elsewhere
No, all substitutions are described as
NM_004006.1:c.76A>G
Ferro: the historical “polymorphism” slash c.76A/G is not valid HGVS — the only conformant form
is A>G, and ferro rejects the slash at parse. A di-nucleotide substitution like
NG_012232.1:g.12GC>TG is a multi-base substitution written as a delins
(substitution.md:15); the BRCA1 c.[2077G>A;2077_2078insTA] → c.2077delinsATA case is the
separation-zero merge of two members that both consume reference bases (substitution.md:32).
When two variants’ phase is unavailable, the spec instead writes them with the (;)
unknown-phase separator (NG_012232.1:g.12G>T(;)13C>G) rather than a delins, and ferro parses
and preserves that form.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.76A>G | recommended | self | the correct substitution form |
NM_004006.3:c.76A/G | refused | — | the disallowed “polymorphism” slash — rejected at parse |
NG_012232.1:g.12GC>TG | refused | — | di-nucleotide substitution — use g.12_13delinsTG (substitution.md:15); parse-only here |
NG_012232.1:g.12G>T(;)13C>G | recommended | — | the unknown-phase form: two substitutions whose phase is unavailable, written with the (;) separator (substitution.md:91) rather than a delins; ferro parses and preserves it (parse-only here) |
NM_007294.3:c.2077delinsATA | recommended | — | the BRCA1 Q&A’s correct form; the split c.[2077G>A;2077_2078insTA] merges to it (substitution.md:32) — parse-only here |
Deletion — ferro’s reading
ferro’s reading of the HGVS deletion recommendations, clause by clause — each spelling with the form ferro normalizes it to and a verdict on that output. New here? See How to read a page for the verdicts, the table conventions, and the recurring terms.
RNA twin: Deletion (r.).
On the coding axis (c./n.) the exon/exon-junction 3’rule exception applies and a deletion is
not shifted across the junction. On the r. axis the same NOTE switches the exception off, which
ferro does not yet honour
(#2211, on the RNA deletion page).
deletion.md:5 — definition
Deletion: a sequence change where, compared to a reference sequence, one or more nucleotides are not present (deleted).
Ferro: a deletion removes one or more nucleotides; the description carries only the deleted range,
never the deleted bases (the payload-spelling prohibition is at deletion.md:27-40 below).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5697del | recommended | self | single-nucleotide deletion — the last A of the 8-nucleotide A-stretch c.5690_5697 (c.5698 is T), so already a fixed point |
NC_000023.11:g.33344591del | recommended | — | the spec’s own one-nucleotide genomic example (foreign accession — parse-only here) |
deletion.md:15 — the range must name two different positions
position(s)_deletedshould contain two different positions, e.g.,123_126, not123_123.
Ferro: rule 2 (lowercase “should”); a same-position range is repaired to the single-position form.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5695_5697del | recommended | self | a correctly ranged three-nucleotide deletion — the 3’-most three of the A-stretch, so already a fixed point |
NM_004006.3:c.5697_5697del | refused | — | same-position range — rejected at parse (W3016 SinglePositionRange) in strict mode; lenient repairs to c.5697del (correct_single_position_range) |
deletion.md:16-17 — the range is listed 5’ to 3’, except on a circular reference
- the
position(s)_deletedshould be listed from 5’ to 3’, e.g.,123_126, not126_123.
- exception: when a circular genomic reference sequence is used (“o” and “m” prefix) nucleotide positions may be listed from 3’ to 5’ when the deletion includes both the last and first nucleotides of the reference sequence.
Ferro: the ordinary range is listed 5’→3’; a reversed, non-circular range is refused rather than
reordered. On a circular reference (o./m.), the reversed <high>_<low> spelling is allowed for
an origin-spanning deletion, with the two endpoints checked independently rather than
order-compared.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5695_5697del | recommended | self | correctly ordered range (c.5695 is 5’ of c.5697) |
NM_004006.3:c.5697_5695del | refused | — | reversed range on a non-circular reference — rejected at parse |
deletion.md:18-19 — individual vs. delins, and the one-codon exception
- two variants separated by one or more nucleotides should be described individually and not as a “delins”.
- exception: two variants separated by one nucleotide, together affecting one amino acid, should be described as a “delins”.
Ferro: the separation rule (ruleset rule 2 — a preference, not a ban); the exception folds two changes into one delins only when they sit one nucleotide apart and together change one amino acid.
Why ferro reads it this way
separation-rule-force-modal-or-negation — Two changes a nucleotide or more apart are described individually — this is the spec’s preference (ruleset rule 2), not an outright ban; the only spelling the recommendations forbid is the split at separation zero.
codon-carve-out-shape-restriction — Two changes one nucleotide apart that together alter a single amino acid are ruled one delins whatever the edit types — because “together affecting one amino acid” is a fact about the resulting sequence, not about how the input was spelled — though the coding-codon pass currently implements only the substitution/unchanged-base/substitution triplet.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[76A>G;123C>T] | recommended | self | two changes more than one nucleotide apart — described individually, kept as a cis allele, not merged |
NM_004006.3:c.[145C>T;147C>G] | recommended | NM_004006.3:c.145_147delinsTGG | one nucleotide apart, together altering the c.145_147 codon (CGC→TGG) — folded to one delins, whatever the member edit types |
deletion.md:20-22 — the 3’rule, and the exon/exon-junction exception (where ferro is correct on DNA)
- for all descriptions, the most 3’ position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule).
- exception: deletions around exon/exon junctions when identical nucleotides flank the junction (see Numbering);
when..GATgta..//..cagTCA..changes to..GAgta..//..cagTCA.., based on a coding DNA reference sequence, the variant is described asLRG_199t1:c.3921del(NC_000023.10:g.32459297del) and not asc.3922del(which would translate tog.32456507del).
Ferro: the 3’rule shifts a deletion in a single-residue stretch or tandem repeat to its most-3’
position. The exception clamps that shift at an exon/exon junction: a c./n. deletion whose
identical flanking bases would otherwise let it shift across the junction is held at the last
position that does not cross, reached from either side — a description approaching the junction
stops at it, and one already spelled on the far side (c.3922del) is pulled back to c.3921del.
This is where the coding axis and the RNA axis diverge, and ferro is correct here. On c./n.
the exception applies, so c.3922del does not translate to the wrong nucleotide in the wrong exon.
On r. the same NOTE switches the exception off and the 3’rule must cross the junction — which
ferro does not yet do
(#2211, on the RNA deletion page).
Why ferro reads it this way
exon-junction-dup-converge-from-the-far-side — A duplication is placed at the most 3’ position that does not cross an exon/exon junction, reached from either side, so a copy spelled past the junction is pulled back to it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5690del | recommended | NM_004006.3:c.5697del | 3’rule over a single-residue stretch: c.5690_5697 is AAAAAAAA, so the deletion lands on the last A — the spec’s own deletion.md:33-34 example, on the slice’s transcript version |
NM_004006.3:c.5697del | recommended | self | already the 3’-most base of that run — a fixed point |
NM_004006.3:c.5690_5692del | recommended | NM_004006.3:c.5695_5697del | the same rule over a multi-nucleotide deletion inside the run — shifted to the 3’-most three |
LRG_199t1:c.3921del | recommended | — | the spec’s own worked example — the deletion held at the exon/exon junction (parse-only here) |
LRG_199t1:c.3922del | recommended | — | the far-side spelling, which the exception pulls back to c.3921del on the coding axis (parse-only here) |
deletion.md:23 — uncertain deletions
- † = see Uncertain; when the position and/or the sequence of a deletion has not been defined, a description may have a format like
g.(100_150)delN[15].
Ferro: an uncertain deletion’s parenthesised range is preserved verbatim — the 3’rule has nothing determinate to shift when neither the exact position nor the exact length is asserted.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.(100_150)delN[15] | recommended | self | uncertain form, preserved (illustrative position; the spec’s own example is generic genomic) |
deletion.md:27-40 — one nucleotide (three worked examples)
- **`NM_004006.2:c.5697del` (3'rule)**<br>
Ferro: the deleted base is never spelled (delA is class="invalid"); the 3’rule shifts a
deletion within a run of identical bases to its most-3’ position, including under minus-strand
mapping.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11:g.33344591del | recommended | — | the plain one-nucleotide example (parse-only here) |
NM_004006.2:c.5697del | recommended | — | the 3’rule over the A-stretch; the spec’s transcript version (parse-only here) |
NM_004006.3:c.5697del | recommended | self | executable twin on the slice’s version — the last A of c.5690_5697, a fixed point |
NM_004006.3:c.5690del | recommended | NM_004006.3:c.5697del | the class="invalid" first-A spelling of deletion.md:40 — the 3’rule carries it to the last A |
NC_000023.11:g.32343183del | recommended | — | the minus-strand cross-check (parse-only here) |
NC_000023.11:g.33344591delA | refused | — | the disallowed payload-bearing spelling (class="invalid") (parse-only here) |
NM_004006.3:c.5697delA | refused | — | executable twin — strict rejects the stated deleted base; lenient drops the payload and normalizes to c.5697del |
deletion.md:42-49 — several nucleotides
- **`NC_000023.11:g.33344590_33344592del`**<br>
Ferro: a multi-nucleotide range never carries the deleted payload sequence either (delGAT is
class="invalid"), and an ordinary range crossing an exon/intron border needs no special handling
while it stays within the transcript.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11:g.33344590_33344592del | recommended | — | plain range, no deleted sequence spelled (parse-only here) |
NM_004006.3:c.5695_5697del | recommended | self | executable several-nucleotide twin — the 3’-most three of the A-stretch, nothing left to shift |
NC_000023.11:g.33344590_33344592delGAT | refused | — | the disallowed payload-bearing range spelling (class="invalid") (parse-only here) |
NM_004006.3:c.5695_5697delAAA | refused | — | executable twin — strict rejects the stated deleted sequence; lenient drops it and normalizes to c.5695_5697del |
NC_000023.11(NM_004006.2):c.183_186+48del | recommended | — | range crossing an exon/intron border (parse-only here) |
deletion.md:51-65 — exon/intron/exon
- **`LRG_199t1:c.1704+1del`**<br>
Ferro: three border cases. The exon/exon case (c.3921del) is the exon/exon-junction exception
already adjudicated at deletion.md:20-22. The exon/intron (c.1704+1del, not c.1704del) and
intron/exon (c.1813del, not c.1813-1del) cases are ordinary “spell the deleted base where it
unambiguously sits” — no exception fires, because no run of identical bases straddles the border.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:c.1704+1del | recommended | — | exon/intron border — the intronic G spelled as c.1704+1, not c.1704del (parse-only here) |
LRG_199t1:c.1813del | recommended | — | intron/exon border — the exonic G spelled as c.1813, not c.1813-1del (parse-only here) |
deletion.md:67-96 — exons, and the beyond-transcript prohibition
following current recommendations (see [Numbering](../../background/numbering.md)), it is not allowed to describe variants in nucleotides beyond the boundaries of a reference sequence.
Ferro: multi-exon deletions use concrete or uncertain (parenthesized) positions that stay within
the transcript. The two class="invalid" forms below describe a deletion running beyond the
transcript’s own boundaries — a rank-1 prohibition; genomic coordinates are required instead.
Ferro enforces this for a concrete transcript position (rejected in strict mode), but the spec’s
own boundary-crossing examples reach past the boundary through an open ? end, which
normalization does not check against the transcript’s extent — so ferro accepts them. The
deletion length is never appended as a suffix (deletion.md:114-117).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11(NM_004006.2):c.4072-1234_5155-246del | recommended | — | concrete multi-exon deletion (parse-only here) |
NC_000023.11(NM_004006.2):c.(4071+1_4072-1)_(5154+1_5155-1)del | recommended | — | the “exon-based” uncertain-position form (parse-only here) |
NC_000023.11(NM_004006.2):c.(3996_4196)_(5090_5284)del | recommended | — | the probe-based uncertain-position form (parse-only here) |
NC_000023.11(NM_004006.2):c.(?_-244)_(31+1_32-1)del | conformant | — | extends 5’ beyond the transcript boundary (class="invalid") — genomic coordinates required. Ferro accepts it: strict parses it, since the boundary is a reference fact, and nothing at normalize refuses the ?-open end (parse-only here; no tracking issue yet) |
NC_000023.11(NM_004006.2):c.(10086+1_10087-1)_(*2691_?)del | conformant | — | extends 3’ beyond the transcript boundary (class="invalid") — genomic coordinates required. Same acceptance as the row above (parse-only here; no tracking issue yet) |
deletion.md:98-103 — gene-level deletion
- **`NC_000023.11:g.(31060227_31100351)_(33274278_33417151)del`**<br>
Ferro: whole-gene deletions in uncertain-range genomic syntax (SNP-array, MLPA) — a “does the parser accept this shape” question, answered by the general uncertain-range machinery; no special normalization.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11:g.(31060227_31100351)_(33274278_33417151)del | recommended | — | SNP-array uncertain-range whole-gene deletion (parse-only here) |
NC_000023.11:g.(?_31120496)_(33339477_?)del | recommended | — | MLPA half-uncertain (?) whole-gene deletion (parse-only here) |
deletion.md:105-110 — mosaic and chimeric
- **`NC_000023.11:g.33344590_33344592=/del`**<br>
Ferro: the mosaic (=/) and chimeric (=//) compact forms are not deletion-specific; the del
member inside carries the same 3’rule as a standalone deletion. When the 3’rule moves that member,
the compact form’s shared range no longer holds, and ferro re-spells the description with the
accession repeated on each side of =/ rather than shifting the shared range (see the last row).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11:g.33344590_33344592=/del | recommended | — | mosaic form, spec’s own accession (parse-only here) |
NC_000023.11:g.33344590_33344592=//del | recommended | — | chimeric form, spec’s own accession (parse-only here) |
NM_004006.3:c.5695_5697=/del | recommended | self | executable mosaic twin — the del member is the 3’-most three of the A-stretch, already a fixed point |
NM_004006.3:c.5695_5697=//del | recommended | self | executable chimeric twin — same member, preserved |
NM_004006.3:c.5690_5692=/del | conformant | NM_004006.3:c.5690_5692=/NM_004006.3:c.5695_5697del | the del member 3’-shifts to c.5695_5697 but the = range stays put, so ferro abandons the compact form and repeats the accession after =/. Re-parses, but the recommended spelling is the compact c.5695_5697=/del (both ranges name the same change). No tracking issue yet |
deletion.md:114-117 — a deletion is never written with a length suffix
!!! note “Can I use
NG_012232.1:g.123del6to describe a 6 nucleotide deletion?”
Ferro: class="invalid" — rule 1. The repair is determinate: a length-N suffix starting at
position p becomes the range p_(p+N-1).
Why ferro reads it this way
absolute-prohibition-enforcement-stage — Spellings the spec prohibits are rejected — at parse in strict mode; lenient mode instead repairs the input where it can and fails only if it cannot normalize.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NG_012232.1:g.123_128del | recommended | — | the correct range form for a six-nucleotide deletion (parse-only here) |
NG_012232.1:g.123del6 | refused | — | the disallowed length-suffix spelling (class="invalid") — strict rejects (DelSizeSuffix); lenient repairs to g.123_128del (parse-only here) |
NM_004006.3:c.5692_5697del | recommended | self | executable twin of the correct form — the 3’-most six of the A-stretch (c.5698 is T), so a fixed point |
NM_004006.3:c.5692del6 | refused | — | executable twin — strict rejects the length suffix; lenient repairs it to the range form c.5692_5697del, which is already 3’-most |
deletion.md:119-122 — why c.3921del and not c.3922del
!!! note “In the example above,
LRG_199t1:c.3921del, should the description based on a coding DNA reference sequence not beLRG_199t1:c.3922del?”
Ferro: this restates the exon/exon-junction exception (deletion.md:20-22) as a Q&A — the
far-side c.3922del is pulled back to c.3921del so that translating the position back does not
land in the wrong exon (exon-junction-dup-converge-from-the-far-side).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:c.3922del | recommended | — | the far-side spelling, pulled back to c.3921del by the clamp (parse-only here; see deletion.md:20-22) |
deletion.md:124-127 — a deletion is never written by exon label
!!! note “Is the description of a deletion of exon 17 as
c.EX17delstill allowed?”
Ferro: EX17 is not a legal position token on any axis — an exon label is a fact about annotation,
not a coordinate a description can carry. No conformant grammar accepts it; this is a parse
rejection, not a normalization.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.EX17del | refused | — | EX17 is not a valid position token — rejected at parse |
deletion.md:129-132 — BRCA1 Alu breakpoint, 3’rule reaffirmed
!!! note “Deletions in the BRCA1 gene are usually mediated by Alu sequences having a very high homology, reaching 100% in the breakpoint region. In such cases, what nucleotide should be used to describe the deletion breakpoint?”
Ferro: a restatement of the 3’rule mechanics — shift the alignment as far 3’ as possible, and the first nucleotide that then differs is the first nucleotide deleted.
deletion.md:134-141 — PCR breakpoint uncertainty (Kamsteeg letter)
!!! note “PCR analysis of a gene on the X-chromosome shows products for exons 1_3, no product is detected for exons 4_14 (exon 14 is the last exon of the gene). Since PCR fails already when one primer is not hybridising, we are not sure whether exon 4 and 14 are completely absent, or only partially. To describe the deletion I would therefore like to use the last base of exon 3 with “+?” and the last base of exon 13 with a “+?”. What are your recommendations? (Erik-Jan Kamsteeg, Nijmegen, Nederland)“
Ferro: the spec’s answer does not commit to one of c.(987+123_?)del or c.(987+1_?)del as
canonical — both are legal uncertain-position deletions denoting different breakpoint claims, so
ferro accepts both.
deletion.md:143-150 — CFTR deltaF508
!!! note “In literature I often see the description “deltaF508” for a variant in the CFTR gene in patients with Cystic Fibrosis. Is the variant detected in these patients
NM_000492.3:c.1522_1524delTTT?“
Ferro: a worked 3’rule example — three literal deletions all give p.Phe508del, but the 3’rule
alone reduces them only to one of two forms (c.1521_1523del or c.1522_1524del); it cannot
distinguish which triplet was truly altered without external evidence. The payload-bearing
delTTT is class="invalid".
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_000492.3:c.1521_1523del | recommended | — | the 3’-most form, mostly the change found in patients (parse-only here) |
NM_000492.3:c.1522_1524delTTT | refused | — | the payload-bearing spelling (class="invalid") (parse-only here) |
deletion.md:152-163 — the “los”/“dec” naming suggestion
!!! note “Suggestion to use “los” for a loss from a mono-nucleotide stretch.“
Ferro: the los/dec naming proposal was not adopted — del stands, and no los/dec token
exists in the grammar. The closing line (“a description should be clear/unequivocal and it is not
intended to contain other information”) supports canonical-form-choice-when-both-legal’s
preference for re-derivation from sequence over provenance-preservation.
Duplication — ferro’s reading
ferro’s reading of the HGVS duplication recommendations, clause by clause — each spelling with the form ferro normalizes it to and a verdict on that output. New here? See How to read a page for the verdicts, the table conventions, and the recurring terms.
RNA twin: Duplication (r.).
On the coding axis (c./n.) the exon/exon-junction 3’rule exception applies and a duplication is
not shifted across the junction. On the r. axis the same NOTE switches the exception off, which
ferro does not yet honour
(#2211, on the RNA duplication page).
duplication.md:5 — definition
Duplication: a sequence change where, compared to a reference sequence, a copy of one or more nucleotides is inserted directly 3’ of the original copy of that sequence.
Ferro: a duplication inserts a copy of one or more nucleotides directly 3’ of the original copy; the
“directly 3’-flanking” test is what separates a dup from an ins (the tandem-only rule at
duplication.md:17-20). The description carries only the duplicated range, never the duplicated
bases (the payload-spelling prohibition recurs at duplication.md:35-36, :50-51).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5697dup | recommended | self | single-nucleotide duplication — the last A of the 8-nucleotide A-stretch c.5690_5697 (c.5698 is T), so already a fixed point |
NC_000023.10:g.33229410dup | recommended | — | the spec’s own one-nucleotide genomic example, paired with c.20dup (foreign accession — parse-only here) |
duplication.md:15 — the range must name two different positions
positions_duplicatedshould contain two different positions, e.g.,123_126, not123_123.
Ferro: a same-position range is repaired to the single-position form.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5695_5697dup | recommended | self | a correctly ranged three-nucleotide duplication — the 3’-most three of the A-stretch, so already a fixed point |
NM_004006.3:c.5697_5697dup | refused | — | same-position range — rejected at parse in strict mode; lenient repairs to the single-position c.5697dup |
duplication.md:16 — the range is listed 5’ to 3’
- the
positions_duplicatedshould be listed from 5’ to 3’, e.g.,123_126, not126_123.
Ferro: the ordinary range is listed 5’→3’; a reversed, non-circular range is refused rather than
reordered. (The reversed <high>_<low> spelling is admitted only on an o./m. circular reference
for an origin-spanning change; a coding reference is never circular.)
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5695_5697dup | recommended | self | correctly ordered range (c.5695 is 5’ of c.5697) |
NM_004006.3:c.5697_5695dup | refused | — | reversed range on a non-circular reference — rejected at parse |
duplication.md:17-20 — tandem-only; MUST be a dup not an ins; an inverted duplication is an insertion
- by definition, duplication may only be used when the additional copy is directly 3’-flanking of the original copy (a “tandem duplication”).
- when a variant can be described as a duplication, it must be described as a duplication and not as, e.g., an insertion (see Prioritization).
- when there is no evidence that the extra copy of a sequence detected is in tandem (directly 3’-flanking the original copy), the change can not be described as a duplication; it should be described as an insertion (see Insertion and proposal SVD-WG003).
- inverted duplications are described as an insertion (
g.234_235ins123_234inv), not as a duplication (see Inversion).
Ferro: four points. (i) a dup is only for a copy directly 3’-flanking the original. (ii) a
duplicating insertion must be relabeled dup — ferro derives the label from the resulting
sequence, so c.19_20insT where c.19 is the copied base collapses to the dup. (iii) a copy
that is not directly 3’-flanking is an insertion, not a dup (worked at duplication.md:150-154).
(iv) an inverted duplication is spelled ins<range>inv, naming the source span, never dup — and
the dupinv shorthand is refused at parse. The “no evidence … in tandem” clause is an
assay-level evidentiary question a string-to-string normalizer cannot adjudicate; ferro never
manufactures tandem evidence the input did not assert.
Why ferro reads it this way
duplication-must-ranks-the-label-not-the-partition — The rule that a duplication must be labelled ‘dup’ ranks the label of each piece ferro derives, not the partition; the one exception is a net-longer tandem copy of a multi-base motif, where the derivation is cut to expose the dup rather than merged into a delins.
inverted-duplication-is-derived-as-ins-range-inv — An inverted duplication is written as ‘ins
inv’, naming the span the inverted copy came from, rather than expanded to reverse-complemented literal bases; whether a payload counts as an inverted copy at all is gated by a house coincidence-probability floor, not any spec-stated minimum — and it is wired today only in normalize_genome, so c./n./r./m. still emit literals.
The inverted-duplication ins<range>inv form is derived only on the genomic axis — c./n./m.
have no equivalent, so on the coding axis ferro expands an ins<range>inv range payload to
literal reverse-complement bases rather than preserving the range-citation spelling. That literal
output is valid HGVS that re-parses and denotes the same sequence, so the verdict is conformant,
not bug — a known limitation, with #2236 tracking the render-stage fix.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5690dup | recommended | NM_004006.3:c.5697dup | the first A of the run relabeled and 3’-shifted to the last A — a duplicating change written as a dup, landing 3’-most |
NM_004006.3:c.234_235ins123_234inv | conformant | NM_004006.3:c.234_235insGTTGACATTGTTCAGGGCATGAACTCTTGTGGATCCTTTTTCTTTTGGCAGTTTTTGCCCTGTCAGGCCTTCGAGGAGGTCTAGGAGGCGCCTCCCATCCTGTAGGTCACTG | the spec’s own inverted-duplication spelling — an ins<range>inv. On the c. axis ferro expands the range payload to the 112 literal reverse-complement bases of c.123_234 rather than preserving the ins<range>inv citation (inverted-duplication-is-derived-as-ins-range-inv; #2236 tracks the render-stage fix). Valid HGVS that re-parses and denotes the same sequence, so conformant — not the recommended spelling |
NM_004006.3:c.123_456dupinv | refused | — | the dupinv shorthand — rejected at parse in strict mode; :20 requires the ins<range>inv form |
duplication.md:21 — triplication and quadruplication use the repeated-sequence format
- when more than one additional copies are inserted directly 3’ of the original copy, the change is indicated using the format for Repeated sequences, like
[3](triplication),[4](quadruplication), etc.
Ferro: more than one additional copy is a repeat, spelled [N] (see repeated.md).
duplication.md:22-23 — individual vs. delins, and the one-codon exception
- two variants separated by one or more nucleotides should be described individually and not as a “delins”.
- exception: two variants separated by one nucleotide, together affecting one amino acid, should be described as a “delins”.
Ferro: the separation rule (ruleset rule 2 — a preference, not a ban); the exception folds two changes into one delins only when they sit one nucleotide apart and together change one amino acid.
Why ferro reads it this way
separation-rule-force-modal-or-negation — Two changes a nucleotide or more apart are described individually — this is the spec’s preference (ruleset rule 2), not an outright ban; the only spelling the recommendations forbid is the split at separation zero.
codon-carve-out-shape-restriction — Two changes one nucleotide apart that together alter a single amino acid are ruled one delins whatever the edit types — because “together affecting one amino acid” is a fact about the resulting sequence, not about how the input was spelled — though the coding-codon pass currently implements only the substitution/unchanged-base/substitution triplet.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[76A>G;123C>T] | recommended | self | two changes more than one nucleotide apart — described individually, kept as a cis allele, not merged |
NM_004006.3:c.[145C>T;147C>G] | recommended | NM_004006.3:c.145_147delinsTGG | one nucleotide apart, together altering the c.145_147 codon (CGC→TGG) — folded to one delins, whatever the member edit types |
duplication.md:24-26 — the 3’rule, and the exon/exon-junction exception (where ferro is correct on DNA)
- for all descriptions, the most 3’ position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule).
- exception: duplications around exon/exon junctions when identical nucleotides flank the junction (see Numbering);
when..GATgta..//..cagTCA..changes to..GATTgta..//..cagTCA.., based on a coding DNA reference sequence, the variant is described asLRG_199t1:c.3921dup(NC_000023.10:g.32459297dup) and not asc.3922dup(which would translate tog.32456507dup).
Ferro: the 3’rule shifts a duplication in a single-residue stretch or tandem repeat to its most-3’
position. The exception clamps that shift at an exon/exon junction: a c./n. duplication whose
identical flanking bases would otherwise let it shift across the junction is held at the last
position that does not cross, reached from either side — a description approaching the junction
stops at it (c.3921dup is a fixed point), and one already spelled on the far side (c.3922dup) is
pulled back to c.3921dup.
This is where the coding axis and the RNA axis diverge, and ferro is correct here. On c./n.
the exception applies, so c.3922dup does not translate to the wrong nucleotide in the wrong exon.
On r. the same NOTE switches the exception off and the 3’rule must cross the junction — which
ferro does not yet do
(#2211, on the RNA duplication page).
Why ferro reads it this way
exon-junction-dup-converge-from-the-far-side — A duplication is placed at the most 3’ position that does not cross an exon/exon junction, reached from either side, so a copy spelled past the junction is pulled back to it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5690dup | recommended | NM_004006.3:c.5697dup | 3’rule over a single-residue stretch: c.5690_5697 is AAAAAAAA, so the duplication lands on the last A — the spec’s own duplication.md:38-39 example, on the slice’s transcript version |
NM_004006.3:c.5697dup | recommended | self | already the 3’-most base of that run — a fixed point |
NM_004006.3:c.5690_5692dup | recommended | NM_004006.3:c.5695_5697dup | the same rule over a multi-nucleotide duplication inside the run — shifted to the 3’-most three |
LRG_199t1:c.3921dup | recommended | — | the spec’s own worked example — the duplication held at the exon/exon junction (parse-only here) |
LRG_199t1:c.3922dup | recommended | — | the far-side spelling, which the exception pulls back to c.3921dup on the coding axis (parse-only here) |
duplication.md:27 — uncertain duplications
- † = see Uncertain; when the position and/or the sequence of a duplication has not been defined.
Ferro: an uncertain duplication’s parenthesised range is preserved verbatim — the 3’rule has nothing determinate to shift when neither the exact position nor the exact length is asserted.
duplication.md:31-46 — one nucleotide (three worked examples)
- **`NM_004006.2:c.5697dup` (3'rule)**<br>
Ferro: the duplicated base is never spelled (c.20dupT/c.20dupG are class="invalid"); the
3’rule shifts a duplication within a run of identical bases to its most-3’ position, including
under minus-strand mapping. Describing the variant as an insertion (c.19_20insT) is well-formed
HGVS and parses, but the :18 MUST is honoured by relabeling it to dup at normalization rather
than rejecting it at parse.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:c.20dup | recommended | — | the plain one-nucleotide example; the spec’s transcript version (parse-only here) |
NM_004006.2:c.19_20insT | recommended | — | the insertion spelling of a duplicating change, which :18’s MUST forbids — but the string is well-formed HGVS, so it parses in every mode; the MUST is a normalization-level relabel to c.20dup, not a parse rejection (parse-only here; the executable twin two rows down shows the relabel) |
NM_004006.3:c.5697_5698insA | recommended | NM_004006.3:c.5697dup | executable twin of the :18 MUST: an A inserted directly 3’ of c.5697 (the last A of the run, c.5698 is T) is a tandem copy, so ferro relabels the insertion as the duplication it is |
NM_004006.2:c.20dupT | refused | — | the disallowed payload-bearing spelling (class="invalid") (parse-only here) |
NM_004006.3:c.5697dup | recommended | self | executable twin on the slice’s version — the last A of c.5690_5697, a fixed point |
NM_004006.3:c.5697dupA | refused | — | executable twin — strict rejects the stated duplicated base; lenient drops the payload and normalizes to c.5697dup |
NC_000023.11:g.32343183dup | recommended | — | the minus-strand cross-check (foreign accession — parse-only here) |
duplication.md:47-55 — several nucleotides
- **`NM_004006.2:c.20_23dup` (`NC_000023.11:g.33211290_33211293dup`)**<br>
Ferro: a multi-nucleotide range never carries the duplicated payload sequence either
(c.20_23dupTAGA is class="invalid"), and an ordinary range crossing an exon/intron border
(c.260_264+48dup) needs no special handling while it stays within the transcript.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:c.20_23dup | recommended | — | plain range, no duplicated sequence spelled; the spec’s transcript version (parse-only here) |
NM_004006.2:c.20_23dupTAGA | refused | — | the disallowed payload-bearing range spelling (class="invalid") (parse-only here) |
NM_004006.3:c.5695_5697dup | recommended | self | executable several-nucleotide twin — the 3’-most three of the A-stretch, nothing left to shift |
NM_004006.3:c.5695_5697dupAAA | refused | — | executable twin — strict rejects the stated duplicated sequence; lenient drops it and normalizes to c.5695_5697dup |
NC_000023.11(NM_004006.2):c.260_264+48dup | recommended | — | range crossing an exon/intron border (parse-only here) |
duplication.md:56-71 — exon/intron/exon
- **`NC_000023.11(NM_004006.2):c.3921dup`**<br>
Ferro: three border cases. The exon/exon case (c.3921dup) is the exon/exon-junction exception
already adjudicated at duplication.md:24-26. The exon/intron (c.1704+1dup, not c.1704dup) and
intron/exon (c.1813dup, not c.1813-1dup) cases are ordinary “spell the duplicated base where it
unambiguously sits” — no exception fires, because no run of identical bases straddles the border. The
“does not depend on the effect observed on RNA level” NOTE on both is a scope statement: DNA-level
normalization is independent of any predicted splicing consequence.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11(NM_004006.2):c.3921dup | recommended | — | exon/exon border — the exception holds the duplication at c.3921, not c.3922 (parse-only here; see duplication.md:24-26) |
NC_000023.11(NM_004006.2):c.1704+1dup | recommended | — | exon/intron border — the intronic G spelled as c.1704+1, not c.1704dup (parse-only here) |
NC_000023.11(NM_004006.2):c.1813dup | recommended | — | intron/exon border — the exonic G spelled as c.1813, not c.1813-1dup (parse-only here) |
duplication.md:72-103 — exons, the [dup;ins] split, and the beyond-transcript prohibition
- **`NC_000023.11(NM_004006.2):c.4072-1234_5155-246dup`**<br>
Ferro: multi-exon duplications use concrete or uncertain (parenthesized) positions that stay within
the transcript, and the size is never appended. A dup immediately followed by an ins at the
very next position is spelled as two separate members (c.[…dup;…ins…]), never merged into a
dupins composite — a format the spec calls “not used in HGVS nomenclature”. A duplication
extending beyond the transcribed region cannot be described on a coding reference — a rank-1
prohibition; genomic coordinates are required. Ferro enforces this for a concrete c. position
(rejected in strict mode), but the spec’s class="invalid" forms reach past the boundary through
an open ? end, which ferro accepts.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11(NM_004006.2):c.4072-1234_5155-246dup | recommended | — | concrete multi-exon duplication (parse-only here) |
NM_004006.2:c.4072-1234_5155-246dup | refused | — | the coding reference does not include the intron sequences the range spans (class="invalid") (parse-only here) |
NC_000023.11(NM_004006.2):c.720_991dup | recommended | — | plain multi-exon duplication (parse-only here) |
NC_000023.11(NM_004006.2):c.(4071+1_4072-1)_(5154+1_5155-1)dup | recommended | — | uncertain-breakpoint form — the spec tags this as part of the still-undecided proposal SVD-WG003, so no settled ferro behaviour is asserted (parse-only here) |
NC_000001.11(NM_206933.2):c.[675-542_1211-703dup;1211-703_1211-702insGTAAA] | recommended | — | a dup beside an ins, spelled as two members — never dupins (parse-only here) |
duplication.md:104-126 — gene, chromosome, and mosaic/chimeric
NOTE: the array analysis detects an extra copy of the sequences, and it has to be determined whether it is a duplication. When it is not sure the variant is a duplication, the variant should be described as an insertion;
g.?_?ins[NC_000023.11:g.(31060227_31100351)_(33274278_33417151)].
Ferro: the gene-, chromosome- and mosaic/chimeric-level rows are cross-document applications, not
duplication-local rules. The whole-gene SNP-array/MLPA forms
(g.(31060227_31100351)_(33274278_33417151)dup) are answered by the general uncertain-range parser;
the “when it is not sure it is a duplication, describe it as an insertion” NOTE is assay-evidentiary
language a sequence-string normalizer cannot adjudicate (there is no “sureness” input). The
chromosome-level sup (supernumerary) and [2] forms belong to complex.md/repeated.md, and the
mosaic (=/dup) and chimeric (=//dup) operators belong to the general mosaicism syntax — the dup
member inside carries the same 3’rule as a standalone duplication.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11:g.33344590_33344592=/dup | recommended | — | mosaic form, spec’s own accession (parse-only here) |
NC_000023.11:g.33344590_33344592=//dup | recommended | — | chimeric form, spec’s own accession (parse-only here) |
duplication.md:129-139 — why not describe a duplication as an insertion
!!! note “Why do we not describe a duplication as an insertion?”
Ferro: rationale prose for the dup-over-ins preference (brevity, position clarity, avoiding
intron/exon insertion-site debates, the local-slippage mechanism). It states no rule beyond the
:18 MUST already covered at duplication.md:17-20.
duplication.md:140-144 — can I use g.123dup6?
!!! note “Can I use
g.123dup6to describe a 6 nucleotide duplication?”
Ferro: class="invalid" — a duplication of more than one nucleotide gives the first and last
position separated by _, never a length suffix, and g.123dup6 is additionally ambiguous about
whether the duplication starts at or after position 123. Strict rejects the length suffix.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NG_012232.1:g.123_128dup | recommended | — | the correct range form for a six-nucleotide duplication (parse-only here) |
NG_012232.1:g.123dup6 | refused | — | the disallowed length-suffix spelling (class="invalid") (parse-only here) |
NM_004006.3:c.5692_5697dup | recommended | self | executable twin of the correct form — the 3’-most six of the A-stretch (c.5698 is T), so a fixed point |
duplication.md:145-149 — why c.3921dup and not c.3922dup
!!! note “In the example above,
c.3921dup, should the description based on a coding DNA reference sequence not bec.3922dup?”
Ferro: this restates the exon/exon-junction exception (duplication.md:24-26) as a Q&A — the
far-side c.3922dup is pulled back to c.3921dup so that translating the position back does not
land in the wrong nucleotide in the wrong exon (exon-junction-dup-converge-from-the-far-side).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:c.3922dup | recommended | — | the far-side spelling, pulled back to c.3921dup by the clamp (parse-only here; see duplication.md:24-26) |
duplication.md:150-154 — a coincidental copy is an insertion, not a duplication
!!! note “How should I describe the change
ATCGATCGATCGATCGAGGGTCCCtoATCGATCGATCGATCGAATCGATCGATCGGGGTCCC? The fact that the inserted sequence (ATCGATCGATCG) is present in the original sequence, suggests it derives from a duplicative event.”
Ferro: the copied span (g.5_16) is offset one base from the insertion point (g.17|18), so the
payload is not directly 3’-flanking and is correctly not mislabeled dup. The spec’s recommended
form is g.17_18ins5_16, a range-citation naming the likely source span. Ferro does not derive
that range-citation form for a plain (non-inverted) coincidental insertion — it expands the range
to literal bases instead. That literal insertion is valid HGVS denoting the same sequence, so the
verdict is conformant, not the recommended spelling.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.17_18ins5_16 | conformant | NM_004006.3:c.17_18insTTTGGTGGGAAG | executable twin of the spec’s own answer g.17_18ins5_16 — an insertion naming its likely source range, not a dup, because the copy is not directly 3’-flanking. Ferro does not relabel the non-3’-flanking copy as dup (correct), and on the c. axis it expands the range payload to the 12 literal bases of c.5_16 rather than preserving the ins5_16 citation — valid HGVS denoting the same sequence, so conformant, not the spec’s recommended range-citation form |
Insertion — ferro’s reading
ferro’s reading of the HGVS insertion recommendations, clause by clause — each spelling with the form ferro normalizes it to and a verdict on that output. New here? See How to read a page for the verdicts, the table conventions, and the recurring terms.
RNA twin: Insertion (r.).
insertion.md:5 — definition: inserted, and not a copy of the 5’ flank
Insertion: a sequence change where, compared to the reference sequence, one or more nucleotides are inserted and where the insertion is not a copy of a sequence immediately 5’.
Ferro: an insertion adds one or more nucleotides between two flanking positions, and the “not a
copy of a sequence immediately 5’” clause is exactly the dup/ins boundary — a copy directly
3’-flanking of its original is a duplication (see insertion.md:17 and DNA/duplication.md:5),
so ferro relabels a duplicating insertion to dup rather than leaving it as an ins.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.123_124insG | recommended | self | a genuine single-nucleotide insertion between c.123 (C) and c.124 (A); the inserted G copies neither flank, so it is neither a dup nor 3’-shiftable — a fixed point |
NM_004006.3:c.6_7insT | recommended | NM_004006.3:c.7dup | the boundary case: the inserted T is a copy of the T at c.6 immediately 5’, so by the definition it is not an insertion — ferro relabels it to the recommended dup, landing on the 3’-most T of the c.5_7 run (c.7) |
insertion.md:15 — the flanking positions must be two adjacent nucleotides
positions flankingshould contain two flanking nucleotides, e.g.,123_124, not123_125.
Ferro: an insertion occupies the zero-width junction between two adjacent positions, so the anchor
must name a pair that is exactly one apart. A non-adjacent anchor is refused at parse with a
structured InvalidEdit error — there is no way to recover which flanking pair the author meant,
so this is a rejection, not a repair.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.123_124insG | recommended | self | correctly flanking (adjacent) pair |
NM_004006.3:c.123_125insG | refused | — | non-adjacent flanks — rejected at parse (“the two positions MUST be adjacent”); unrepairable |
insertion.md:16 — the flanking positions are listed 5’ to 3’
- the
positions_flankingshould be listed from 5’ to 3’, e.g.,123_124, not124_123.
Ferro: a reversed, non-circular flank order has no exception on the coding axis (the
<high>_<low> form is admitted only for o./m. circular references), so it is refused rather
than reordered.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.123_124insG | recommended | self | correctly ordered flank |
NM_004006.3:c.124_123insG | refused | — | reversed flank order on a non-circular reference — rejected at parse |
insertion.md:17 — a tandem duplication is a dup, not an insertion
- tandem duplications are described as a duplication (
g.123_456dup), not an insertion (g.456_457ins123_456, see Prioritization).
Ferro: the dup-over-ins preference seen from the insertion side — a copy directly
3’-flanking of its original is spelled dup, so a duplicating insertion is relabeled rather than
kept as an ins. The spec’s own invalid tandem-as-insertion spelling g.456_457ins123_456 is
accession-less here, so it is not table-executable, but on a real reference ferro expands the range
payload to literal bases, finds the payload is a copy of the bases immediately 5’, and relabels it
dup. The inverted-duplication sub-bullet (insertion.md:18) is worked separately below.
Why ferro reads it this way
duplication-must-ranks-the-label-not-the-partition — The rule that a duplication must be labelled ‘dup’ ranks the label of each piece ferro derives, not the partition; the one exception is a net-longer tandem copy of a multi-base motif, where the derivation is cut to expose the dup rather than merged into a delins.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.6_7insT | recommended | NM_004006.3:c.7dup | the duplicating insertion c.6_7insT copies the T at c.6 immediately 5’, so the relabel makes it the recommended dup (landing 3’-most on the c.5_7 run, c.7) rather than keeping the ins. This is :17’s “not an insertion” case, executable |
insertion.md:18 — an inverted duplication is ins<range>inv, not dup
- inverted duplications are described as an insertion (
g.234_235ins123_234inv), not as a duplication (see Inversion).
Ferro: an inverted duplication is spelled ins<range>inv, naming the span the inverted copy came
from — never dup, and never the dupinv shorthand, which is refused at parse.
Why ferro reads it this way
inverted-duplication-is-derived-as-ins-range-inv — An inverted duplication is written as ‘ins
inv’, naming the span the inverted copy came from, rather than expanded to reverse-complemented literal bases; whether a payload counts as an inverted copy at all is gated by a house coincidence-probability floor, not any spec-stated minimum — and it is wired today only in normalize_genome, so c./n./r./m. still emit literals.
The inverted-duplication form is not yet derived on the coding axis. On the c. axis ferro
expands an already-spelled ins<range>inv payload to literal reverse-complement bases rather
than deriving or preserving the range-inv spelling — a known gap, with #2236 tracking the
render-stage fix. The output is valid HGVS that re-parses and denotes the same sequence, so the
verdict is conformant, not bug.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.849_850ins850_900inv | conformant | NM_004006.3:c.849_850insGGCATAGCTCTTGAATCGAGGCTTAGGGGAAGAAGTTCTCTCATATCCCTG | executable twin of the spec’s inverted-duplication spelling: ferro expands the 850_900inv payload to literal reverse-complement bases rather than deriving/preserving the ins<range>inv form. Valid HGVS that re-parses (inverted-duplication-is-derived-as-ins-range-inv; #2236) |
NM_004006.2:c.849_850ins850_900inv | conformant | — | the spec’s own accession (inverted copy inserted 5’ of the original) — parse-only |
NM_004006.2:c.900_901ins850_900inv | conformant | — | the spec’s own accession (inverted copy inserted 3’ of the original) — parse-only |
NM_004006.3:c.850_900dupinv | refused | — | the dupinv shorthand — rejected at parse; :18 requires the ins<range>inv form |
insertion.md:19-20 — individual variants, not a delins
- two variants separated by one or more nucleotides should be described individually and not as a “delins”.
exception: two variants separated by one nucleotide, together affecting one amino acid, should be described as a “delins”.
Ferro: a single ins variant has no internal separation, so this Note is boilerplate about a
second, separate variant appearing near the insertion — not about the insertion’s own grammar.
The merge geometry is adjudicated where it actually lives (deletion.md:18-19).
insertion.md:21 — the 3’rule
- for all descriptions, the most 3’ position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule).
Ferro: the 3’rule applies to insertions exactly as to deletions and duplications — an inserted sequence that could be written at more than one equivalent position is assigned its most 3’ placement.
An inserted base that matches an adjacent run base is by definition a copy of its 5’ flank, so it
is a duplication (insertion.md:17), not an insertion — the row below is a fixed-point insertion
instead.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.123_124insG | recommended | self | the inserted G matches neither flank, so the 3’rule has nothing to shift it into — already 3’-most, a fixed point |
insertion.md:22-23 — the inserted sequence: literal bases, a reference range, or another reference
- the “inserted_sequence” can be given as the nucleotides inserted (e.g.,
insAGC) or, for larger insert sequences, by referring to the sequence in the reference sequence (e.g.,c.849_850ins858_895) or another reference (e.g.,NC_000002.11:g.47643464_47643465ins[NC_000022.10:g.35788169_35788352]). When the inserted sequence is not present in the reference genome, it should be submitted to a database (e.g., GenBank); the accession.version number obtained can then be used to describe the variant.
Ferro: the spec admits three payload spellings — literal bases (insAGC), a range-citation into
the same reference (ins858_895), and a cross-reference into another accession
(ins[NC_…:g.A_B]). Ferro parses all three; on the c. axis it expands a range-citation
payload to literal bases rather than preserving it. Since :22 states in as many words that both
the literal and the range-citation forms are legal, and no clause selects between them, which
spelling ferro emits is a representation choice governed by the ledger — not a defect. The final
sentence is authoring workflow advice (submit novel sequence to a database, cite the accession),
not a normalization obligation.
Why ferro reads it this way
canonical-form-choice-when-both-legal — When two descriptions of one variant are both legal and no clause chooses between them, ferro applies the edit set to the reference and re-derives the description from the resulting sequence — subject to every explicit spec tie-break, and breaking any remaining tie toward the already-shipped form — rather than preserving the input’s spelling.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.123_124insG | recommended | self | a literal-base insert — the recommended spelling for a short insert |
NM_004006.2:c.849_850ins858_895 | conformant | — | the spec’s own same-reference range-citation payload — parse-only; ferro expands the range to literal bases on a real reference (canonical-form-choice-when-both-legal; #2236 tracks the render-stage fix that would restore the range form) |
NC_000002.11:g.47643464_47643465ins[NC_000022.10:g.35788169_35788352] | conformant | — | the spec’s cross-reference citation payload — parse-only |
insertion.md:24 — uncertain: the dagger form
- † = see Uncertain; when the position and/or the sequence of an inserted sequence has not been defined, a description may have a format like
g.(100_150)insN[25].
Ferro: an uncertain insertion’s parenthesised range and unspecified-length payload are preserved verbatim — the 3’rule has nothing determinate to shift when neither the exact position nor the exact sequence is asserted.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.(100_150)insN[25] | recommended | self | the uncertain form, preserved (illustrative position; the spec’s own example is generic genomic). The parenthesised range and the N[25] unspecified payload are both left as written |
insertion.md:28-39 — Examples: simple insertions
NM_004006.2:c.849_850ins858_895
the insertion of a copy of nucleotidesc.858toc.895between nucleotidesc.849andc.850.
Ferro: the spec’s four simple worked forms span the three payload kinds — literal bases, a same-reference range citation, and a cross-reference range citation — at the simplest complexity level. Each is the canonical worked form; all sit on foreign accessions or a foreign transcript version, so they are parse-only here.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.10:g.32867861_32867862insT | recommended | — | spec’s single-nucleotide literal insertion — parse-only |
NC_000023.10:g.32862923_32862924insCCT | recommended | — | spec’s multi-nucleotide literal insertion — parse-only |
NM_004006.2:c.169_170insA | recommended | — | spec’s coding literal insertion — parse-only |
NM_004006.2:c.849_850ins858_895 | conformant | — | spec’s same-reference range citation — parse-only (expands to literal bases on a real reference) |
NC_000002.11:g.47643464_47643465ins[NC_000022.10:g.35788169_35788352] | conformant | — | spec’s cross-reference citation — parse-only |
NM_004006.3:c.123_124insG | recommended | self | executable literal-insertion twin on the slice accession — a fixed point |
insertion.md:41-49 — Examples: complex insertions
NM_004006.2:c.419_420ins[T;401_419]
the insertion ofTfollowed by a copy of the sequence fromc.401toc.419(a duplication not directly flanking the original sequence).
Ferro: bracketed composite payloads — a semicolon-joined list mixing literal bases, same-reference
range citations, and cross-reference-plus-repeat parts in one payload. Nothing here is ambiguous in
meaning; each part is independently well-defined, and concatenation follows 5’→3’ order of the
resulting inserted sequence. Ferro parses all three; a range part expands to literal bases on a
real reference (canonical-form-choice-when-both-legal). All sit on foreign accessions, so they
are parse-only here.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:c.419_420ins[T;401_419] | conformant | — | literal + same-reference range composite — parse-only |
LRG_199t1:c.419_420ins[T;450_470;AGGG] | conformant | — | literal + range + literal composite — parse-only |
NC_000006.11:g.10791926_10791927ins[NC_000004.11:g.106370094_106370420;A[26]] | conformant | — | cross-reference Alu range + A[26] repeat composite — parse-only |
insertion.md:51-62 — Examples: insertion of inverted duplicated copies
NM_004006.2:c.849_850ins850_900inv
a copy of nucleotidesc.850toc.900is inserted, in inverted orientation, 5’ of the original sequence, between nucleotidesc.849andc.850.
Ferro: the direct worked examples for insertion.md:18‘s ruling (5’ vs 3’ of the original copy),
plus two intricate composites — an inverted-copy part combined with a substitution (A) or with a
second inverted-copy part carrying an implied internal deletion (a “hole” in the cited range). The
ins<range>inv part-type is the derived form on the genomic axis; on the c. axis ferro expands
it to literal reverse-complement bases (see insertion.md:18). All spec examples sit on foreign
accessions, so they are parse-only; the executable twin below is on the slice accession.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:c.849_850ins850_900inv | conformant | — | inverted copy inserted 5’ of the original — parse-only |
NM_004006.2:c.900_901ins850_900inv | conformant | — | inverted copy inserted 3’ of the original — parse-only |
LRG_199t1:c.940_941ins[885_940inv;A;851_883inv] | conformant | — | inverted copy with an internal G>A substitution — parse-only |
NM_004006.2:c.940_941ins[903_940inv;851_885inv] | conformant | — | inverted copy with an internal deletion (a “hole” in the cited range) — parse-only |
NM_004006.3:c.849_850ins850_900inv | conformant | NM_004006.3:c.849_850insGGCATAGCTCTTGAATCGAGGCTTAGGGGAAGAAGTTCTCTCATATCCCTG | executable twin — ferro expands the range-inv payload to literal reverse-complement bases on the c. axis (inverted-duplication-is-derived-as-ins-range-inv; #2236) |
insertion.md:64-87 — Examples: incomplete descriptions
- **`NM_004006.2:c.761_762insNNNNN` (alternatively `NM_004006.2:c.761_762insN[5]`)**<br> the insertion of 5 not specified nucleotides (`NNNNN`) between positions `c.761` and `c.762`.
Ferro: the uncertainty forms — a G at a parenthesised uncertain position, and runs of
unspecified N bases given either spelled out (insNNNNN) or as a repeat count (insN[5],
insN[100], insN[(80_120)], insN[?]). N is a legal HGVS symbol, so an unspecified insert
parses and normalizes as itself, and a parenthesised uncertain position is preserved. The spec
states insNNNNN and insN[5] as equivalent (“alternatively”); ferro rewrites the bracketed exact
count to the literal run, so insN[5] lands on the spec’s primary spelling insNNNNN.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:c.(222_226)insG | recommended | — | insertion at an uncertain position inside a codon; the parenthesised range is preserved — parse-only |
NM_004006.3:c.(222_226)insG | recommended | self | executable twin — the uncertain position is preserved, nothing clamped or shifted |
NC_000004.11:g.(3076562_3076732)insN[12] | recommended | — | 12 unspecified nucleotides at an uncertain position — parse-only |
NC_000023.10:g.32717298_32717299insN | recommended | — | one unspecified nucleotide — parse-only |
NM_004006.2:c.761_762insNNNNN | recommended | — | spelled-out unspecified 5-mer, the spec’s primary spelling — parse-only |
NM_004006.3:c.761_762insNNNNN | recommended | self | executable twin — the literal run is a fixed point |
NM_004006.3:c.761_762insN[5] | recommended | NM_004006.3:c.761_762insNNNNN | the spec’s “alternatively” spelling, rewritten to the literal run — which is the spec’s primary spelling, so recommended |
NC_000023.10:g.32717298_32717299insN[100] | recommended | — | 100 unspecified nucleotides via the repeat-count spelling — parse-only |
NC_000023.10:g.32717298_32717299insN[(80_120)] | recommended | — | 80–120 unspecified nucleotides (uncertain count) — parse-only |
NC_000023.10:g.32717298_32717299insN[?] | recommended | — | an unknown number of unspecified nucleotides — parse-only |
NC_000006.11:g.8897754_8897755ins[N[543];8897743_8897754] | conformant | — | an undefined 543-nt run plus a 12-nt target-site-duplication range citation; like the ins[T;401_419] composite above, ferro would expand the same-reference range citation to literal bases on a real reference rather than preserve it, so it is not the recommended range-citation form (parse-only here) |
insertion.md:89-91 — Examples: other
g.?_?ins[NC_000023.10:g.(12345_23456)_(34567_45678)]
the insertion of a sequence from the X-chromosome (NC_000023.10), maximally involving nucleotides12345_45678but certainly nucleotides23456_34567, at an unknown position (g.?_?) in the genome (see Uncertain).
Ferro: an entirely unknown insertion site (g.?_?) combined with a cross-reference payload whose
own span is doubly uncertain. It is legal by composition of two already-legal conventions and
parses, but on a real reference ferro’s normalizer currently declines to expand this exact
combination (cross-reference payload plus uncertain range) rather than mis-normalizing — the one
worked example on this page that does not round-trip through the normalizer.
insertion.md:95-101 — Discussion: a single-position insertion is not allowed
!!! note “Can I describe a variant as
g.123insG?”No, since the description is not unequivocal, it is not allowed. What does the description mean, the insertion of a `G` **at** position `g.123` or the insertion of a `G` **after** position `g.123`? The situation becomes even more complex when, using a coding DNA reference sequence, a "-" character is used; e.g., <code class="invalid">c.-14insG</code> or <code class="invalid">c.456-13insG</code>. In the description <code class="invalid">c.456-13insG</code>, when the insertion is **after** intronic nucleotide `c.456-13`, is this position `c.456-12` or `c.456-14`?
Ferro: a single-position insertion anchor is ambiguous (“at” vs “after”) and cannot be repaired
into a flanking pair, so ferro refuses it in every mode — the strict rejection is at parse (with a
structured InvalidEdit code). The intronic-offset variant (c.456-13insG) is refused by the same
single-position check, before the -12/-14 ambiguity the Note describes is ever reached.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.123_124insG | recommended | self | the correct two-position flanking form |
NM_004006.3:c.123insG | refused | — | the disallowed single-position spelling (class="invalid") — rejected at parse; the “at”/“after” ambiguity is unrepairable |
NM_004006.3:c.-14insG | refused | — | the spec’s 5’UTR variant of the same question — rejected at parse by the same single-position check |
NM_004006.3:c.456-13insG | refused | — | the spec’s intronic variant — rejected at parse (single-position); the -12/-14 ambiguity is never reached |
insertion.md:103-108 — Discussion: the ^ character is not allowed
!!! note “Can I use the “^” character to describe an insertion?“
No, insertions can not be described using the format <code class="invalid">g.123ˆ124insG</code> or <code class="invalid">g.123ˆ124G</code>. The recommendations try to restrict the number of different characters used to a minimum. Since a character was already used to indicate a range (the *underscore*), a new character was not required.
Ferro: the ^ separator is rejected at parse — the range underscore already spells the flanking
pair, so ^ is a character the grammar does not admit. The bare form with the ins keyword
dropped fails the same way.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.123_124insG | recommended | self | the correct underscore-flanked form |
NM_004006.3:c.123^124insG | refused | — | the disallowed ^ separator (class="invalid") — rejected at parse; use the underscore range |
NM_004006.3:c.123^124G | refused | — | the spec’s second class="invalid" form, with the ins keyword dropped too — rejected at parse |
insertion.md:109-113 — Discussion: a non-tandem duplicative copy is an insertion
!!! note “How should I describe the change
ATCGATCGATCGATCGAGGGTCCCtoATCGATCGATCGATCGAATCGATCGATCGGGGTCCC? The fact that the inserted sequence (ATCGATCGATCG) is present in the original sequence suggests it derives from a duplicative event.”The variant should be described as an insertion; `g.17_18ins5_16`. A description using "dup" is not correct since, by definition, a duplication should be **directly 3'-flanking of the original copy** (in tandem). Note that the description given still makes it clear that the sequence inserted between `g.17` and `g.18` is probably derived from nearby, i.e. positions `g.5` to `g.16`, and thus likely derived from a duplicative event.
Ferro: a copy present in the reference but not directly 3’-flanking is an insertion, not a
duplication, even when it plainly derives from a duplicative event — ferro will not relabel it
dup. The by-range payload (ins5_16) versus a literal payload is the representation choice
:22-23 leaves open (canonical-form-choice-when-both-legal); ferro expands the range payload to
literal bases on the c. axis.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.17_18ins5_16 | conformant | NM_004006.3:c.17_18insTTTGGTGGGAAG | executable twin of the spec’s own answer g.17_18ins5_16 (accession-less, not table-executable) — an insertion naming its likely source range, not a dup, because the copy is not directly 3’-flanking. ferro expands the range payload (c.5_16 = TTTGGTGGGAAG) to literal bases, a representation choice insertion.md:22 leaves open (canonical-form-choice-when-both-legal) — valid HGVS that re-parses |
insertion.md:115-119 — Discussion: c.23ins24 and the c.9_32dup correction
!!! note “A variant in the CDKN2A gene, duplicating the first 24 nucleotides of the coding DNA reference sequence, has been described as
c.23ins24. My interpretation is it should be described asc.1_24dup, is this correct?”Since the sequence in that region is <span class="sequence">cagc<code class="spot1">ATGGAGCC</code>GGCGGCGGGGAGCAGC<code class="spot1">ATGGAGCC</code>TTCG</span>, the correct description is `c.9_32dup` (`p.(Ala4_Pro11dup)`). `c.1_24dup` seems correct but neglects the **3'rule** (3' shift possible for the highlighted region). `c.23ins24` is not correct since the position of the insertion is not described properly and because "ins24" does not define the sequence inserted.
Ferro: a compound worked example touching three rules at once — the single-position/adjacency
requirement (c.23 is one position, not a flanking pair, so “the position … is not described
properly”), the absolute prohibition on a bare count (checklist.md:33 — ins24 names no bases), and the 3’rule’s
interaction with duplication placement (c.1_24dup must be 3’-shifted within the repeated
ATGGAGCC…ATGGAGCC unit to c.9_32dup). The disallowed spelling c.23ins24 is refused at parse
on both grounds. The c.1_24dup→c.9_32dup correction is on the CDKN2A coding sequence, not on
NM_004006.3‘s bases, so the dup half is conceptual/parse-only here and its exact 3’-shift is
not reproduced on the slice.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.23ins24 | refused | — | the disallowed spelling (class="invalid") — a single-position anchor (c.23 is not a flanking pair) and a bare count (ins24 defines no bases); rejected at parse |
Inversion — ferro’s reading
ferro’s reading of the HGVS inversion recommendations (DNA axes), clause by clause — each spelling with the form ferro normalizes it to and a verdict on that output. New here? See How to read a page for the verdicts, the table conventions, and the recurring terms.
RNA twin: Inversion (r.).
inversion.md:5 — definition: more than one nucleotide, reverse complement
Inversion: a sequence change where, compared to a reference sequence, more than one nucleotide replacing the original sequence is the reverse complement of the original sequence.
Ferro: an inversion replaces a span of more than one nucleotide with its exact reverse
complement. When a span’s whole content is its reverse complement, that span types as one inv
uniformly — whatever the competing split partition’s members would type as (substitutions, delins,
or a mix), and however much of the interior happens to coincide with the reference. The property is
a fact about the whole span, with no term for its interior columns. Ferro mints this typing only on
the genomic axis; on c./n. ferro preserves an already-spelled inversion but does not turn a
reverse-complement split into one.
Why ferro reads it this way
whole-span-reverse-complement-types-as-inv — A span whose whole content is replaced by its exact reverse complement is written as one inv, however much of its interior coincides with the reference and whatever the competing partition is made of; this is a project choice among conformant forms, not a conformance requirement.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5_8inv | recommended | NM_004006.3:c.5_8inv | A four-nucleotide inversion with every column changing: c.5_8 is TTTG, replaced by its reverse complement CAAA, so the competing split is four substitutions (c.[5T>C;6T>A;7T>A;8G>A]) — and :5 types it as one inv regardless |
NM_004006.3:c.123_124inv | recommended | NM_004006.3:c.123_124inv | The minimal >1-nt inversion, and a whole-span case with a competitor: c.123_124 is CA, reverse complement TG, so both columns are substitutions (C>T, A>G) — the competing split is two subs, and :5 types it as one inv regardless |
NM_004006.3:c.5690_5697inv | recommended | NM_004006.3:c.5690_5697inv | The whole-span rule at its starkest, on the slice’s own 8-nucleotide A-stretch: AAAAAAAA → reverse complement TTTTTTTT, every column an A>T substitution — the competing split is eight subs, and it still types as one inv |
NC_000023.10:g.32361330_32361333inv | recommended | — | the spec’s own four-nucleotide genomic example (:27-28), ..CATCAGCCT.. → ..CACTGACCT.. — reverse complement of TCAG is CTGA, all four columns change (foreign accession — parse-only here) |
NM_004006.2:c.5657_5660inv | recommended | — | the spec’s coding example (:30-31), CTGA → TCAG — the wrong transcript version for the slice, so parse-only here |
NM_004006.2:c.4145_4160inv | recommended | — | the spec’s load-bearing 16-nucleotide example (:33-34) with a large unchanged interior — re-derived by the ledger as 10 of 16 columns changed, two three-base unchanged interior runs, yet typed as one inv. The single strongest textual evidence that the spec does not decompose an inversion by interior coincidence (wrong version — parse-only here) |
NC_000023.10:g.111754331_111966764inv | recommended | — | the spec’s 212,434-nucleotide example (:36-37) — the definition states no length ceiling; a 212-kb span types identically to a 4-nt one (foreign accession — parse-only here) |
inversion.md:15-16 — more than one nucleotide; a one-nucleotide inversion is a substitution
- by definition, the region inverted (
positions_inverted) contains more than one nucleotide. The descriptiong.234invis therefore not allowed; a one-nucleotide inversion should be described as a substitution.
Ferro: two points, both mechanical. (i) An inversion spans more than one nucleotide, so the grammar
admits only a range (range "inv") — a lone single-position inv has no production and is
refused at parse. (ii) A one-nucleotide inversion should be written as a substitution, which is
definitional: the reverse complement of a single base is its complement, i.e. a sub, so there is
no lone-inv spelling for ferro to relabel. The spec’s own g.234inv is class="invalid".
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.234inv | refused | — | the executable twin of the spec’s class="invalid" single-position g.234inv — rejected at parse: an inversion requires a range of more than one nucleotide, so a lone position carries no span to invert |
inversion.md:17-18 — the 3’rule
- for all descriptions, the most 3’ position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule).
- the 3’rule applies to ALL descriptions (genome, gene, transcript, and protein) of a given variant.
Ferro: the general 3’-shift rule applies to inversions exactly as to the other edit types — an inversion writable at more than one equivalent position is assigned its most 3’ placement. An inversion 3’-shifts only inside a larger reverse-complement-symmetric context, which this transcript’s homopolymer runs do not supply, so the executable row below is a fixed point.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5_8inv | recommended | NM_004006.3:c.5_8inv | c.5_8 is TTTG; no equivalent 3’ placement exists for this span, so the 3’rule has nothing to shift — already 3’-most |
inversion.md:19 — an inverted duplication is ins<range>inv, not dupinv
- inverted duplications are described as an insertion (
g.234_235ins123_234inv), not asg.123_456dupinv(see Q&A).
Ferro: an inverted duplication is spelled ins<range>inv, naming the span the inverted copy came
from — never dup, and never the dupinv shorthand, which the grammar has no production for and
is refused at parse. That ins<range>inv form is the ruling’s target, and ferro derives it only
on the genomic axis. On c./n. ferro does not yet mint or preserve it — it expands an
already-spelled range payload to literal reverse-complement bases, which is valid HGVS that
re-parses and denotes the same sequence, so conformant, not the recommended spelling. This is an
implementation gap, not a disagreement with the ruling; #2236 tracks the render-stage fix.
Why ferro reads it this way
inverted-duplication-is-derived-as-ins-range-inv — An inverted duplication is written as ‘ins
inv’, naming the span the inverted copy came from, rather than expanded to reverse-complemented literal bases; whether a payload counts as an inverted copy at all is gated by a house coincidence-probability floor, not any spec-stated minimum — and it is wired today only in normalize_genome, so c./n./r./m. still emit literals.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.16_17ins5_16inv | conformant | NM_004006.3:c.16_17insCTTCCCACCAAA | An inverted duplication of c.5_16 (TTTGGTGGGAAG) inserted 3’ of the original: on c. ferro expands the range-inv payload to its literal reverse complement (CTTCCCACCAAA). Valid HGVS that re-parses and denotes the same sequence, so conformant, not the recommended ins5_16inv spelling |
NM_004006.3:c.123_456dupinv | refused | — | the dupinv shorthand :19 marks class="invalid" — rejected at parse: dup has no inv suffix production, and the clause requires the ins<range>inv form instead |
NM_004006.2:c.849_850ins850_900inv | conformant | — | the spec’s inverted-duplication example (:39-40), copy inserted 5’ of the original. On a c. reference ferro expands the range-inv payload to literal reverse-complement bases (as on the executable c.16_17ins5_16inv row above), so its output is not the recommended ins<range>inv form — conformant (wrong version — parse-only here) |
NM_004006.2:c.900_901ins850_900inv | conformant | — | the spec’s mirror example (:42-43), copy inserted 3’ of the original — the two orientations are why the genomic derivation must produce both spellings rather than normalizing to one; on c. ferro instead expands to literals, so conformant (wrong version — parse-only here) |
LRG_199t1:c.940_941ins[885_940inv;A;851_883inv] | conformant | — | the spec’s composite example (:45-46): a bracketed insertion payload of two inverted ranges and one literal base (c.884 G>A) inside the copied interior. A payload shape wider than the atomic ins<range>inv derivation covers, so on c. ferro cannot keep the range form — conformant (foreign accession — parse-only here) |
NM_004006.2:c.940_941ins[903_940inv;851_885inv] | conformant | — | the spec’s second composite example (:48-49): two non-adjacent inverted ranges, representing a deletion inside the copied-and-inverted interior. A payload shape wider than the atomic ins<range>inv derivation covers, so on c. ferro cannot keep the range form — conformant (wrong version — parse-only here) |
inversion.md:20-21 — individual vs. delins, and the one-codon exception
- two variants separated by one or more nucleotides should be described individually and not as a “delins”.
exception: two variants separated by one nucleotide, together affecting one amino acid, should be described as a “delins”.
Ferro: this restates general.md:33/:34’s separation-and-codon clause inside the inversion doc.
Its only inversion-specific function is naming the competitor when a single whole-span inversion
competes with a multi-member split — and there the typing rule at :5 governs, because a
whole-span inversion is one variant, so the separation rule has no antecedent (no “two variants”)
to bite on until a split is already chosen. Two competitor-shape records are cited below; only the
pure-delins competitor has an executable row here (c.76_83inv), while the mixed
substitution/multi-column competitor is cited for completeness with no example on the committed
slice. Both outcomes stand — a whole-span reverse complement types as one inv — but their
competitor-type reasoning is superseded by the uniform :5 rule above.
Why ferro reads it this way
inversion-vs-two-delins-76-83 — A span replaced by its exact reverse complement is written as a single inv even where its interior columns coincide with the reference, not as the two delins those columns would separate.
inversion-vs-a-mixed-member-competitor — When a span replaced by its reverse complement competes with a description mixing lone substitutions and multi-column members, ferro writes it as one inv; both forms are conformant, so this is the project’s choice among them.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.76_83inv | recommended | NM_004006.3:c.76_83inv | The inversion-vs-two-delins-76-83 record’s own worked span: an 8-nucleotide whole-span reverse complement whose competing split would be two delins members (c.[76_77delins…;82_83delins…]) — typed and preserved as one inv, not split. c.76 is A on the slice; the remaining bases are read from the reference at bless time |
inversion.md:22-23 — inversions are not used on the protein level
- inversions are not used on protein level. Depending on the (predicted) consequences of an inversion on protein level, changes are usually described as either a delins or a frameshift.
Ferro: an absolute prohibition, and it is grammar-enforced rather than merely a preferred
description — the protein (aa:) grammar has no inv edit type at all (only alleles, del,
delins, dup, ext, fs, ins, rpt, sub), so no production a p. inversion could parse
as exists. A protein-level consequence of an inversion is expressed as a delins or a frameshift
instead.
inversion.md:53-56 — Discussion: the complement is not an inversion
!!! note “Is the change
AAGCtoTTCGan inversion?”
Ferro: a clarification, not a rule ferro applies. It reinforces the :5 definition — an inversion
is the reverse complement, so AAGC inverts to GCTT, whereas TTCG is only the complement
(bases flipped, order kept).
inversion.md:59-62 — Discussion: the reverse is not an inversion
!!! note “Is the change
AAGCtoCGAAan inversion?”
Ferro: the mirror-image clarification of the one above — CGAA is only the reverse (order flipped,
bases kept), not the reverse complement (AAGC’s reverse complement is GCTT). Both Q&A blocks
fence the definition against its two near-misses (complement-only and reverse-only).
inversion.md:64-69 — Discussion: why ins<range>inv and not dupinv
!!! note “Is it not better to describe the variant
g.234_235ins123_234invasg.123_234dupinv?”
Ferro: the spec’s fullest statement of why dupinv is rejected — an inverted copy is not “a copy
inserted directly 3’ of the original,” so by duplication.md‘s definition it is not a duplication
but an insertion — and of the two-spelling asymmetry (g.122_123ins123_234inv or
g.234_235ins123_234inv depending on whether the inverted copy is 5’ or 3’ of the original). Same
governing record as :19 (inverted-duplication-is-derived-as-ins-range-inv); the verdict rows
are there.
Deletion-Insertion — ferro’s reading
ferro’s reading of the HGVS deletion-insertion (delins) recommendations, clause by clause — each spelling with the form ferro normalizes it to and a verdict on that output. New here? See How to read a page for the verdicts, the table conventions, and the recurring terms.
RNA twin: Deletion-Insertion (r.).
Executable rows use NM_004006.3, the one transcript in the committed slice: cds_start = 238
(so c.-237 is the first transcript base), the codon c.145_147 is CGC, c.76 is A, and
c.123 is C. The spec’s own worked examples sit on accessions the slice does not carry, so
those rows are parse-only (—).
delins.md:5 — definition: not a substitution, not an inversion
Deletion-Insertion (delins): a sequence change where, compared to a reference sequence, one or more nucleotides are replaced by one or more other nucleotides and which is not a substitution or inversion.
Ferro: a delins is one-or-more-for-one-or-more nucleotides that is neither a 1-for-1 substitution
nor a whole-span reverse complement (inv, governed on inversion.md:5) — whatever remains once
those two are excluded.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.902_909delinsuuu | recommended | self | illustrative only — a genuine multi-for-multi change is a delins; adjudicated on the RNA page |
delins.md:15 — one nucleotide for one is a substitution
by definition, when one nucleotide is replaced by one other nucleotide, the change is a substitution.
Ferro: a delins whose net effect is one nucleotide for one is re-derived as the substitution
form — the resulting sequence is a single-base change, so > is used, not delins (rule-1, “by
definition”).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.76delinsG | recommended | NM_004006.3:c.76A>G | c.76 is A; the net 1-for-1 change collapses to the substitution form |
delins.md:16 — two or more consecutive nucleotides are a delins
changes involving two or more consecutive nucleotides are described as deletion/insertion (delins) variants.
Ferro: two adjacent changed nucleotides (separation zero) merge into one delins — the spec marks
the split spelling class="invalid" at separation zero (substitution.md:32), the one place it
states an outright merge requirement rather than a preference.
Why ferro reads it this way
delins-adjacent-members-when-both-consume-reference — Two adjacent changes that both consume reference bases are written as a single delins; the spec marks the split spelling “not correct” at separation zero.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[145C>A;146G>T] | recommended | NM_004006.3:c.145_146delinsAT | two adjacent substitutions (c.145_146 is CG), separation zero — merged to one delins |
NM_004006.3:c.145_146delinsAT | recommended | self | the merged form is a fixed point — payload AT does not coincide with reference CG, nothing residual to shift |
delins.md:17 — the separation rule (individual, not delins)
two variants separated by one or more nucleotides should be described individually and not as a “delins”.
Ferro: rule 2, a preference not a ban (“should”, not “not allowed”). Changes a nucleotide or more apart are kept as a cis allele, described individually. Separation is read off the partition re-derived from the resulting sequence, not the input’s member boundaries, so two spellings of one variant converge on one output.
Why ferro reads it this way
separation-rule-force-modal-or-negation — Two changes a nucleotide or more apart are described individually — this is the spec’s preference (ruleset rule 2), not an outright ban; the only spelling the recommendations forbid is the split at separation zero.
separation-is-a-property-of-the-spelling-not-of-the-variant — Ferro reads the separation between changes off the partition it re-derives from the resulting sequence, not off the input’s spelling, so two spellings of one variant converge on one output.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[76A>G;123C>T] | recommended | self | two changes far more than one nucleotide apart — described individually, kept as a cis allele, not merged |
delins.md:18-19 — the one-codon exception
- exception: two variants separated by one nucleotide, together affecting one amino acid, should be described as a “delins”.
NOTE: this prevents tools predicting the consequences of a variant to make conflicting and incorrect predictions of two different substitutions at one position (e.g.,c.235_237delinsTAT(p.Lys79Tyr) versusc.[235A>T;237G>T](p.[Lys79*;Lys79Asn]).
Ferro: the exception merges two changes one nucleotide apart into one delins when together they
alter one amino acid — a fact about the resulting sequence, not the input’s spelling, so it applies
whatever the members’ edit types. It reaches only an axis that declares a reading frame: a
coding-axis merge under it does not propagate to the derived genomic projection, which stays split
under delins.md:17.
Why ferro reads it this way
delins-codon-carve-out-gap-one — Two changes one nucleotide apart that together affect a single amino acid are written as one delins on the coding sequence, the explicit exception the spec makes to describing them individually.
codon-carve-out-shape-restriction — Two changes one nucleotide apart that together alter a single amino acid are ruled one delins whatever the edit types — because “together affecting one amino acid” is a fact about the resulting sequence, not about how the input was spelled — though the coding-codon pass currently implements only the substitution/unchanged-base/substitution triplet.
projection-codon-exception-is-decided-by-the-rendered-axis — The codon merge fires only on an axis that declares a reading frame, so when a coding description merges under it ferro leaves the members individual on the derived genomic axis rather than re-merging it to match.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[145C>T;147C>G] | recommended | NM_004006.3:c.145_147delinsTGG | one nucleotide apart, together altering the c.145_147 codon (CGC→TGG) — folded to one delins regardless of member edit types |
LRG_199t1:c.9002_9009delinsTTT | recommended | — | the spec’s own example; its NOTE names the split c.[145C>T;147C>G] as not correct because the two together affect one amino acid (parse-only) |
delins.md:20-21 — conversions are a delins; con is retired
- conversions, a sequence change where a range of nucleotides are replaced by a sequence from elsewhere in the genome, are described as a “delins”. The previous format “con” is no longer used (see Community Consultation SVD-WG009).
Ferro: SVD-WG009 is accepted — a conversion is a delins whose payload is a coordinate range. A same-reference numeric-range payload is expanded to literal bases and re-derived (conformant, not the recommended range form — the same limitation the inverted-duplication payload carries). A cross-accession bracket payload (a translocation) is preserved verbatim, since ferro cannot fetch the partner reference to expand it, so that citation stays the recommended form.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_000797.3:c.812_829delins908_925 | conformant | — | conversion with a same-reference numeric-range payload; ferro would expand it to literal bases on a real reference, so the output is not the recommended range form (parse-only) |
NM_004006.3:c.5_16delins123_134 | conformant | NM_004006.3:c.[5_8delinsCAGT;10_13delinsACCT;15_16delinsCA] | executable: ferro expands the 123_134 range to literal bases and re-derives it into a three-member split, so the output is not the recommended range form (same limitation as the inverted-duplication payload) |
NM_004006.2:c.812_829delinsN[12] | recommended | — | unknown-length insert N[12] (parse-only) |
delins.md:22 — the 3’rule
for all descriptions, the most 3’ position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule).
Ferro: canonicalization derives from the resulting sequence and applies the 3’rule as part of that re-derivation. For a delins the rule bites once re-derivation trims payload bases that coincide with the reference into residual pieces, which then shift; where two legal spellings compete and no clause selects, ferro emits what falls out of the resulting sequence rather than preserving the input’s spelling.
Why ferro reads it this way
canonical-form-choice-when-both-legal — When two descriptions of one variant are both legal and no clause chooses between them, ferro applies the edit set to the reference and re-derives the description from the resulting sequence — subject to every explicit spec tie-break, and breaking any remaining tie toward the already-shipped form — rather than preserving the input’s spelling.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11:g.32386323delinsGA | recommended | — | canonical one-position delins example: deletes g.32386323 (T), inserts GA (parse-only) |
NM_004006.2:c.6775_6777delinsC | recommended | — | coding example: GAG replaced by C (parse-only) |
LRG_199t1:c.145_147delinsTGG | recommended | — | p.Arg49Trp example (parse-only) |
delins.md:26-35 — the deleted sequence is never spelled between del and ins
NOTE: the recommendation is not to describe the variant as
NC_000023.11:g.32386323delTinsGA, i.e. describe the deleted nucleotide sequence.
Ferro: the DNA delins grammar admits a del<seq>ins<seq> production, so a spelling naming the
deleted bases between del and ins parses — and, unlike the payload-bearing plain del/dup
forms (rejected in strict mode, see deletion.md), it is accepted in strict mode. Ferro preserves
the explicit deleted sequence for a faithful round-trip and strips it to the short delins form on
canonicalization — a legal-but-discouraged form ferro tolerates rather than a grammar rejection.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11:g.32386323delTinsGA | conformant | — | the spec’s class="invalid" deleted-sequence spelling; ferro accepts it in strict mode and canonicalizes to the short delins form (parse-only) |
NM_004006.2:c.6775_6777delGAGinsC | conformant | — | same explicit-deleted spelling on the coding example — accepted, canonicalizes to short form (parse-only) |
delins.md:44-47 — when part of the inserted sequence happens to match the reference
LRG_199t1:c.850_901delinsTTCCTCGATGCCTG
a deletion of nucleotidesc.850toc.901, replaced byTTCCTCGATGCCTG.
NOTE: parts of the inserted sequence “align” with the reference sequence, giving an alternative description likec.[850_869del;874_881del;887_897del;901_902insG]. The “delins” format is recommended: it is simpler and prevents software tools making incorrect predictions for the consequences on protein level.
Ferro: this passage decides the merge geometry the sibling pages defer here. When a minimal delins
would split only because some member’s payload coincides with the reference bases it replaces,
ferro merges it back to the spanning delins :47 recommends. The reach is narrow: net-deletion
only (payload shorter than the span), and only where some member is gap-bearing — a split of pure
deletions inserts nothing, so nothing realigned, and it stays governed by delins.md:17. A placed
gap needed to align an unequal-length block is an artifact of the alignment, not the “separated
variants” :17 describes.
On c. coding positions this merged form is recommended. In the coding-transcript UTR, as on
g./m./n., it is conformant, not recommended:
:47’s stated rationale (avoiding incorrect protein-consequence predictions) has nothing to bite
on where there is no reading frame, so the wider reach rests on :47’s axis-neutral simplicity
alone — a maintainer house choice among conformant forms, not a conformance requirement. r. is
out of jurisdiction (a DNA document cannot scope it, and RNA/delins.md states no :47
counterpart).
Why ferro reads it this way
delins-merge-vs-individual-gap-two-or-more — When two changes two or more nucleotides apart arise only because part of the inserted sequence coincides with the reference and the block is a net deletion, ferro writes them as one spanning delins rather than individually.
delins-recommendation-reach-when-the-input-arrives-split — Ferro merges a re-derived split into one delins only when some member supplies inserted bases while consuming a different number of reference bases; a split of pure deletions inserts nothing and stays individual.
unequal-length-block-a-placed-gap-is-not-a-separation — A lone unequal-length net-deletion delins whose payload merely coincides with the reference, and whose every member other than the placed gap would itself render as a delins, is kept whole on every DNA axis (c./g./m./n., but not r.) rather than split at that coincidence into a separate residual member.
delins-payload-coincidence-carve-out-is-coding-dna-scoped — Where a split exists only because payload bases coincide with the reference, ferro writes it as one spanning delins on every DNA axis (c./g./m./n., but not r.); on the frameless axes this is a disclosed rule-2 deviation and the project’s choice among conformant forms.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:c.850_901delinsTTCCTCGATGCCTG | recommended | — | the spanning delins is the recommended c. form, not the c.[850_869del;…] split named as the “alternative description” (parse-only) |
LRG_199t1:c.[850_869del;874_881del;887_897del;901_902insG] | recommended | — | the split spelling of the same variant; some member is gap-bearing (901_902ins), so ferro merges it to the spanning delins above (parse-only) |
delins.md:49-64 — translocations and conversions
NC_000002.12:g.pter_8247756delins[NC_000011.10:g.pter_15825266]
Ferro: these translocation and conversion examples sit on foreign accessions with bracketed
cross-reference or numeric-range payloads (full rules in complex.md); all are parse-only. A
cross-accession bracket payload is preserved verbatim (recommended); a same-reference numeric-range
payload would be expanded to literal bases on a real reference (conformant, not the recommended
range form — see :20-21).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000002.12:g.pter_8247756delins[NC_000011.10:g.pter_15825266] | recommended | — | unbalanced-translocation delins, see complex.md (parse-only) |
NC_000022.10:g.42522624_42522669delins42536337_42536382 | conformant | — | conversion with a same-reference numeric-range payload — would expand to literal bases on a real reference, so not the recommended range form (parse-only) |
NC_000012.11:g.6128892_6128954delins[NC_000022.10:g.17179029_17179091] | recommended | — | conversion with a bracketed cross-reference payload (parse-only) |
delins.md:73-77 — a GC to TG change is not a di-nucleotide substitution
No, this is not allowed. By definition, a substitution changes one nucleotide into one other nucleotide (see Substitution). The change
TGTGCCAtoTGTTGCAshould be described asg.4_5delinsTG, i.e. a deletion/insertion (delins).
Ferro: the di-nucleotide substitution spelling is refused — the substitution grammar admits one
reference base and one alternate base only. Two adjacent changed nucleotides are described as one
delins, the same separation-zero merge as delins.md:16.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.145CG>AT | refused | — | the disallowed di-nucleotide substitution shape (c.145_146 is CG) — rejected at grammar; see delins.md:16 for the recommended delins form |
delins.md:79-84 — the maximum-unchanged-nucleotides Q&A
Yes, two variants separated by one or more nucleotides should preferably be described individually and not as a “delins” (unless they together affect one amino acid).
Ferro: this restates the :17 separation rule as a preference (“preferably”), on two grounds —
provenance (the variants may have been reported individually) and an annotation-overlap concern.
Provenance is not recoverable by a normalizer, so ferro re-derives from the resulting sequence
rather than preserving the input’s spelling; the separation it measures is read off the re-derived
partition, so two spellings of one variant converge.
Why ferro reads it this way
separation-is-a-property-of-the-spelling-not-of-the-variant — Ferro reads the separation between changes off the partition it re-derives from the resulting sequence, not off the input’s spelling, so two spellings of one variant converge on one output.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[76A>G;123C>T] | recommended | self | separated by far more than one nucleotide — described individually under rule 2 (same row as delins.md:17) |
delins.md:86-89 — the BRCA1 c.2077 Q&A (separation-zero sub+ins merge)
The correct description of this variant is
NM_007294.3:c.2077delinsATA.
NOTE: the answer was modified, i.e. the addition “However, since the variant is likely a combination of two other variants, it is acceptable to describe it asNM_007294.3:c.[2077G>A;2077_2078insTA].” was removed.
Ferro: a substitution immediately followed by an insertion, separation zero, coalesces at one
locus — both members consume reference bases there. The committee itself withdrew an earlier
passage permitting the split spelling, correcting toward the merged form. This is separation-zero,
so it says nothing about the ≥2 axis-scope question :44-47 settles.
The executable twin does not reproduce the BRCA1 delins shape. The spec’s c.2077G>A is a genuine
substitution, so combined with the flush insertion it is a true delins. On the slice’s transcript,
c.76 (A) sits inside an A-run (c.75_77 is AAA), so c.76A>G plus a flush insTA re-derives
to a pure insertion — the substituted base is recovered by the run, and the minimal edit is
c.75_76insGT. That is the correct form for a variant that is, on this reference, purely
insertional; it is not the delins the BRCA1 locus produces.
Why ferro reads it this way
delins-adjacent-members-when-both-consume-reference — Two adjacent changes that both consume reference bases are written as a single delins; the spec marks the split spelling “not correct” at separation zero.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_007294.3:c.2077delinsATA | recommended | — | the spec’s own answer; a fixed point by construction (parse-only) |
NM_007294.3:c.[2077G>A;2077_2078insTA] | recommended | — | the withdrawn split — the committee removed the passage permitting it; ferro merges it to the delins above (parse-only) |
NM_004006.3:c.[76A>G;76_77insTA] | recommended | NM_004006.3:c.75_76insGT | executable twin of the sub+ins shape: c.76 sits in the c.75_77 A-run, so the sub+ins re-derives to a pure insertion — the minimal edit c.75_76insGT, not the BRCA1 delins |
NM_004006.3:c.76delinsGTA | recommended | NM_004006.3:c.75_76insGT | the delins of GTA at c.76 (A, in the A-run) is sequence-identical to inserting GT; ferro collapses it to the minimal insertion form |
delins.md:68-71 — the “indel” terminology Q&A
The term “indel” is not used in HGVS nomenclature (see Glossary).
Descriptive — the term “indel” is not used in HGVS nomenclature (it is ambiguous across disciplines).
Repeated Sequences — ferro’s reading
ferro’s reading of the HGVS repeated sequences recommendations, clause by clause — each spelling with the form ferro normalizes it to and a verdict on that output. New here? See How to read a page for the verdicts, the table conventions, and the recurring terms.
RNA twin: Repeated Sequences (r.).
The grammar fact under the whole page. docs/syntax.yaml’s dna.rpt production declares two
canonical spellings — a single position plus a unit (g.123CAG[23]) and a chained mixed repeat
(g.123_191CAG[19]CAA[4]) — but not the range-plus-unit form (g.123_191CAG[23]) that is the
doc’s dominant worked-example shape, nor a positions-only form (g.123_191[23], no unit) that the
parser nonetheless accepts. Ferro accepts the range+unit, single-position+unit, and range-only
shapes alike; the mismatch between the declared grammar and the doc’s own examples is a
documentation gap, not a ferro obligation.
Executable rows use NM_004006.3, the one transcript in the committed slice. It carries a
mononucleotide A-stretch at c.5690_5697 in the coding sequence (anchoring the coding-restriction
row below) and an AC dinucleotide run at c.*460_*475 in the 3’UTR (anchoring the UTR
carve-out row). The spec’s own examples all sit on accessions the slice does not carry, so those
rows are parse-only (—).
repeated.md:5 — definition: a repeat unit present several times
Repeated sequence: a sequence where, compared to a reference sequence, a segment of one or more nucleotides (the repeat unit) is present several times, one after the other.
Ferro: the repeat unit is one or more nucleotides present in several tandem, adjacent copies — floor length 1, so a mononucleotide homopolymer run is a valid repeated sequence. Descriptive; no normalization obligation.
repeated.md:9 — Community Consultation NOTE, and the OPEN range + unit shape
NOTE: a Community Consultation proposal is being prepared which will suggest to allow only the format where the entire range of the repeated sequence is indicated; so
g.123_191CAG[23], notg.123CAG[23].
Ferro: a forward-looking NOTE describing a proposal still being prepared, not a current rule — no
numbered, dispositioned SVD-WG proposal exists for it, only an unresolved “Ongoing discussions”
entry. Both the single-position form (g.123CAG[23]) and the range+unit form (g.123_191CAG[23])
remain fully legal today, and ferro accepts both. Both spellings are accession-less, so they are
discussed here in prose rather than a verdict table.
The range+unit shape itself is a separate open question. On the RNA page it is a live
self-contradiction — RNA/repeated.md:22 calls it invalid as redundant while :27 publishes
exactly that shape as valid. The DNA page never raises that conflict, yet carries the same shape at
c.-6_-3G[6] (:24). So on DNA the shape is accepted, but whether it should be canonical is held
open, tracked on the RNA-scoped record below and owed upstream (#466).
Why ferro reads it this way
rna-repeat-range-plus-unit-redundancy — On an RNA reference, may a repeat be written with BOTH a position range and the repeat unit (
r.-6_-3g[6])?RNA/repeated.md:22marks that shape invalid as redundant;:27publishes exactly that shape as valid.
The record is RNA-scoped, cited here because the DNA page inherits the same shape by copy while
raising no conflict of its own — so the DNA reading is open by analogy, not decided. See
repeated.md:21-24 for where the carve-out that string demonstrates is in fact correct; only the
spelling is open.
repeated.md:17 — the size range of repeats
- repeated sequences include both small (mono-, di-, tri-, etc., nucleotide) and larger (kilobase-sized) repeats.
Ferro: a scope statement — no ceiling beyond the unit-length-≥1 floor of the definition. No normalization obligation.
repeated.md:18 — mixed repeats: range anchor, then a per-unit listing
- for mixed repeats, the range of the repeat sequence is given followed by a listing of each repeat unit and the number of repeats in each unit;
NC_000012.11:g.112036755_112036823CTG[9]TTG[1]CTG[13].
Ferro: a mixed/composite repeat’s anchor is always a range (never a single position), followed by a
chained unit[n] listing, and ferro parses that shape. The clause does not state whether segmenting
a heterogeneous tract into named unit-runs is unique — the same open shape recorded for delins
splits — but nothing is adjudicated from it here.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000012.11:g.112036755_112036823CTG[9]TTG[1]CTG[13] | recommended | — | a range anchor followed by three unit-runs (parse-only); restated at repeated.md:85-86 |
repeated.md:19-20 — sequenced versus not-sequenced
NM_000044.3:c.171_239GCA[34]describes a repeated sequence containing 34GCAunits (sequenced, the reference sequence contains 23GCAunits).NM_000044.3:c.(92_331)insN[33]describes an insertion of 33 nucleotides in the amplified region from positionc.92toc.331(not sequenced), containing a repeated sequence of 24GCAunits in the reference sequence.
Ferro: the sequenced/not-sequenced dichotomy used throughout the page — a range + concrete unit
when the tract was actually sequenced, and a parenthesized range + insN[#] when only a size
difference was measured. The two make different claims from different evidence, so there is no
confluence question to resolve. This page is the authority for the insN[#]/delN[#] shape;
uncertain.md borrows it back.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_000044.3:c.171_239GCA[34] | recommended | — | the sequenced form — a range + concrete GCA unit (parse-only here) |
NM_000044.3:c.(92_331)insN[33] | recommended | — | the not-sequenced form — a parenthesized-range insN[#] sized insertion (parse-only here) |
repeated.md:21-24 — the multiple-of-3 coding restriction, and the UTR carve-out
- exception: using a coding DNA reference sequence (“c.” description), a repeated sequence variant description can be used only for repeat units with a length which is a multiple of 3, i.e. which can not affect the reading frame. Consequently, use
NM_024312.4:c.2692_2693dupand notNM_024312.4:c.2686A[10]; useNM_024312.4:c.1741_1742insTATATATAand notNM_024312.4:c.1738TA[6]. This restriction only applies to the coding sequence, which does not include the introns or the UTR sequence. As such,NM_024312.4:c.-6_-3G[6]is valid as the reading frame is not affected.
Ferro: inside the coding sequence (not introns, not UTR), a repeat may be described as a repeat
only when its unit length is a multiple of 3, so it cannot shift the reading frame — a shorter unit
is class="invalid" there and must be re-expressed as a dup/ins. Outside the coding sequence
(UTRs, introns) the restriction is switched off and any unit length is legal. Self-contained
clause; the RNA sibling states the identical rule on its own axis.
The parse-only rows below are the spec’s own worked repairs; the two NM_004006.3 rows exercise
both halves on the slice’s real bases.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_024312.4:c.2686A[10] | recommended | — | coding mononucleotide repeat (unit length 1), class="invalid" — ferro repairs it to the recommended c.2692_2693dup, the only legal form in the CDS (parse-only) |
NM_024312.4:c.2692_2693dup | recommended | — | the recommended rewrite of the row above — a dup describing the same change in-frame (parse-only) |
NM_024312.4:c.1738TA[6] | recommended | — | coding di-nucleotide repeat (unit length 2), class="invalid" — ferro repairs it to the recommended c.1741_1742insTATATATA in default/lenient (strict declines the barred spelling) (parse-only) |
NM_024312.4:c.1741_1742insTATATATA | recommended | — | the recommended rewrite of the row above — an ins describing the same change (parse-only) |
NM_024312.4:c.-6_-3G[6] | conformant | — | the 5’UTR carve-out: a mononucleotide repeat (unit length 1) is exempt because c.-6 sits in the 5’UTR, so :24 calls it valid. Also the range+unit shape the open question at repeated.md:9 concerns — the carve-out itself is correct; only the spelling is disputed (parse-only) |
NM_004006.3:c.5690A[10] | recommended | NM_004006.3:c.5696_5697dup | executable coding-restriction row on the slice’s A-stretch (c.5690_5697, in the CDS): A[10] asserts extra As beyond the reference run. Unit length 1 is not a multiple of 3, so the repeat form is barred in the CDS; dup is the only legal form, and ferro’s c.5696_5697dup (the expansion read as a duplication, 3’-shifted to the most-3’ pair) is the recommended output — direct parallel to the spec’s c.2686A[10]→c.2692_2693dup |
NM_004006.3:c.*460AC[9] | recommended | NM_004006.3:c.*475_*476dup | executable UTR-carve-out row: the slice’s AC tract at c.*460_*475 sits in the 3’UTR, so c.*460AC[9] asserts one extra AC copy. Unit length 2 is not a multiple of 3, yet the repeat is legal because it is in the 3’UTR. Ferro reads the expansion as a duplication and applies the 3’rule, emitting the 3’-most dup; mirrors the RNA sibling’s r.*475_*476dup on the identical tract |
No executable row exercises the coding di-nucleotide case: the slice’s short coding tandems are all
unit length 1, so the length-2 branch (c.1738TA[6]) stays parse-only.
repeated.md:28-34 — unique repeat, sequenced
NC_000014.8:g.101179660_101179695TG[14]
a repeatedTGdi-nucleotide sequence, starting at positiong.101179660on human chromosome 14, with 14TGcopies.
Ferro: the plain sequenced unique-repeat form (range + concrete unit), and its two-allele cis-bracket, composing with the standard allele syntax. No new rule beyond the mixed form already covered; both examples are parse-only.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000014.8:g.101179660_101179695TG[14] | recommended | — | the sequenced TG di-nucleotide repeat, 14 copies (parse-only here) |
NC_000014.8:g.[101179660_101179695TG[14]];[101179660_101179695TG[18]] | recommended | — | the di-allelic cis-bracket form — 14 copies on one allele, 18 on the other (parse-only here) |
repeated.md:36-44 — repeat expansion disorders: the repeat-versus-dup choice, and the 3’rule
NM_023035.2:c.6955_6993CAG[26](orc.6955_6993dup)
a repeated CAG tri-nucleotide sequence, starting at positionc.6955in the CACNA1A gene with 26CAGcopies (p.(Gln2319[26])orp.(Gln2319_Gln2331dup)).
Ferro: the CACNA1A example juxtaposes two legal spellings of one variant — c.6955_6993CAG[26]
and c.6955_6993dup — with a bare “(or …)” and no stated preference. A +1-unit tandem expansion is
structurally a duplication of the same terminal bases, so the two denote the same variant. No
DNA-side clause states which is preferred, so which one ferro emits is a canonical-form choice,
derived from the resulting sequence rather than the input’s spelling. (The RNA axis is not silent
here — it prefers repeat notation over dup/del — which is why this is the DNA page’s one
genuinely adjudicated representation choice.)
The ATXN7 row is the 3’rule over a repeat unit: literature calls it a CAG repeat, but on the
coding DNA reference the 3’rule selects the AGC rotation — the same strand-plus-3’rule unit
selection general.md states generally.
Why ferro reads it this way
canonical-form-choice-when-both-legal — When two descriptions of one variant are both legal and no clause chooses between them, ferro applies the edit set to the reference and re-derives the description from the resulting sequence — subject to every explicit spec tie-break, and breaking any remaining tie toward the already-shipped form — rather than preserving the input’s spelling.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_023035.2:c.6955_6993CAG[26] | recommended | — | the CACNA1A repeat form (parse-only) — an alternate legal spelling of the dup below; which one ferro emits is the canonical-form choice above |
NM_023035.2:c.6955_6993dup | recommended | — | the dup spelling of the same +1-unit expansion (parse-only) — both legal, one variant |
NC_000003.12:g.63912687_63912716AGC[13] | recommended | — | the ATXN7 repeat, genomic axis — the AGC unit the 3’rule selects (parse-only here) |
NM_000333.3:c.89_118AGC[13] | recommended | — | the same allele on the coding axis; AGC, not the literature CAG (parse-only here) |
repeated.md:46-52 — not sequenced: insN[#] and delN[#]
NC_000003.12:g.(63912602_63912844)insN[9]/NM_000333.3:c.(4_246)insN[9]
a fragment containing theAGCrepeat in the ATXN7 gene was amplified (from nucleotideg.63912602/c.4tog.63912844/c.246) and its size determined to be 9 nucleotides larger (insN[9]) compared to that of the reference sequence.
Ferro: the sized-but-unsequenced forms — a parenthesized (uncertain) range with insN[#] for a
tract measured longer, or delN[#] for one measured shorter. Both parse; the parenthesized range
is preserved verbatim (nothing determinate to shift).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000003.12:g.(63912602_63912844)insN[9] | recommended | — | the “9 nt larger, not sequenced” genomic form (parse-only here) |
NM_000333.3:c.(4_246)insN[9] | recommended | — | the same on the coding axis (parse-only here) |
NC_000003.12:g.(63912602_63912844)delN[15] | recommended | — | the “15 nt smaller, not sequenced” form (parse-only here) |
NM_000333.3:c.(4_246)delN[15] | recommended | — | the same on the coding axis (parse-only here) |
repeated.md:54-71 — mixed repeat reference sequence: FMR1
NM_002024.5:c.-128_-69GGC[10]GGA[1]GGC[9]GGA[1]GGC[10]
a sequencedGGCtri-nucleotide repeat from positionc.-128toc.-69contains 10GGC, 1GGA, 9GGC, 1GGA, and 10GGCunits (31 repeat units).
Ferro: the FMR1 block is the worked mixed-repeat form (range anchor + per-unit listing), plus three additional notational options and one negative example. All parse-only.
- The explicit per-run listing and the
GGC[68]GGA[1]GGC[10]schematic are two descriptions of different-length alleles of the same tract. c.-128_-69GGM[108]uses the IUPAC ambiguity codeM(A or C) as the repeat unit, standing in forGGA/GGCper iteration —general.mdadmits IUPAC-IUBMB symbols, so the shape is not contested.c.(-144_-16)insN[(1800_2400)]composes the sized-insertion form with an uncertain copy-number range.c.-129CGG[79]isclass="invalid": it “would cover only the sequence up to the firstAGGinterruption”, a fact about the reference bases ferro cannot see on a foreign accession, so ferro parses it as valid and cannot reject it here.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_002024.5:c.-128_-69GGC[10]GGA[1]GGC[9]GGA[1]GGC[10] | recommended | — | the fully-listed mixed repeat (parse-only) |
NM_002024.5:c.-128_-69GGC[68]GGA[1]GGC[10] | recommended | — | the GGC-framed schematic of a longer allele (parse-only) |
NM_002024.5:c.-128_-69GGM[108] | recommended | — | the IUPAC M-unit spelling of the partially-determined tract (parse-only) |
NM_002024.5:c.(-144_-16)insN[(1800_2400)] | recommended | — | sized insertion with an uncertain copy-number range (parse-only here) |
NM_002024.5:c.-129CGG[79] | conformant | — | the spec’s class="invalid" pure-CGG spelling — invalid because the reference tract is interrupted by AGG, a fact ferro cannot check on a foreign accession, so it parses as valid HGVS (parse-only) |
repeated.md:73-78 — mixed repeat reference sequence: HTT
LRG_763t1:c.54_110GCA[23]
a sequencedGCAtri-nucleotide repeat starting at positionc.54contains 23 units, on protein level described asNP_002102.4:p.(Gln18)[25].
Ferro: the HTT GCA repeat — the GCA unit is again the 3’rule’s rotation of the literature
CAG. Sequenced range + concrete unit; parse-only.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_763t1:c.54_110GCA[23] | recommended | — | the sequenced GCA repeat — the 3’rule rotation of the literature CAG (parse-only) |
repeated.md:80-83 — mixed repeat reference sequence: CFTR intron 9
NM_000492.3:c.1210-33_1210-6GT[11]T[6]
the mixed repeat sequence from positionc.1210-33toc.1210-6contains 11GTand 6Tcopies.
Ferro: a two-unit mixed repeat in intron 9, and its sub-range T-stretch-only spelling, when only that portion’s variability was reported. Consistent with the sequenced pattern; parse-only.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_000492.3:c.1210-33_1210-6GT[11]T[6] | recommended | — | the full intron-9 mixed repeat (parse-only here) |
NM_000492.3:c.1210-12_1210-6T[7] | recommended | — | the T-stretch-only sub-range spelling (parse-only here) |
repeated.md:85-86 — a standalone mixed-repeat Example
NC_000012.11:g.112036755_112036823CTG[9]TTG[1]CTG[13]
a complex repeated sequence from positiong.112036755tog.112036823on chromosome 12 with first aCTGunit present in 9 copies, then aTTGunit present in 1 copy and then aCTGunit present in 13 copies.
Ferro: restates the mixed-repeat rule of repeated.md:18 — the row is shown there. Same open
partition-uniqueness question; no duplicate row here.
repeated.md:88-90 — differing genomic and coding descriptions, minus strand
NC_000001.11:g.57367047_57367121ATAAA[15]andNM_021080.3:c.-136-75952_-136-75878ATTTT[15]describe the same repeat allele in intron 3 of the DAB1 gene.
NOTE: based on the 3’ rule and the transcriptional orientation of the gene (minus strand), the description of the repeat units differs.
Ferro: ATAAA‘s reverse complement is TTTAT, and the minus-strand unit ATTTT is that reverse
complement rotated under the 3’ rule — the same strand-plus-3’rule mechanism, demonstrated
genome-versus-transcript. The two spellings denote the same underlying allele (parse-only, foreign
accessions).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000001.11:g.57367047_57367121ATAAA[15] | recommended | — | the genomic (plus-strand) unit ATAAA (parse-only) |
NM_021080.3:c.-136-75952_-136-75878ATTTT[15] | recommended | — | the coding (minus-strand) unit ATTTT — the reverse complement, 3’rule-rotated on the transcript strand (parse-only); denotes the same allele as the row above |
repeated.md:94-101 — Discussion: CFTR intron 9, the GT-versus-TG phase
!!! note “Intron 9 of the CFTR gene ends with the sequence
...tgtgtgtgtgtttttttaacag. Both theTGandTstretches are variable in length (from 9 to 13 and 5 to 9, respectively). The reference sequence has 11TGcopies and 7Ts. Is it correct to describe an allele asc.1210-14TG[13]T[5]or for the T stretch asc.1210-6T[5]?”
Ferro: two points from the worked answer. The 3’rule selects the unit’s phase, not just a position
— the raw run reads as a TG dinucleotide by naive grouping, but the 3’rule forces the GT
rotation (whose boundary sits maximally 3’ against the adjacent T-stretch). And the uncertain
copy-number bracket [(9_13)]/[(4_8)] applies the general parenthetical-uncertainty convention
to the copy-number element. Both are compositions of already-general rules; parse-only.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_000492.3:c.1210-33_1210-6GT[11]T[6] | recommended | — | the reference allele in the GT phase the 3’rule selects (parse-only here) |
NM_000492.3:c.1210-12_1210-6T[7] | recommended | — | the T-stretch-only reference spelling (parse-only here) |
NM_000492.3:c.1210-33_1210-6GT[(9_13)]T[(4_8)] | recommended | — | the population-variability form — uncertain copy-number ranges on both units (parse-only here) |
NM_000492.3:c.1210-12_1210-6T[(5_9)] | recommended | — | the T-stretch population-variability form (parse-only here) |
Alleles — ferro’s reading
ferro’s reading of the HGVS alleles recommendations, clause by clause — each spelling with the form ferro normalizes it to and a verdict on that output. New here? See How to read a page for the verdicts, the table conventions, and the recurring terms.
RNA twin: Alleles (r.).
Two conformant verdicts on this page are not mere limitations. Three rows at alleles.md:5 are
inputs ferro refuses in strict mode at normalize (W5002) — a normalize-time refusal the
checked refused verdict (a strict parse check) cannot carry, so they are recorded on what the
lenient tier emits instead. The [?] and [0] rows re-spell the spec’s own compact form to an
expanded one; the output re-parses, but this is filed as
#2214.
How ferro treats an allele, which every section below rests on: the members are parsed into an
AllelePhase — Cis ([a;b]), Trans ([a];[b]), Unknown (a(;)b) — and each member is
normalized in its own frame. Every merge/collapse pass early-returns unless phase == Cis, so a
cis allele’s members may merge when they sit adjacent, while trans and unknown members
are only individually normalized — never merged, never reordered.
Executable rows use NM_004006.3, the one transcript in the committed slice, over the base facts
established on substitution.md (c.76 is A, c.79 is G, c.80 is C, c.123 is C).
Substitution members are fixed points, which keeps these rows decidable on the hermetic slice. The
spec’s own examples sit on accessions the slice does not carry, so those rows are parse-only (—).
alleles.md:5 — definition, and the member-geometry refusal
Allele: a series of variants on one chromosome.
Ferro: an allele is a series of variants on one chromosome. Two members claiming intersecting reference territory — nested, overlapping, or two insertions at one point — contradict that and are refused. The refusal is coordinate-based (member spans only, no reference bases needed).
Why ferro reads it this way
conflicting-member-geometry-refusal-scope — Two members of one allele that claim intersecting reference territory — nested, overlapping, or two insertions at one interbase — are refused, whatever edit types they render as.
inversion-vs-a-mixed-member-competitor — When a span replaced by its reverse complement competes with a description mixing lone substitutions and multi-column members, ferro writes it as one inv; both forms are conformant, so this is the project’s choice among them.
The geometry-refusal record’s jurisdiction is DNA, governing this clause directly: the definition
(“a series of variants on one chromosome”) is what makes a nested/overlapping/coincident-
insertion pair undenotable, since there is no single chromosome sequence such a pair can be read
off. The inversion record cites this clause too, but only as background — its substantive ruling
rests on inversion.md:5.
The refusal fires at normalize, not at parse — strict parse accepts all three, and the check
runs on the parsed allele’s member spans before any merge. This page’s refused verdict is checked
at strict parse, so it cannot carry a normalize-time refusal; the three rows are recorded on what
the lenient tier emits instead — the input unchanged, carrying the W5002 warning. Read
conformant there as “strict refuses; lenient passes through”, not as ferro accepting intersecting
members.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[76A>G;123C>T] | recommended | self | a well-formed cis allele — two disjoint members, each a fixed-point substitution; kept as a series of variants |
NM_004006.3:c.[9_12del;10_11del] | conformant | self | nested members — the second is inside the first; intersecting territory violates the definition. Strict refuses at normalize (OverlapConflictingEdits / W5002); lenient emits the input unchanged with that warning, which is what this row records |
NM_004006.3:c.[9_12del;11_14del] | conformant | self | overlapping members — same W5002 refusal in strict, same lenient pass-through |
NM_004006.3:c.[8_9insAT;8_9insTC] | conformant | self | two insertions at one point (c.8_9) — coincident insertions; strict refuses (W5002), lenient passes through. The payloads are valid; the geometry is what is refused |
alleles.md:15 — diploidy
- humans are diploid organisms and have two alleles at each genetic locus, with one allele inherited from each parent.
Ferro: background biology — no syntactic or normalization rule to enforce. Descriptive.
alleles.md:16 — cis: g.[variant1;variant2]
- when two variants are identified in a gene that are on one chromosome (in cis), this should be described as
g.[variant1;variant2].
Ferro: parses the ;-joined bracket to AllelePhase::Cis. Members are normalized individually,
and because cis is the one phase not gated out of merging, adjacent members may collapse to a
single delins (governed on delins.md). Members two or more nucleotides apart stay individual, and
the ; join is preserved. The compact, single-prefix form is used only when every member shares
accession and coordinate type — the shape of every worked cis example here.
Why ferro reads it this way
junction-exit-wrapper-scope-in-a-mixed-allele — An allele holds one member whose intronic offset ferro MANUFACTURED and one the author spelled intronic, both on one bare transcript.
checklist.md:20wants a genomic reference for the manufactured member;DNA/alleles.md:16wants one reference factored out of the whole allele. Lift the wrapper to the whole description, or expand to per-member accessions?
The mixed-allele wrapper-scope question is open (undecided). alleles.md:16 describes the cis
shape only when a shared accession+axis prefix already exists. It says nothing about a member that
is an author-spelled bare intronic position paired with a sibling carrying an intronic offset ferro
manufactured, which needs a genomic wrapper — the compact form admits only one accession, so
lifting the wrapper would re-spell the authored sibling, while expanding to per-member accessions
abandons :16’s factored form. Ferro declines today (the offset ships bare), which is the status
quo, not a decision. No executable row: the shape needs a cdot the hermetic slice does not carry.
Examples — cis (alleles.md:30-41)
NM_004006.2:c.[2376G>C;3103del]
Ferro: ordinary same-accession cis alleles (plus two single-variant repeat notations at :37 and
:40, cis framing rather than the cis-bracket grammar). All parse; the foreign-accession ones are
parse-only, except alleles.md:40’s open-ended repeat, whose disclosed render divergence needs no
reference bases and so executes.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:c.[2376G>C;3103del] | recommended | — | the two-change cis allele; foreign accession — parse-only here |
NM_004006.3:c.[76A>G;123C>T] | recommended | self | executable cis twin — two disjoint fixed-point substitutions, ; preserved, no merge (two nucleotides-plus apart) |
NC_000023.10:g.[30683643A>G;33038273T>G] | recommended | — | one accession, two genes (GK, DMD); a gene boundary is metadata, not grammar (parse-only) |
NC_000003.12:g.63912687AGC[(50_60)] | recommended | — | a single-variant repeat with a bounded uncertain copy-number range (parse-only) |
NC_000003.12:g.63912687AGC[(60_?)] | conformant | NC_000003.12:g.63912687AGC[60_?] | open-ended uncertain repeat count. Ferro drops the uncertainty parentheses from the range — a deliberate render choice. The re-spelling needs no reference bases, so this executes despite the foreign accession; it re-parses as valid HGVS but is not the spec’s stated form. Open finding: no ledger record or issue filed |
alleles.md:17 — trans: g.[variant1];[variant2]
- when two variants are identified in a gene that are on different chromosomes (in trans), this should be described as
g.[variant1];[variant2].
Ferro: parses the ];[ join to AllelePhase::Trans. Trans is two chromosomes, so it is gated out
of every merge pass — members are only individually normalized, never merged or reordered. The
compact single-prefix form is used only when every member shares accession and coordinate type; a
[?] or [0] marker member forces the expanded per-bracket-accession form instead (see below).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:c.[2376G>C];[3103del] | recommended | — | the recommended trans form — each allele carries its own variant. Foreign accession — parse-only here |
NM_004006.3:c.[76A>G];[123C>T] | recommended | self | executable heterozygous twin — two fixed-point substitutions on two alleles, kept as two brackets (trans is not cis) |
Examples — trans (alleles.md:45-66)
NM_004006.2:c.[2376G>C];[2376G>C]
Ferro: the trans example shapes — heterozygous (two different members), homozygous (the same
member on both alleles, not shortened), a reference-allele arm ([2376=], position-wild-type, kept
distinct from the whole-sequence [=]), and an unknown second allele ([?]). The two invalid
shortenings of the homozygous case are class="invalid" and refused at parse.
The alleles.md:59 NOTE draws a meaning distinction the parser must not erase: c.[2376=] asserts
wild-type at position 2376, while c.[=] asserts the whole coding DNA reference sequence
was analysed and unchanged. Ferro preserves each exactly and never collapses one into the other.
The [?] shape is re-spelled. Ferro keeps the [?] member but renders the whole allele in the
expanded per-bracket-accession form — the accession moves inside the first bracket, in every mode,
on the c. axis as documented on the RNA twin, and for [0] too. A [2376=] or [=] second
member stays compact. The output is valid HGVS and re-parses — the expanded form is what
alleles.md:110 recommends for a two-accession trans allele — but it is not the shape of the
spec’s same-accession example. Filed as
#2214.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[76A>G];[76A>G] | recommended | self | executable homozygous twin — identical members on two alleles, kept as two brackets, not shortened |
NM_004006.3:c.76[A>G];[A>G] | refused | — | the factored-prefix shortening (class="invalid") — rejected at parse |
NM_004006.3:c.76A>G[];[] | refused | — | the empty-arm shortening (class="invalid") — rejected at parse |
NM_004006.2:c.[296T>G;476T>C;1083A>C];[296T>G;1083A>C] | recommended | — | three-variant-cis vs two-variant-cis trans compound (parse-only) |
NM_004006.3:c.[76A>G];[76=] | recommended | self | c.76= = position-wild-type member (the other allele carries the reference at c.76), preserved, not collapsed to [=] |
NM_004006.3:c.[76A>G];[=] | recommended | self | the whole-sequence [=] member — a different meaning from [76=], preserved as written |
NM_004006.3:c.[76A>G;123=];[76=;123del] | refused | — | the cross-spelled form the :18-19 prohibition names — rejected at parse; see alleles.md:18-19 |
NM_004006.2:c.[2376G>C];[?] | recommended | — | [?] = unknown second allele, preserved (parse-only) |
NM_004006.3:c.[76A>G];[?] | conformant | [NM_004006.3:c.76A>G];[?] | executable twin — the [?] member is kept, but the allele is re-spelled from the compact form to the expanded per-bracket-accession form. Valid, re-parses; not the recommended shape (#2214) |
alleles.md:18-19 — the cross-spelled = filler is not correct
- using allele descriptions involving two or more different variants: you do not indicate the other allele does not contain the variant (unless one allele contains no variants at all).
LRG_199t1:c.[2376G>C];[3103del]is correct,LRG_199t1:c.[2376G>C;3103=];[2376=;3103del]is not correct.
Ferro: this is the one clause on this page carrying real prose force (“is not correct”,
class="invalid") rather than a soft “should”. The recommended spelling lists each allele’s own
variant, c.[a];[b]. Padding each allele’s bracket with the other allele’s positions as =
fillers is the cross-spelled form marked invalid — the “not changed” indication is used only when
one variant was identified. Ferro rejects it at parse, in every mode, regardless of spelling
variant. A single-member [3103=] beside [3103del] is the sanctioned form (alleles.md:59) and
is accepted. This is an absolute prohibition, enforced unconditionally.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:c.[2376G>C];[3103del] | recommended | — | the correct form — each allele carries its own variant (parse-only) |
NM_004006.2:c.[2376G>C;3103=];[2376=;3103del] | refused | — | the class="invalid" cross-spelled form — rejected at parse |
NM_004006.3:c.[76A>G;123=];[76=;123del] | refused | — | executable twin — c.76 carries a concrete edit in one bracket and an = filler inside a multi-member bracket in the other; rejected at parse |
alleles.md:20-22 — unknown / uncertain phase: variant1(;)variant2
- when two variants are identified in a gene, but when it is not known whether these are on one chromosome (in cis) or on different chromosomes (in trans), this should be described as
variant1(;)variant2, i.e. without using[ ].
NOTE: in the latest publication of the recommendations (Den Dunnen et al. (2016)), the example given is not correct.
NOTE: it is recommended to determine whether the changes are on the same chromosome or not.
Ferro: parses the bracket-less (;) join to AllelePhase::Unknown and keeps the compact, no-[ ]
form. Unknown phase is gated out of merging — members are individually normalized and never merged
or reordered; brackets are refused around an unknown-phase pair. Both NOTEs are descriptive, not
something a normalizer acts on.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:c.2376G>C(;)3103del | recommended | — | the spec’s own unknown-phase example (parse-only) |
NM_004006.3:c.76A>G(;)123C>T | recommended | self | executable twin — no brackets, two fixed-point members individually normalized, (;) and order preserved |
NM_004006.2:c.[296T>G;476T>C];[476T>C](;)1083A>C | recommended | — | a three-way mixed cis/trans/unknown-phase compound (parse-only); ferro’s phase-mixing grammar composes cis groups joined by (;) |
Two example shapes here are soft gaps. alleles.md:75’s c.2376G>C(;)(2376G>C) (the same variant
repeated in parens, “the other allele possibly deleted”) is unverified to round-trip as its own
composite — the parenthesized/predicted member is a known DNA construct, so it is likely accepted
structurally, but unconfirmed. alleles.md:81’s four-variant compound has no string-for-string pin
either. Neither is asserted as a verdict row.
alleles.md:23 — different reference sequence types
- descriptions combining variants based on different reference sequence types (e.g.,
c.[76A>C];g.[10091C>G]) should not be used.
Ferro: the prose reads “should not be used” — a preference (rule 2), not an absolute prohibition. A compact form with a mixed prefix inside one bracket is a genuine grammar violation and is refused at parse, but the fully-expanded, syntactically distinct trans shape (each member carrying its own accession and coordinate type) is accepted verbatim as spec-discouraged. The spec’s own illustration is not itself well-formed under the compact-form grammar, so ferro’s split — compact mixed prefix rejected, expanded cross-reference accepted-but-discouraged — is a sharper distinction than the spec draws.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[76A>G;g.10091C>G] | refused | — | a mixed prefix inside one compact bracket — a genuine grammar violation; rejected at parse |
[NM_004006.3:c.76A>G];[NC_000023.10:g.33038255C>A] | conformant | — | the fully-expanded cross-reference trans form — different reference sequence types across brackets. Ferro accepts it as spec-discouraged (rule-2 preference, not an absolute ban); parse-only. Deliberate, disclosed policy, no issue filed |
alleles.md:86-90 — Discussion: the retracted + separator
!!! note “Was originally the recommendation to use the format
[c.76A>C+c.83G>C]?”
Ferro: the + separator inside allele brackets is class="invalid" — a retracted proposal. The
; is the recommended cis separator; ferro rejects + at parse.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[76A>G+123C>T] | refused | — | the retracted + separator — not valid HGVS; rejected at parse. The recommended cis form uses ; (c.[76A>G;123C>T]) |
alleles.md:92-97 — Discussion: recording variant combinations
!!! note “In recessive diseases, is it important I show in which combination variants were found?”
Ferro: advisory guidance to record the cis/trans combination clearly — picks no canonical form,
constrains no normalization. Descriptive; the machinery is covered at alleles.md:16, :17 and
:20-22.
alleles.md:99-101 — Discussion: the empty allele []
!!! note “I find the notation
c.[76A>C]without describing the second allele misleading; not enough researchers know this refers to only one of the two alleles present. Would usingc.[76A>C];[]be OK?”
Ferro: the empty second allele [] is class="invalid" — refused at parse. The spec’s recommended
answer names the second allele’s state instead, c.[76A>C];[76=] — the fully-bracketed
position-wild-type form ferro emits and accepts.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[76A>G];[] | refused | — | the empty allele [] (class="invalid") — rejected at parse. Recommended: name the second allele’s state, e.g. c.[76A>G];[76=] |
NM_004006.3:c.[76A>G];[76=] | recommended | self | the fully-bracketed form ferro emits for “variant on one allele, wild-type at that position on the other” |
alleles.md:103-106 — Discussion: X-chromosome male, c.0 for an absent allele
!!! note “How should I describe the variants detected in males and females for a gene on the X-chromosome?”
Ferro: c.0 denotes an absent second allele (no second X-chromosome in a male). Ferro accepts the
[0] member as a distinct construct from a bare c.0 coordinate, which is separately and
correctly rejected as an invalid position. The female case is the ordinary [variant];[76=] trans
form. The male case is subject to the same re-spelling as [?]: the member is preserved, but the
allele is rendered in the expanded per-bracket-accession form
(#2214).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:c.[76A>C];[76=] | recommended | — | the female case — an ordinary position-wild-type trans allele (parse-only) |
LRG_199t1:c.[76A>C];[0] | recommended | — | the male case — [0] = absent second allele, preserved (parse-only) |
NM_004006.3:c.[76A>G];[0] | conformant | [NM_004006.3:c.76A>G];[0] | executable twin — the [0] absent-allele member is accepted and kept unmerged, but the allele is re-spelled from the compact form the spec writes to the expanded one. Valid, re-parses; not the recommended shape (#2214) |
alleles.md:108-113 — Discussion: gene symbols in trans
!!! note “I have a patient with hearing loss and variants in the GJB2 (
c.35delG) and GJB6 (c.689_690insT) genes in trans, how should I describe this? (Nancy Carson, Ottawa, Canada)”
Ferro: the recommended standard-accession trans form is an ordinary expanded cross-reference trans
allele — accepted (parse-only). The alternative gene-symbol-only form (HGNC symbols as the sole
reference identifier) is a soft gap: ferro covers gene-selector-on-transcript forms
(NM_X(GENE):c…), but the gene-symbol-as-sole-identifier shape at this exact spelling is
unconfirmed.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
[NM_004004.2:c.35del];[NM_006783.1:c.689_690insT] | recommended | — | the standard-accession trans form; foreign accessions — parse-only here |
alleles.md:115-125 — Discussion: haplotype short format
!!! note “When for a haplotype I have a range of changes to report, is there a suggested short format to use?”
Ferro: the short haplotype notation is out of scope by design — it is interpretable only once the reference sequences and variant list are “clearly specified” elsewhere, side-channel context a context-free HGVS validator has no place to carry. Not a parser gap; intentionally out of scope.
alleles.md:127-140 — Discussion: Peter Taschner’s suggested shorthand
!!! note “Suggestion (Peter Taschner, Leiden)”
Ferro: the informal genotype shorthand is explicitly labelled a suggestion, not adopted into the recommendations. Descriptive, no implementation expectation.
See also → substitution.md:5 (the NM_004006.3 base facts the executable substitution members
rely on), RNA/alleles.md:36-52 (the c.-axis [?]/[0] re-spelling documented on the RNA twin),
inversion.md:5 (where the substantive inversion ruling that only cites alleles.md:5 as
background actually rests).
Complex (HGVS/ISCN) — ferro’s reading
ferro’s reading of the HGVS complex (HGVS/ISCN) recommendations, clause by clause — each spelling with the form ferro normalizes it to and a verdict on that output. New here? See How to read a page for the verdicts, the table conventions, and the recurring terms.
This page is almost entirely the ISCN named extension — translocations, ring chromosomes,
pericentric inversions, supernumerary/marker chromosomes, and the symbol conventions those need.
These descriptions are genomic, sitting on chromosome (NC_), chr, NG_ or foreign accessions
the committed reference slice does not carry — so every verdict row on this page is parse-only
(Normalizes to = —): the verdict is what ferro’s strict parse does with the string, read
without reference bases. Refusals keyed on specific ISCN spellings (comma-thousands coordinates,
the removed cross-chromosome ::, the dupinv form) are the parser’s own grammar rejections, in
every mode; the spec text is unambiguous enough that a rejection is plainly conformant, so no
dedicated ledger record is needed for them.
complex.md:5 — definition: the residual “complex” bucket
Complex: a sequence change where, compared to a reference sequence, a range of changes occur that can not be described as one of the basic variant types (substitution, deletion, duplication, insertion, inversion, deletion-insertion, or repeated sequence).
Ferro: “complex” is the residual category — what remains when no basic variant type fits. It is
load-bearing elsewhere: it is precisely because a ring chromosome has no single-type description
that the self-cancelling prohibition does not reach across its :: junctions (see
complex.md:130). Descriptive.
complex.md:12-13 — ISCN describes structure, HGVS describes the variants
It should be noted there is a basic difference between ISCN and HGVS: while ISCN describes the structure of the resulting chromosome(s), HGVS describes the variant(s) detected. It should be noted that the description of complex changes can become rather complicated and at some point, although literally correct, becomes effectively meaningless.
Ferro: background framing. ISCN describes the resulting chromosome; HGVS describes the variants
detected. The :13 warning — that a complex description can be “literally correct” yet
“effectively meaningless” — is why a structural rejection rule is not minted from worked examples
plus biology alone (see the open anchoring question at complex.md:28). Descriptive.
complex.md:46-47 — nucleotide positions with comma-thousands are not HGVS
- in ISCN, it is allowed to describe nucleotide positions using commas to indicate thousands and millions (e.g., “108,111,982”). In HGVS, this is not allowed.
Ferro: a flat prohibition — one of the few strong statements in the file. A coordinate written with comma-thousands separators is an ISCN rendering, not valid HGVS, and is refused — the parser fails at the first comma, in every mode.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
chr2:g.pter_8,247,756::chr11:g.15,825,273_cen_qter | refused | — | the ISCN rendering of the balanced t(2;11) (complex.md:75): comma-thousands coordinates on a chr accession; not an HGVS string. Rejected at parse (the first comma), in every mode |
complex.md:60-64 — translocations are described as delins, not with ::
HGVS recommendations try to avoid such conflicts wherever possible. HGVS, therefore, recommends to describe translocations exclusively using a “delins” format.
Ferro: ISCN2020 narrowed :: to the ring-junction use only; the earlier cross-chromosome ::
(translocation/transposition) use was removed. The spec recommends translocations “exclusively” as
delins[ACC:g…] — the adjacent delins row is the HGVS-proper form, and the cross-chromosome ::
string is not (class="invalid" at complex.md:72). Ferro accepts the delins form and refuses
the cross-chromosome :: composite at parse, in every mode — :: is admitted only between
same-accession segments (the ring form at complex.md:130), so a second accession after it is a
grammar error.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000002.12:g.pter_8247756delins[NC_000011.10:g.pter_15825272] | recommended | — | the balanced t(2;11) as the spec’s delins form (complex.md:70); parse-only |
NC_000002.12:g.pter_8247756::NC_000011.10:g.15825273_cen_qter | refused | — | the removed cross-chromosome :: form (class="invalid" at complex.md:72) — ISCN2020 dropped :: for translocations, so this is refused and the delins form above is used instead |
complex.md:130 — :: joins a ring; it is not ;
NOTE: “::” is used to indicate the join, instead of “;” to describe two not connected deletions.
Ferro: :: carries connectivity that ; does not. Two del segments joined by :: form a ring (a
fused-break topology); the same two joined by ; are two independent deletions. A :: composite
is therefore not reducible to its member set, so general.md:57’s self-cancelling prohibition —
which can only redirect to a competing single-type description — cannot reach across a ring’s ::
junctions, because a ring (complex by definition, complex.md:5) has no such single-type
description. Ferro accepts ring composites.
Why ferro reads it this way
self-cancelling-across-ring-junctions — The prohibition on replacing part of a sequence with part of itself does not reach the ‘::’-joined segments of a ring chromosome, so ferro keeps a ring’s members rather than collapsing them to a linear delins.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000022.11:g.pter_(12200001_14700000)del::(37600001_41000000)_qterdel | recommended | — | the ring-chromosome form (complex.md:127): two del segments joined by ::, which ; cannot express (parse-only) |
NC_000022.11:g.[pter_(12200001_14700000)del::(37600001_41000000)_qterdel]sup | recommended | — | the supernumerary ring (sup, complex.md:161) — an additional ring not attached to other chromosomal material; parse-only here |
complex.md:28 — ring telomere anchoring is undecided
the start of the chromosome is described as
pter, the end asqter, and the centromere ascen.
Ferro: the clause defines what pter/qter/cen mean; it does not command their presence. The
open question is whether a ring’s first :: segment must start at pter and its last end at
qter, so a ring naming only interior coordinates would be refused. The spec publishes only
anchored rings and biology agrees a ring loses both telomeres — but no clause states the
requirement, and complex.md:13 counsels against reading a rejection rule out of worked examples
alone. This is undecided. Ferro accepts an unanchored ring today — the status quo, not a ruling
either way.
Why ferro reads it this way
ring-telomere-anchoring — Must a ring chromosome’s first
::segment start atpterand its last end atqter, so that a ring whose segments name only interior coordinates is refused?
complex.md:49-55 — the 3’ rule and breakpoint ordering
to determine the location of the break point, the general HGVS rule of maintaining the longest unchanged sequence applies (the 3’ rule). Break point location is determined by the first break point encountered, i.e.
pterof the chromosome is to be listed first.
Ferro: the ISCN-structural placement/ordering conventions. :50 restates the general 3’ rule for
breakpoint placement; :51, :53 and :55 fix segment order (pter to qter) and forward
orientation. Consistent with ferro’s existing behaviour; effectively descriptive on this page.
complex.md:134-140 — an orientation-reversed tandem duplication is ins(range)inv
NC_000008.11:g.(131500001_136400000)ins(127300001_131500000)_(131500001_136400000)inv
for ISCNdup(8)(q24.22q24.21)
(within a chromosome, orientation reversed relative to original sequence, breakpoint not sequenced)
Ferro: a duplication whose copy is inserted in reversed orientation is spelled ins<range>inv,
naming the source span — never dupinv, which is class="invalid" (inversion.md:19; primary
authority inversion.md:69). Ferro derives the ins<range>inv form rather than expanding the
payload to literal reverse-complement bases, and refuses dupinv.
Why ferro reads it this way
inverted-duplication-is-derived-as-ins-range-inv — An inverted duplication is written as ‘ins
inv’, naming the span the inverted copy came from, rather than expanded to reverse-complemented literal bases; whether a payload counts as an inverted copy at all is gated by a house coincidence-probability floor, not any spec-stated minimum — and it is wired today only in normalize_genome, so c./n./r./m. still emit literals.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000008.11:g.(127300001_131500000)_(131500001_136400000)dup | recommended | — | the same-orientation tandem duplication (complex.md:134); parse-only |
NC_000008.11:g.(131500001_136400000)ins(127300001_131500000)_(131500001_136400000)inv | recommended | — | the orientation-reversed duplication as ins<range>inv, naming the source span (complex.md:138); parse-only here |
NC_000008.11:g.(127300001_131500000)_(131500001_136400000)dupinv | refused | — | the dupinv spelling for the same event — class="invalid" at inversion.md:19; rejected at parse (trailing inv after dup), in every mode. The ins<range>inv form above is used instead |
complex.md:113-117 — pericentric inversions as [;] cis alleles
NC_000006.12:g.[776788_93191545inv;93191546T>C]
Ferro: worked examples spelling a complex rearrangement as a [;] cis allele of basic edit types —
an inv beside a substitution, and del + inv + ins. Their multi-megabase members are
genuinely distinct events, so there is no separation/merge tension; they corroborate that connected
complex changes are ;-joined cis alleles of basic types. Descriptive.
complex.md:169-175 — Discussion: ad-hoc labels are refused; N[count] is legal
No, not really, it is not exact.
Ferro: three points from the Q&A. Ad-hoc labels (TSD, insL1.603bp) are not valid HGVS — a
description must be exact — and are refused. The discussion restates the duplication definition
(complex.md:173): dup is used only when the duplicate sits directly 3′ of the original copy,
corroborating that the dup label ranks the change itself, not how the partition was cut.
N[count] is the spec’s own endorsed spelling for an unknown-sequence insert of known size
(complex.md:175) — legal HGVS; the only place ferro refuses an N-unit repeat is the HGVS→SPDI
conversion path, where it declines rather than emit a storable-but-wrong triple, leaving the HGVS
spelling untouched.
Why ferro reads it this way
duplication-must-ranks-the-label-not-the-partition — The rule that a duplication must be labelled ‘dup’ ranks the label of each piece ferro derives, not the partition; the one exception is a net-longer tandem copy of a multi-base motif, where the derivation is cut to expose the dup rather than merged into a delins.
spdi-n-unit-repeat-refusal — On the HGVS-to-SPDI path ferro refuses an ‘N’-unit or ‘N’-containing repeat rather than expand it to literal ‘N’ bases — a project choice, since ‘N’ states a length, not identified bases, and the recommendations do not reach SPDI conversion.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.1:c.123+45_123+51TSDinsL1.603bp | refused | — | the ad-hoc TSD / insL1.603bp labels — class="invalid" at complex.md:169; a description must be exact, so this is rejected at parse |
NG_012232.1(NM_004006.2):c.123+51_123+52ins[N[603];123+45_123+51] | conformant | — | the spec’s endorsed unknown-insert form (complex.md:175): N[603] gives the size, the range describes the target-site duplication as an insertion — legal (only the SPDI path refuses an N-unit repeat). On a real c. reference ferro would expand the same-reference range citation to literal bases, so the output is not the recommended range-citation form — conformant (parse-only) |
Coverage note (structural)
The normalization corpus exercises essentially none of complex.md: multi-megabase genomic
breakpoints, cross-chromosome and ring :: composites, sup/marker chromosomes, ISCN
comma-thousands renderings, and orientation-reversed dup-as-ins(range)inv are all outside what
the corpus generator can emit — it has no ISCN/complex axis. A 0 from that corpus here is a claim
about the instrument, not about this file’s behaviour; confidence about complex/ISCN normalization
must come from targeted fixtures, not the corpus.
See also → inversion.md:69 (the primary authority for the derived ins<range>inv form),
inversion.md:19 (dupinv marked invalid), general.md:57 (the self-cancelling prohibition the
ring :: join escapes).
Other — ferro’s reading
ferro’s reading of the HGVS other recommendations — the “no change” (=) assertion,
methylation (|gom/|lom/|met=), and the mosaic (=/) and chimeric (=//) mixtures — clause
by clause, each spelling with the form ferro normalizes it to and a verdict on that output. New
here? See How to read a page for the verdicts, the table conventions,
and the recurring terms.
No ruling record in the ledger cites other.md: the notation families here are either mechanical
(the = identity and the methylation tokens) or governed — for mosaicism and chimerism — by
clauses general.md:91-92 attributes to substitution.md, adjudicated on that page.
The one interesting behaviour is a mosaic whose member 3’-shifts: when a del member inside =/
shifts under the 3’rule while the = range does not, ferro abandons the compact form and repeats
the accession — the same finding the deletion page carries at deletion.md:105-110. It gets its
own section below.
Executable rows use NM_004006.3, the one transcript in the committed slice, over known bases:
c.123 is C, c.124 is A, and c.5690_5697 is an A-stretch. The spec’s own worked examples
sit on accessions the slice does not carry, so those rows are parse-only (—).
other.md:5-7 — definition: no change, mosaic, chimeric
No change: a sequence was analysed, but no variant was detected. Mosaic: the occurrence in one individual of two or more cell populations, derived from a single zygote, with different sequences. Chimeric: the occurrence in one individual of two or more cell populations, derived from different zygotes, with different sequences.
Ferro: pure terminology — biological definitions of three terms, with no notation, position or edit a normalizer can act on. Descriptive.
other.md:23-28 — no change: one nucleotide, and the self-substitution prohibition
NOTE: the description
c.123C>Cis not allowed.
Ferro: a tested, unchanged position is spelled <pos>= — there is exactly one legal spelling per
(position, “no change”) pair. The self-substitution c.123C>C is class="invalid" and is not a
synonym for c.123= — strict rejects it, lenient repairs it to c.123= (the same behaviour
adjudicated on substitution.md:19).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11:g.32867908= | recommended | — | the spec’s own genomic “no change” example (parse-only) |
LRG_199t1:c.123= | recommended | — | the spec’s own coding example (parse-only) |
NM_004006.3:c.123= | recommended | self | executable twin — c.123 is reference C, so the identity assertion is already a fixed point |
NM_004006.3:c.123C>C | recommended | NM_004006.3:c.123= | the class="invalid" self-substitution repaired to the recommended = (matches substitution.md:19) |
other.md:31-38 — no change: several nucleotides, and the identity allele
a screen was performed showing nucleotides
c.123,c.456, andc.789(all on the same allele) were identical to the coding DNA reference (the nucleotides were not changed).
Ferro: the identity form extends to a range (<start>_<end>=) and to a multi-member allele of
independent “no change” assertions ([<pos>=;<pos>=;…]). Each is syntactically unambiguous, so
each is a fixed point.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11:g.32867908_32867923= | recommended | — | the spec’s own genomic range example (parse-only) |
LRG_199t1:c.123_145= | recommended | — | the spec’s own coding range example (parse-only) |
NM_004006.2:c.[123=;456=;789=] | recommended | — | the spec’s own multi-member identity allele (parse-only) |
NM_004006.3:c.123_124= | recommended | self | executable range twin — identity over c.123 (C) and c.124 (A), a fixed point |
NM_004006.3:c.[123=;124=] | recommended | self | executable multi-member identity allele on the slice’s transcript, preserved |
other.md:42-46 — methylation (|gom/|lom/|met=)
the sequence from position
g.1999904tog.1999946showed a gain of methylation (|gom).
Ferro: the three methylation-state tokens — gain (|gom), loss (|lom) and normal (|met=) —
parse and round-trip, so ferro accepts and preserves each. A methylation marker carries no
reference bases to shift, so each is a fixed point. This is the one notation family this doc
genuinely originates (general.md:93 names other.md as its authority), yet it has no grammar
entry in syntax.yaml and no committed worked-example pin, so its round-trip is unverified by any
guard. The spec’s three examples — NC_000011.10:g.1999904_1999946|gom (gain), …|lom (loss) and
…|met= (normal) — sit on a foreign accession, so they are parse-only and shown inline rather than
in a table (| is not a markdown-table-safe character).
other.md:50-52 — mosaicism (=/): the compact reference-first form
NOTE: irrespective of the frequency in which each nucleotide was found, the reference is always described first.
Ferro: the mosaic operator / joins two members of a single mixed sample; the recommendations
write the reference member first, in the compact form <pos>=/<edit> where the = identity
carries the position and the bare edit inherits it. Ferro reorders a variant-first input to that
form (#2034), governed on
substitution.md:47-49, but only for an exactly two-member mixture whose first member is a certain
substitution and whose second is a certain identity it can absorb without loss: a whole-entity =,
or a position-bound = at the substitution’s own position, accession and axis. Any other identity — a
screened region such as c.85T>C/c.60_70= — stays in authored order.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:c.85=/T>C | recommended | — | the spec’s own mosaic example, reference-first (parse-only) |
NM_004006.3:c.123=/C>T | recommended | self | executable mosaic-substitution twin — reference = written first per the NOTE, single-base member so no shift |
NM_004006.3:c.123C>T/= | recommended | NM_004006.3:c.123=/C>T | variant-first shorthand; ferro reorders it reference-first, as the NOTE and substitution.md:49 write it (#2034) |
other.md:49 — a mosaic whose del member 3’-shifts (the finding)
mosaicism
The compact mosaic form <pos>=/<edit> shares one range between the = identity and the edit
member. When that edit is a del sitting in a shiftable run, the 3’rule moves the del member but
not the = range — so the shared range no longer describes both members, and ferro abandons the
compact form and repeats the accession after =/ rather than shifting the shared range with the
deletion. Same finding as deletion.md:105-110; no tracking issue filed yet.
The two fixed-point rows show the compact form is preserved when the member is already 3’-most;
the last row is the finding — the del member shifts off the shared range.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.5695_5697=/del | recommended | self | executable mosaic twin — the del member is already 3’-most within the A-stretch, a fixed point, so the compact form holds |
NM_004006.3:c.5695_5697=//del | recommended | self | executable chimeric twin — same 3’-most member, compact form preserved |
NM_004006.3:c.5690_5692=/del | conformant | NM_004006.3:c.5690_5692=/NM_004006.3:c.5695_5697del | the finding — the del member 3’-shifts to c.5695_5697 while the = range stays at c.5690_5692, so ferro abandons the compact form and repeats the accession after =/. Re-parses (conformant, not a bug), but the recommended spelling is the compact c.5695_5697=/del. No tracking issue yet |
other.md:55-57 — chimerism (=//)
NOTE: irrespective of the frequency in which each nucleotide was found, the reference is always described first.
Ferro: identical in structure and jurisdiction to mosaicism — // joins two members of a mix of
cell populations, governed by the same substitution.md authority as /. Ferro accepts and
preserves the compact chimeric form, and reorders the variant-first substitution shorthand to it
(#2034) under the same two-member,
lossless-identity limits as /; a non-co-located identity such as c.85T>C//c.60_70=, or one
stating a base such as c.85T>C//c.85A=, stays in authored order.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:c.85=//T>C | recommended | — | the spec’s own chimeric example (parse-only) |
NM_004006.3:c.123=//C>T | recommended | self | executable chimeric-substitution twin — reference = written first per the NOTE |
NM_004006.3:c.123C>T//= | recommended | NM_004006.3:c.123=//C>T | variant-first shorthand; ferro reorders it reference-first, as the NOTE writes it (#2034) |
Substitution — ferro’s reading
ferro’s reading of the HGVS substitution recommendations on the transcript (r.) axis,
clause by clause — each spelling with the form ferro normalizes it to and a verdict on that
output. New here? See How to read a page for the verdicts, the table
conventions, and the recurring terms.
DNA twin: Substitution (c./g.).
The RNA axis mirrors DNA substitution — the same 1→1 definition, the same
separation/codon-exception rule, the same ban on the multi-base spelling and the “polymorphism”
slash — and diverges only in surface: lowercase letters, u for t (general.md:49), and
predicted-consequence parentheses.
Executable rows use NM_004006.3, the one transcript in the committed slice. A few spec examples
cite accessions or bases the slice doesn’t carry; those rows are parse-only (—), with an
executable twin shown alongside where one exists.
substitution.md:5 — definition: one nucleotide for one
Substitution: a sequence change where, compared to a reference sequence, one nucleotide is replaced by one other nucleotide.
Ferro: a substitution is exactly 1→1 on the r. axis, lower-case with u for t
(general.md:49). IUPAC ambiguity codes may stand in for the replacing base, but only the fifteen
symbols the RNA table assigns — x is refused, since the RNA table has no alignment-only symbol.
Applies uniformly across 5’UTR, CDS, and 3’UTR numbering.
Why ferro reads it this way
rna-axis-alignment-only-symbol-reach — A non-leading lower-case ‘x’, which is not an assigned RNA nucleotide symbol, is refused in an ‘r.’ description, mirroring the refusal of the alignment-only ‘X’ on the DNA axes.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.76a>c | recommended | self | the spec’s own example — canonical single-base substitution |
NM_004006.3:r.54g>h | recommended | self | replacement is IUPAC h (a/c/u) — one of the fifteen assigned RNA symbols |
NM_004006.3:r.54g>x | refused | — | x is not an assigned RNA symbol — rejected at parse |
NM_004006.1:r.-14a>c | recommended | — | the spec’s own 5’UTR example, on a transcript version the slice lacks — parse-only |
NM_004006.3:r.-14a>c | recommended | self | executable twin on the slice’s version, 14 nt 5’ of the start codon |
NM_004006.3:r.*41u>a | recommended | — | the spec’s own 3’UTR example; the slice’s base differs, so this row is parse-only — see the executable twin below |
NM_004006.3:r.*40u>a | recommended | self | stated-flank twin on the slice, 40 nt 3’ of the stop codon |
NM_004006.3:r.76aa>ug | refused | — | two nt — violates 1→1; rejected as deprecated multi-base substitution syntax (see :16) |
substitution.md:15 — DNA-level reporting is authoring practice, not a normalizer rule
all variants should be described on the DNA level; descriptions on the RNA and/or protein level may be given in addition.
Ferro: guidance for authors on which level(s) to report — not a constraint on normalizing an r.
description, which stands on its own.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.76a>c | recommended | self | a lone RNA-level description is valid; no accompanying c./g. form required |
substitution.md:16 — two or more nucleotides is a delins
substitutions involving two or more consecutive nucleotides are described as deletion/insertions (delins)
Ferro: a multi-base replacement is never a substitution on r.; it is written as a delins (worked
further at :28-29).
Why ferro reads it this way
absolute-prohibition-enforcement-stage — Spellings the spec prohibits are rejected — at parse in strict mode; lenient mode instead repairs the input where it can and fails only if it cannot normalize.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.76_77delinsug | recommended | self | the two-base change written as a delins — both bases change, a genuine delins |
NM_004006.3:r.76_77aa>ug | refused | — | rejected: “deprecated multi-base substitution syntax” — use delins |
NM_004006.3:r.76aa>ug | refused | — | same rejection, the single-position variant of the invalid spelling |
substitution.md:17-19 — separation, and the one-codon exception
- two substitutions separated by one or more nucleotides should be described individually and not as a “delins”.
- exception: two variants separated by one nucleotide, together affecting one amino acid, should be described as a “delins” (e.g.,
r.142_144delinsugg(p.Arg48Trp)).
NOTE: this prevents tools predicting the consequences of a variant to make conflicting and incorrect predictions of two different substitutions at one position.
Ferro: the separation rule (rule 2), as on the DNA axis; the codon exception folds two substitutions into one delins when they sit one nucleotide apart and together change one amino acid, applied triplet-precisely within the reading frame.
Why ferro reads it this way
separation-rule-force-modal-or-negation — Two changes a nucleotide or more apart are described individually — this is the spec’s preference (ruleset rule 2), not an outright ban; the only spelling the recommendations forbid is the split at separation zero.
delins-codon-carve-out-gap-one — Two changes one nucleotide apart that together affect a single amino acid are written as one delins on the coding sequence, the explicit exception the spec makes to describing them individually.
canonical-form-choice-when-both-legal — When two descriptions of one variant are both legal and no clause chooses between them, ferro applies the edit set to the reference and re-derives the description from the resulting sequence — subject to every explicit spec tie-break, and breaking any remaining tie toward the already-shipped form — rather than preserving the input’s spelling.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.142_144delinsugc | recommended | self | stated-flank twin of the spec’s codon-48 example (agg→ugc, p.(Arg48Cys)) — one codon, fixed point |
NM_004006.3:r.[142a>u;144g>c] | recommended | NM_004006.3:r.142_144delinsugc | one nucleotide apart, one amino acid — ferro normalizes the split to the recommended delins |
NM_004006.3:r.142_144delinsugg | recommended | NM_004006.3:r.142a>u | the spec’s literal spelling; on this transcript only r.142 actually changes, so ferro re-derives the single substitution rather than preserving the spelling |
NM_004006.3:r.[100a>u;104a>g] | recommended | self | separated by three nucleotides in different codons — no codon-exception antecedent; stays split under rule 2 |
Confluence. {r.[142a>u;144g>c], r.142_144delinsugc} → r.142_144delinsugc.
See also → RNA/delins.md:17-19, where the same exception is adjudicated on its own document.
substitution.md:20 — no change is =, not a substitution
nucleotides that have been tested and found not changed are described as
Ferro: a tested, unchanged position is =; a no-change substitution normalizes to it. Both the
single-position and the range form are fixed points.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123= | recommended | self | the spec’s own example — position screened and found unchanged |
NM_004006.3:r.123c>c | recommended | NM_004006.3:r.123= | a no-change substitution normalizes to the recommended = |
NM_004006.3:r.4567_4569= | recommended | self | the range form the clause itself gives; three positions screened and unchanged |
NM_004006.3:r.109a= | recommended | self | the clause’s base-bearing form (generic in the spec) |
substitution.md:21 — polymorphisms are not a/g
it is not correct to describe “polymorphisms” as
Ferro: the slash form for “polymorphism” is not valid HGVS on the r. axis either; ferro rejects
it at parse in strict mode.
Why ferro reads it this way
absolute-prohibition-enforcement-stage — Spellings the spec prohibits are rejected — at parse in strict mode; lenient mode instead repairs the input where it can and fails only if it cannot normalize.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.76a>g | recommended | self | the correct form (:73) |
NM_004006.3:r.76a/g | refused | — | the disallowed “polymorphism” slash — class="invalid"; rejected at parse |
substitution.md:28-29 — the worked delins example, and its two invalid spellings
NM_004006.3:r.76_77delinsug
NOTE: based on the definition of a substitution, i.e. one nucleotide replaced by one other nucleotide, this change can not be described as a substitution liker.76_77aa>ugorr.76aa>ug.
Ferro: two adjacent changed nucleotides (separation zero) merge into one delins — the DNA axis
makes the same merge. The substitution-style spellings are class="invalid" and refused.
Why ferro reads it this way
delins-adjacent-members-when-both-consume-reference — Two adjacent changes that both consume reference bases are written as a single delins; the spec marks the split spelling “not correct” at separation zero.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.76_77delinsug | recommended | self | the spec’s own delins — both bases change, a fixed point |
NM_004006.3:r.[76a>u;77a>g] | recommended | NM_004006.3:r.76_77delinsug | the split spelling of the same change — adjacent, separation zero — merges to the recommended delins |
NM_004006.3:r.76_77aa>ug | refused | — | class="invalid" — the range-form multi-base substitution |
NM_004006.3:r.76aa>ug | refused | — | class="invalid" — the single-position multi-base substitution |
Confluence. {r.[76a>u;77a>g], r.76_77delinsug} → r.76_77delinsug.
substitution.md:31-32 — predicted consequence in parentheses
the predicted consequences on RNA level is a substitution of the
gnucleotide atr.1388with ana.
Ferro: a predicted (not directly observed) RNA-level substitution is wrapped in uncertainty parentheses and preserved as written — the parentheses assert provenance, which a normalizer can’t strengthen or weaken.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.(1388g>a) | recommended | self | the spec’s own predicted-consequence form, preserved |
NM_004006.3:r.1388g>a | recommended | self | the same change asserted as observed — also a fixed point; ferro doesn’t add or remove parentheses |
substitution.md:43-45 — allele: two transcripts from one DNA variant
two different transcripts,
r.897u>gandr.832_960del, derive from one variant
Ferro: an allele bracket may group independently-derived r. descriptions from splice variants of
one underlying DNA change (the , separator marks distinct transcripts, not cis members); each
member spells its own r. edit.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.[897u>g,832_960del] | recommended | self | the spec’s own cross-transcript grouping; both members are already fixed points, so the allele is one |
substitution.md:47-54 — reserved notations: undetected, splicing affected, unpredictable
no RNA from the variant allele could be detected
Ferro: r.0, r.spl and r.? are reserved tokens — no RNA detected, splicing likely affected,
and an expected-but-unpredictable effect, respectively. Each is preserved verbatim.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.1:r.0 | recommended | — | the spec’s own accession, a version the slice lacks — parse-only |
NM_004006.3:r.0 | recommended | self | executable twin: no RNA from the variant allele detected — reserved notation, preserved |
NM_004006.3:r.spl | recommended | self | splicing likely affected, RNA not analysed — reserved notation, preserved |
NM_004006.3:r.? | recommended | self | an effect is expected but not reliably predictable — reserved notation, preserved |
substitution.md:56-62 — mosaic and chimeric
NM_004006.3:r.85=/u>c
a mosaic case where at position 85, besides the normal sequence (au, described as=), also transcripts are found containing ac(r.85u>c).
NOTE: irrespective of the frequency in which each nucleotide was found, the reference is always described first.
Ferro: mosaic (/) and chimeric (//) mixtures are valid on the r. axis; the recommendations
write the reference allele first, and ferro reorders a two-member variant-first substitution to
that form when its other member is a whole-entity = or a = at the substitution’s own position
(the same limits as the DNA axis); a non-co-located identity, or one stating a base, stays in
authored order.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.85=/u>c | recommended | self | mosaic: reference = written first, then u>c |
NM_004006.3:r.85=//u>c | recommended | self | chimeric: a mix of r.85= and r.85u>c cells |
NM_004006.3:r.85u>c/= | recommended | NM_004006.3:r.85=/u>c | variant-first spelling; ferro reorders it to the recommended reference-first form, since substitution.md:58 writes the reference first (#2034) |
substitution.md:71-73 — Q&A: polymorphisms are described as r.76a>g
No, all substitutions are described as
r.76a>g.
Ferro: the Discussion restates :21 — the slash spelling is historical and invalid; every
substitution, “polymorphic” or not, is written with >.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.76a>g | recommended | self | the Q&A’s own answer |
NM_004006.3:r.76a/g | refused | — | the historical “polymorphism” form — rejected at parse |
Deletion — ferro’s reading
ferro’s reading of the HGVS deletion recommendations on the transcript (r.) axis, clause
by clause — each spelling with the form ferro normalizes it to and a verdict on that output.
New here? See How to read a page for the verdicts, the table
conventions, and the recurring terms.
DNA twin: Deletion (c./g.).
No ledger record cites an RNA/deletion.md clause directly (the exception is :47-49), so most
sections here are CONFIRM-by-inspection against the spec text and the shipped code, not an
adjudicated ruling.
Executable rows use NM_004006.3, the one transcript in the committed slice. Spec examples on
other accessions the slice doesn’t carry are parse-only (—).
deletion.md:5 — definition
Deletion: a sequence change where, compared to a reference sequence, one or more nucleotides are not present (deleted).
Ferro: a deletion removes one or more nucleotides; the description itself carries only the deleted
range, never the deleted bases (see :30-39 below for the payload-spelling NOTE).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.77del | recommended | self | single-nucleotide RNA deletion; already 3’-most within its homopolymer run, a fixed point |
LRG_199t1:r.10del | recommended | — | the spec’s own one-nucleotide example (parse-only here) |
deletion.md:15 — DNA-level reporting is authoring practice, not a normalizer rule
all variants should be described on the DNA level; descriptions on the RNA and/or protein level may be given in addition.
Ferro: guidance for authors on which level(s) to report — not a constraint on normalizing an r.
description, which stands on its own.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.77del | recommended | self | a lone RNA-level description is valid; no accompanying c./g. form required |
deletion.md:16 — the range must name two different positions
position(s)_deletedshould contain two different positions, e.g.,123_126, not123_123.
Ferro: rule 2 (lowercase “should”); a same-position range is repaired to the single-position form.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123del | recommended | self | the correct single-position form — no run to shift along |
NM_004006.3:r.123_123del | refused | — | same-position range — rejected at parse (W4003 SinglePositionRange) in strict mode; lenient repairs to r.123del |
deletion.md:17 — the range is listed 5’ to 3’
the
position(s)_deletedshould be listed from 5’ to 3’, e.g.,123_126, not126_123.
Ferro: a reversed, non-circular range has no exception on the r. axis (the <high>_<low> form
is admitted only for o./m. circular references), so it is refused rather than reordered.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123_126del | recommended | self | correctly ordered range — already 3’-most |
NM_004006.3:r.126_123del | refused | — | reversed range on a non-circular reference — rejected at parse |
deletion.md:18-20 — the 3’rule, and the exon/exon-junction exception that does not apply here
- for all descriptions, the most 3’ position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule).
- the 3’rule also applies for changes in single residue stretches and tandem repeats (nucleotide or amino acid).
NOTE: the exception to the 3’rule for deletions around exon/exon junctions (see Deletions) does not apply when describing variants based on an RNA reference sequence.
Ferro: the 3’rule applies on r. as elsewhere, including across single-residue runs and tandem
repeats. The NOTE is a separate instruction: it switches off the DNA exon/exon-junction 3’rule
exception on the RNA axis, so an r. deletion must still shift to its 3’-most position even
across an intron.
Ferro currently gets this wrong. It clamps at the exon/exon junction instead of crossing it,
matching the DNA behavior the NOTE says should not apply here. The output is still valid HGVS —
a wrong preference, not a malformed string — so the verdict is conformant, not bug. Filed as
#2211.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.76del | recommended | NM_004006.3:r.77del | 3’rule over a single-residue stretch — the deletion lands on the run’s 3’-most base |
NM_004006.3:r.1470_1472del | recommended | NM_004006.3:r.1476_1478del | 3’rule over a tandem repeat — the deleted unit lands on the 3’-most copy |
LRG_2t1:r.1034_1036del | recommended | — | the spec’s own 3’-most, junction-crossing form; no committed fixture for this accession — parse-only |
LRG_2t1:r.1033_1035del | conformant | — | the spec marks this class="invalid" — the 3’rule should cross the junction to r.1034_1036del, but ferro wrongly clamps and keeps this spelling as a fixed point (#2211); recommended is the 3’-most-crossing form. Code-derived — no committed fixture for this accession exercises the row |
No executable row on the committed slice can show the wrong behavior — it’s built as a single flat
exon, so no r. deletion on it reaches an exon/exon junction.
Non-confluence. {r.1033_1035del, r.1034_1036del} describe one variant but do not converge
under the current defect — ferro treats r.1033_1035del as its own fixed point instead of
normalizing it to r.1034_1036del.
See also → RNA/duplication.md:24 (identical NOTE for duplications, same defect shape).
deletion.md:21-22 — uncertain deletions
see Uncertain; when the position and/or the sequence of a deletion has not been defined, a description may have a format like
r.(100_150)delN[15].
Ferro: an uncertain deletion’s parenthesised range is preserved verbatim — the 3’rule has nothing determinate to shift, since neither the exact position nor the exact length is asserted.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.(100_150)delN[15] | recommended | self | uncertain form, preserved — the spec’s example is generic |
deletion.md:26-27 — one nucleotide
a deletion of the
uat positionr.10in the reference sequenceLRG_199t1.
Ferro: the spec’s own single-nucleotide worked example.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:r.10del | recommended | — | spec’s own example; already 3’-most by construction (parse-only here) |
deletion.md:30-39 — several nucleotides: three worked examples
NM_004006.2:r.6_8del
a deletion of nucleotidesr.6tor.8in the reference sequenceNM_004006.2.
NOTE: the recommendation is not to describe the variant asr.6_8deluug, i.e., describe the deleted nucleotide sequence.LRG_2t1:r.1034_1036del
a deletion of nucleotidesr.1034tor.1036(uug) in the reference sequenceLRG_2t1.
NOTE: since the 3’rule has to be applied, the variant, crossing the intron between nucleotidesr.1035andr.1036, is not described asr.1033_1035del(deletionguu).LRG_199t1:r.(4072_5145del)
the predicted deletion of exon 30 (starting at positionr.4072) to exon 36 (ending at positionr.5145) of the DMD gene; RNA has not been analysed.
Ferro: three independent points bundled in one Examples block — (i) a plain multi-nucleotide range
never carries the deleted payload sequence, (ii) the exon/exon-junction case already covered at
:18-20, and (iii) a predicted, unanalysed multi-exon deletion is preserved as an uncertain wrap
rather than resolved to concrete RNA coordinates.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:r.6_8del | recommended | — | correct range-only form; spec’s own accession (parse-only here) |
NM_004006.3:r.6_8del | recommended | self | executable twin on the slice’s version — already 3’-most |
NM_004006.2:r.6_8deluug | refused | — | the disallowed payload-bearing spelling — class="invalid"; rejected at parse in strict mode |
NM_004006.3:r.6_8deluug | refused | — | executable twin: strict rejects the payload; lenient drops it and normalizes to r.6_8del |
LRG_199t1:r.(4072_5145del) | recommended | — | predicted multi-exon deletion, preserved as an uncertain wrap (parse-only here) |
Exon/exon junction. The LRG_2t1 pair {r.1034_1036del, r.1033_1035del} is adjudicated at
deletion.md:18-20 above; it is not repeated here.
deletion.md:41-43 — mosaic case
LRG_199t1:r.=/6_8del
a mosaic case where from positionr.6tor.8, besides the normal sequence, also transcripts are found containing a deletion of this sequence.
NOTE: for the predicted consequences of a variant, the description isLRG_199t1:r.(=/6_8del).
Ferro: mosaic (=/) syntax is valid on r.; the 6_8del member inside it is subject to the same
3’rule as a standalone deletion. The predicted-consequence wrap ((=/6_8del)) is a separate,
uncertain form, preserved as written.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:r.=/6_8del | recommended | — | mosaic form, spec’s own accession (parse-only here) |
LRG_199t1:r.(=/6_8del) | recommended | — | predicted-consequence wrap, spec’s own accession (parse-only here) |
NM_004006.3:r.=/6_8del | recommended | self | executable twin: the 6_8del member is already 3’-most on this transcript (see :30-39) |
NM_004006.3:r.(=/6_8del) | recommended | self | executable twin: the predicted-consequence wrap is preserved |
deletion.md:47-49 — a deletion is never written with a length suffix
No, a deletion of more than one residue should mention the first and last residue deleted, separated using the range symbol (“_”, underscore), e.g.,
r.123_128deland notr.123del6.
Ferro: class="invalid" — rule 1. The repair is determinate: a length-N suffix starting at
position p becomes the range p_(p+N-1).
Why ferro reads it this way
absolute-prohibition-enforcement-stage — Spellings the spec prohibits are rejected — at parse in strict mode; lenient mode instead repairs the input where it can and fails only if it cannot normalize.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.124_129del | recommended | self | the correct range form for a six-nucleotide deletion; already 3’-most. The spec’s literal r.123_128del sits one base 5’ on this transcript and would shift here under the 3’rule, so this row uses the fixed point to show the clause itself |
NM_004006.3:r.124del6 | refused | — | the disallowed length-suffix spelling — rejected at parse in strict mode (W3011); lenient repairs to r.124_129del |
deletion.md:51-54 — a deletion is never written by exon label
A description like
r.EX17delhas never been allowed. Descriptions should be specific and indicate the nucleotides affected by the change.
Ferro: EX17 is not a position token in the grammar on any axis — an exon label is a fact about
annotation, not a coordinate the description can carry. No repair is possible; this is a parse
rejection, not a normalization.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.EX17del | refused | — | not a valid position token — rejected at parse |
Duplication — ferro’s reading
ferro’s reading of the HGVS duplication recommendations on the transcript (r.) axis,
clause by clause — each spelling with the form ferro normalizes it to and a verdict on that
output. New here? See How to read a page for the verdicts, the table
conventions, and the recurring terms.
DNA twin: Duplication (c./g.).
Two ledger records reach this page. inverted-duplication-is-derived-as-ins-range-inv carries
r. authority on its own molecule-native basis (RNA/duplication.md:21, RNA/insertion.md:18).
duplication-must-ranks-the-label-not-the-partition is grounded on the DNA twin, so on r. the
MUST it grades rests on the verbatim RNA twin at :19 — noted where it applies rather than
claimed as its own r.-jurisdiction ruling. Other clauses here carry no Why block and are
CONFIRM-by-inspection against the spec text and the shipped code.
Executable rows use NM_004006.3, the one transcript in the committed slice. Spec examples on
bare illustrative sequences or on accessions the slice doesn’t carry are parse-only (—).
duplication.md:5 — definition: a copy inserted directly 3’
Duplication: a sequence change where, compared to a reference sequence, a copy of one or more nucleotides is inserted directly 3’ of the original copy of that sequence.
Ferro: a duplication inserts a copy of one or more nucleotides directly 3’ of the original copy;
the “directly 3’-flanking” test is what separates a dup from an ins (see :18-21). The
description carries only the duplicated range, never the duplicated bases (see :32-35).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.7dup | recommended | self | single-nucleotide RNA duplication; already 3’-most within its run, a fixed point. Shown here on the slice accession since the spec’s own example is accession-less |
duplication.md:15 — DNA-level reporting is authoring practice, not a normalizer rule
all variants should be described on the DNA level; descriptions on the RNA and/or protein level may be given in addition.
Ferro: guidance for authors on which level(s) to report — not a constraint on normalizing an r.
description, which stands on its own.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.7dup | recommended | self | a lone RNA-level description is valid; no accompanying c./g. form required |
duplication.md:16 — the range must name two different positions
positions_duplicatedshould contain two different positions, e.g.,123_126, not123_123.
Ferro: rule 2 (lowercase “should”); a same-position range is repaired to the single-position form
— the same machinery as the c. axis.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123dup | recommended | self | the correct single-position form — no run to shift along |
NM_004006.3:r.123_123dup | refused | — | same-position range — rejected at parse (W4003 SinglePositionRange) in strict mode; lenient repairs to r.123dup |
duplication.md:17 — the range is listed 5’ to 3’
the
positions_duplicatedshould be listed from 5’ to 3’, e.g.,123_126, not126_123.
Ferro: a reversed, non-circular range has no exception on the r. axis (the <high>_<low> form is
admitted only for o./m. circular references), so it is refused rather than reordered.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123_126dup | recommended | self | correctly ordered range; no 3’ tandem copy to shift into, so it is already 3’-most |
NM_004006.3:r.126_123dup | refused | — | reversed range on a non-circular reference — rejected at parse |
duplication.md:18-21 — tandem-only; MUST be a dup not an ins; an inverted duplication is an insertion
- by definition, duplication may only be used when the additional copy is directly 3’-flanking of the original copy (a “tandem duplication”).
- when a variant can be described as a duplication, it must be described as a duplication and not as e.g., an insertion (see Prioritization).
- when there is no evidence that the extra copy of a sequence detected is in tandem (directly 3’-flanking the original copy), the change can not be described as a duplication, it should be described as an insertion (see Insertion).
- inverted duplications are described as an insertion (
r.234_235ins123_234inv), not as a duplication (see Inversion).
Ferro: four points. (i) a dup is only for a copy directly 3’-flanking the original; (ii) a
duplicating insertion must be relabeled dup; (iii) a copy that is not directly 3’-flanking
is an insertion, not a dup (worked at :47-52); (iv) an inverted duplication is spelled
ins<range>inv, never dup — the dupinv shorthand is refused at parse.
Why ferro reads it this way
duplication-must-ranks-the-label-not-the-partition — The rule that a duplication must be labelled ‘dup’ ranks the label of each piece ferro derives, not the partition; the one exception is a net-longer tandem copy of a multi-base motif, where the derivation is cut to expose the dup rather than merged into a delins.
inverted-duplication-is-derived-as-ins-range-inv — An inverted duplication is written as ‘ins
inv’, naming the span the inverted copy came from, rather than expanded to reverse-complemented literal bases; whether a payload counts as an inverted copy at all is gated by a house coincidence-probability floor, not any spec-stated minimum — and it is wired today only in normalize_genome, so c./n./r./m. still emit literals.
duplication-must-ranks-the-label-not-the-partition is grounded on the DNA twin; on r. the same
MUST is carried verbatim by :19, which supplies the r.-jurisdiction authority.
The inverted-duplication form is not yet derived on r. Ferro preserves an already-spelled
r.234_235ins123_234inv input but does not mint one from a reverse-complement literal payload on
this axis — the ledger record calls this its largest known gap, and names #2236 as the intended
fix. A literal reverse-complement payload therefore stays literal on r. — valid HGVS that
re-parses, so the verdict is conformant, not bug.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.6_7insu | recommended | NM_004006.3:r.7dup | the spec example-1 NOTE: the duplicating insertion r.6_7insu copies the u at r.6 directly 3’, so :19‘s MUST relabels it to dup, landing on the 3’-most copy |
NM_004006.3:r.234_235ins123_234inv | conformant | NM_004006.3:r.234_235insguugacauuguucagggcaugaacucuuguggauccuuuuucuuuuggcaguuuuugcccugucaggccuucgaggaggucuaggaggcgccucccauccuguaggucacug | the spec’s own inverted-duplication spelling. Ferro expands the range payload to literal reverse-complement bases rather than preserving ins<range>inv — that derivation is wired only for the genomic axis (inverted-duplication-is-derived-as-ins-range-inv; tracked as #2236). Valid HGVS that re-parses and denotes the same sequence, so conformant, not the recommended spelling |
NM_004006.3:r.123_456dupinv | refused | — | the dupinv shorthand — rejected at parse; :21 requires the ins<range>inv form |
duplication.md:22-25 — the 3’rule, and the exon/exon-junction exception that does not apply here
- for all descriptions, the most 3’ position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule).
- the 3’rule also applies for changes in single residue stretches and tandem repeats.
- NOTE: the exception to the 3’rule for duplications around exon/exon junctions (see Duplications) does not apply when describing variants based on an RNA reference sequence.
Ferro: the 3’rule applies on r. as elsewhere, including across single-residue runs and tandem
repeats. The NOTE switches off the DNA exon/exon-junction 3’rule exception on the RNA axis, so an
r. duplication must still shift to its 3’-most position even across an intron — the twin of
RNA/deletion.md:20.
Ferro currently gets this wrong. It clamps at the exon/exon junction instead of crossing it,
matching the DNA behavior this NOTE says should not apply here. The output is still valid HGVS —
a wrong preference, not a malformed string — so the verdict is conformant, not bug. Filed as
#2211.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.76dup | recommended | NM_004006.3:r.77dup | 3’rule over a single-residue stretch — the duplicated base lands on the run’s 3’-most position |
NM_004006.3:r.1470_1472dup | recommended | NM_004006.3:r.1476_1478dup | 3’rule over a tandem repeat — the duplicated unit lands on the 3’-most copy |
LRG_2t1:r.1034_1036dup | recommended | — | illustrative junction-crossing form; on r. the 3’rule must cross the exon/exon boundary. No committed fixture for this accession — parse-only |
LRG_2t1:r.1033_1035dup | conformant | — | on r. the exon/exon-junction exception should not apply, so the 3’rule requires crossing to r.1034_1036dup. Ferro wrongly clamps at the junction and keeps this spelling as a fixed point (#2211); recommended is the 3’-most-crossing form. Code-derived — no committed fixture for this accession exercises the row |
No executable row on the committed slice can show the wrong behavior — it’s built as a single flat
exon, so no r. duplication on it reaches an exon/exon junction.
Non-confluence. {r.1033_1035dup, r.1034_1036dup} describe one variant but do not converge
under the current defect — ferro treats r.1033_1035dup as its own fixed point instead of
normalizing it to r.1034_1036dup.
See also → RNA/deletion.md:18-20 (the identical NOTE for deletions, same defect shape, #2211).
duplication.md:28-31 — one nucleotide
r.7dup(one nucleotide)
the duplication of auat positionr.7in the sequenceacuuacuugcc.
NOTE: it is not allowed to describe the variant asr.6_7insu(see prioritisation).
Ferro: the spec’s own single-nucleotide worked example, plus the NOTE that the duplicating
insertion r.6_7insu must be spelled dup (the MUST of :19).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.7dup | recommended | self | executable twin of the spec’s bare r.7dup — already 3’-most, a fixed point (the spec’s own spelling is accession-less, not table-executable) |
NM_004006.3:r.6_7insu | recommended | NM_004006.3:r.7dup | the NOTE’s forbidden insu spelling — relabeled to the recommended dup (see :18-21); a duplicating insertion is written as a duplication |
duplication.md:32-35 — several nucleotides, and no payload-bearing spelling
r.6_8dup(several nucleotides)
a duplication from positionr.6tor.8in the sequenceacaauugcugcc.
NOTE: the recommendation is not to describe the variant asr.6_8dupugc, i.e., describe the deleted nucleotide sequence.
Ferro: a plain multi-nucleotide duplication carries only the range, never the duplicated payload sequence.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.6_8dup | recommended | self | executable twin of the spec’s bare r.6_8dup — already 3’-most, no tandem copy to shift into (accession-less in the spec, not table-executable) |
NM_004006.3:r.6_8dupugc | refused | — | the disallowed payload-bearing spelling — class="invalid"; rejected at parse in strict mode; lenient drops the payload and normalizes to r.6_8dup |
duplication.md:38-46 — Discussion: why not describe a duplication as an insertion
!!! note “Why do we not describe a duplication as an insertion?”
Although duplications are basically a special type of insertion, there are several reasons why the recommendation is to describe duplications separately. - the description is simple and shorter; - it is clear and prevents confusion regarding the position when an insertion is incorrectly reported, like <code class="invalid">c.22insG</code>; - insertion more or less means "coming from elsewhere". Mechanistically, a duplication is most likely caused by a local event, DNA polymerase slippage, duplicating a local sequence.
Ferro: rationale prose for the dup-over-ins preference; states no rule beyond the :19 MUST
already covered at :18-21.
duplication.md:47-51 — Discussion: a non-tandem duplicative copy is an insertion
!!! note “How should I describe the change
aucgaucgaucgaucgaggguccctoaucgaucgaucgaucgaaucgaucgaucgggguccc? The fact that the inserted sequence (aucgaucgaucg) is present in the original sequence, suggests it derives from a duplicative event.”The variant should be described as an insertion; `r.17_18ins5_16`. A description using "dup" is not correct since, by definition, a duplication should be **directly 3'-flanking of the original copy** (in tandem). Note that the description given still makes it clear that the sequence inserted between `r.17` and `r.18` is probably derived from nearby, i.e. positions `r.5` to `r.16`, and thus likely derived from a duplicative event.
Ferro: the worked case of :20 — a copy present in the reference but not directly 3’-flanking is
an insertion, not a duplication, even when it plainly derives from a duplicative event. Whether the
payload is written by range (ins5_16) or as literal bases is a representation choice the spec
leaves open, governed by canonical-form-choice-when-both-legal; ferro expands range payloads to
literal bases on r. — both conformant.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.17_18ins5_16 | conformant | NM_004006.3:r.17_18insuuuggugggaag | executable twin of the spec’s own answer r.17_18ins5_16 (accession-less, not table-executable) — an insertion naming its likely source range, not a dup, since the copy isn’t directly 3’-flanking. Ferro expands the range payload to literal bases, a representation choice the spec leaves open, governed by canonical-form-choice-when-both-legal — valid HGVS that re-parses, so conformant |
See also → RNA/deletion.md:18-20 (the twin exon/exon-junction NOTE and the #2211 defect shape),
RNA/insertion.md (the ins/ins<range>inv forms a non-tandem or inverted copy takes),
general.md (the prioritisation the :19 MUST points at).
Insertion — ferro’s reading
ferro’s reading of the HGVS insertion recommendations on the transcript (r.) axis, clause
by clause — each spelling with the form ferro normalizes it to and a verdict on that output.
New here? See How to read a page for the verdicts, the table
conventions, and the recurring terms.
DNA twin: Insertion (c./g.).
Five ledger records reach this page. inverted-duplication-is-derived-as-ins-range-inv carries
r. authority directly (:18). duplication-must-ranks-the-label-not-the-partition is grounded
on the DNA twin, so on r. the dup/ins MUST rests on the verbatim RNA twin
RNA/duplication.md:19. canonical-form-choice-when-both-legal and
absolute-prohibition-enforcement-stage are molecule-neutral and reach r. unchanged.
spdi-n-unit-repeat-refusal is a house choice on the HGVS→SPDI path, reaching the n-repeat
examples at :38-42. Other clauses here carry no Why block and are CONFIRM-by-inspection.
Executable rows use NM_004006.3, the one transcript in the committed slice. Spec examples on
accessions the slice doesn’t carry are parse-only (—).
insertion.md:5 — definition: inserted, and not a copy of the 5’ flank
Insertion: a sequence change where, compared to the reference sequence, one or more nucleotides are inserted and where the insertion is not a copy of a sequence immediately 5’.
Ferro: an insertion adds nucleotides between two flanking positions; the “not a copy immediately
5’” clause is exactly the dup/ins boundary (see :17) — a copy directly 3’-flanking its
original is relabeled dup rather than left as ins.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123_124insg | recommended | self | a genuine single-nucleotide insertion; the inserted base copies neither flank, so it’s neither a dup nor 3’-shiftable — a fixed point |
NM_004006.3:r.6_7insu | recommended | NM_004006.3:r.7dup | the boundary case: the inserted base copies its immediate 5’ flank, so by definition it isn’t an insertion — ferro relabels it to the recommended dup, landing on the 3’-most copy |
insertion.md:15 — the flanking positions must be two adjacent nucleotides
positions flankingshould contain two flanking nucleotides, e.g.,123_124, not123_125.
Ferro: an insertion occupies the zero-width junction between two adjacent positions, so the anchor must name a pair exactly one apart. There’s no way to recover which flanking pair the author meant from a non-adjacent anchor, so this is a rejection, not a repair.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123_124insg | recommended | self | correctly flanking (adjacent) pair |
NM_004006.3:r.123_125insg | refused | — | non-adjacent flanks — rejected at parse; the same axis-general check as g./c. |
insertion.md:16 — the flanking positions are listed 5’ to 3’
- the
positions_flankingshould be listed from 5’ to 3’, e.g.,123_124, not124_123.
Ferro: a reversed, non-circular flank order has no exception on the r. axis (the <high>_<low>
form is admitted only for o./m. circular references), so it is refused rather than reordered —
the twin of RNA/deletion.md:17 and RNA/duplication.md:17.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123_124insg | recommended | self | correctly ordered flank |
NM_004006.3:r.124_123insg | refused | — | reversed flank order on a non-circular reference — rejected at parse |
insertion.md:17 — a tandem duplication is a dup, not an insertion
- tandem duplications are described as a duplication (
r.123_456dup), not an insertion (r.456_457ins123_456, see Prioritization).
Ferro: the dup-over-ins MUST seen from the insertion side — a copy directly 3’-flanking its
original is spelled dup, so a duplicating insertion is relabeled rather than kept as an ins
(the inverted-duplication sub-bullet at :18 is worked separately below). The spec’s own invalid
tandem-as-insertion spelling r.456_457ins123_456 is executable on the slice accession: ferro
expands the range payload to literal bases, finds it copies the sequence immediately 5’, and
relabels it dup.
Why ferro reads it this way
duplication-must-ranks-the-label-not-the-partition — The rule that a duplication must be labelled ‘dup’ ranks the label of each piece ferro derives, not the partition; the one exception is a net-longer tandem copy of a multi-base motif, where the derivation is cut to expose the dup rather than merged into a delins.
duplication-must-ranks-the-label-not-the-partition is grounded on the DNA twin; on r. the same
MUST is carried verbatim by RNA/duplication.md:19, which supplies the r.-jurisdiction
authority.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.6_7insu | recommended | NM_004006.3:r.7dup | the duplicating insertion r.6_7insu copies its 5’ flank directly 3’, so the MUST relabels it to the recommended dup (landing 3’-most) rather than keeping the ins |
NM_004006.3:r.456_457ins123_456 | recommended | NM_004006.3:r.126_459dup | the spec’s own class="invalid" tandem-as-insertion spelling, on the slice accession. Ferro expands the range payload to literal bases, relabels the directly-3’-flanking copy to dup, and the 3’rule (:19) shifts it three positions 3’ to the run’s actual end. Output is the 3’-most dup, as :17 and :19 together require — agrees on both the committed slice and the full reference |
NM_004006.3:r.123_456dup | recommended | — | the dup form the row above must be rewritten to. It parses and stays a valid dup, but its exact 3’ placement is reference-tier-dependent: the committed slice shifts it to r.126_459dup, while the full-length reference leaves it a fixed point at r.123_456dup. Ferro applies the long-span 3’-shift on the insertion→dup relabel path but not on a plain long-span dup input over the full transcript — a real inconsistency in the long-span shift gate, flagged for the operator, no issue filed |
Confluence, with a caveat. {r.456_457ins123_456, r.123_456dup} is one variant by :17. They
converge on the committed slice but diverge on the full reference (see the row above) — a
placement question, not a validity one; both spellings stay valid HGVS.
insertion.md:18 — an inverted duplication is ins<range>inv, not dup
- inverted duplications are described as an insertion (
r.234_235ins123_234inv), not as a duplication (see Inversion).
Ferro: an inverted duplication is spelled ins<range>inv, naming the span the inverted copy came
from — never dup, and never the dupinv shorthand, which is refused at parse. :18 is the one
clause on this page the ledger cites directly on its own r. authority.
Why ferro reads it this way
inverted-duplication-is-derived-as-ins-range-inv — An inverted duplication is written as ‘ins
inv’, naming the span the inverted copy came from, rather than expanded to reverse-complemented literal bases; whether a payload counts as an inverted copy at all is gated by a house coincidence-probability floor, not any spec-stated minimum — and it is wired today only in normalize_genome, so c./n./r./m. still emit literals.
The inverted-duplication form is not yet derived on r. Ferro doesn’t mint the
ins<range>inv spelling from a reverse-complement literal payload on this axis, and it expands an
already-spelled range payload to literal reverse-complement bases instead of preserving it. The
ledger record discloses this gap and names #2236 as the intended fix. The output stays literal on
r. — valid HGVS that re-parses and denotes the same sequence, so the verdict is conformant, not
bug.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.234_235ins123_234inv | conformant | NM_004006.3:r.234_235insguugacauuguucagggcaugaacucuuguggauccuuuuucuuuuggcaguuuuugcccugucaggccuucgaggaggucuaggaggcgccucccauccuguaggucacug | the spec’s own inverted-duplication spelling. Ferro expands the range payload to literal reverse-complement bases rather than deriving/preserving ins<range>inv — wired only for the genomic axis (inverted-duplication-is-derived-as-ins-range-inv; tracked as #2236). Valid HGVS that re-parses and denotes the same sequence, so conformant, not the recommended spelling |
NM_004006.3:r.123_456dupinv | refused | — | the dupinv shorthand — rejected at parse; :18 requires the ins<range>inv form |
See also → RNA/duplication.md:18-21 (the same limitation, from the duplication side).
insertion.md:19 — the 3’rule
- for all descriptions, the most 3’ position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule).
Ferro: the 3’rule applies to insertions exactly as to deletions and duplications. There’s no exon/exon-junction NOTE on this page (that NOTE, and the #2211 defect, are specific to del/dup) — CONFIRM-by-inspection.
A pure-insertion 3’-shift is hard to exhibit here: a base matching its adjacent run is by
definition a copy of the 5’ flank, hence a duplication (:17), not an insertion, and relabeled
before any insertion-level shift shows. The row below is a fixed-point insertion; the shiftable
cases live on the duplication page.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123_124insg | recommended | self | the inserted g matches neither flank, so the 3’rule has nothing to shift it into — already 3’-most, a fixed point |
insertion.md:20-21 — the inserted sequence: literal bases, a reference range, or another reference
- the “inserted_sequence” can be given as the nucleotides inserted (e.g.,
insagc) or, for larger insert sequences, by referring to the sequence in the reference sequence (e.g.,r.849_850ins858_895) or another reference (see Examples). When the inserted sequence is not present in a reference sequence, it should be submitted to a database (e.g., GenBank); the accession.version number obtained can then be used to describe the variant, liker.123_124ins[L37425.1:r.23_361].
Ferro: the spec admits three payload spellings — literal bases (insagc), a range-citation into
the same reference (ins858_895), and a cross-reference into another accession
(ins[L37425.1:r.23_361]). Ferro parses all three; on r. it expands a range-citation payload to
literal bases, and resolves a cross-reference payload against the named accession when the
provider serves it, declining with Reference not found otherwise. Since :20 states both the
literal and range-citation forms are legal without choosing between them, which spelling ferro
emits is a representation choice, not a defect.
Why ferro reads it this way
canonical-form-choice-when-both-legal — When two descriptions of one variant are both legal and no clause chooses between them, ferro applies the edit set to the reference and re-derives the description from the resulting sequence — subject to every explicit spec tie-break, and breaking any remaining tie toward the already-shipped form — rather than preserving the input’s spelling.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.756_757insuacu | recommended | self | a literal-base insert (the executable form of the spec’s LRG_199t1:r.756_757insuacu at :29-30); the literal payload is the recommended spelling for a short insert. Measured fixed point on the slice |
NM_004006.3:r.849_850ins858_895 | conformant | NM_004006.3:r.849_850insugagagaacuucuuccccuaagccucgauucaagagcu | the spec’s own range-citation payload: ferro expands it to the literal bases it names. Both spellings are legal by :20; the expansion is a representation choice (canonical-form-choice-when-both-legal), and the range form is what #2236 would restore. Valid HGVS that re-parses |
LRG_199t1:r.849_850ins858_895 | conformant | — | the spec’s own accession for the same range-citation form; not in the slice, so parse-only |
LRG_199t1:r.123_124ins[L37425.1:r.23_361] | recommended | — | the spec’s cross-reference payload; ferro parses ins[ACC:...] forms and resolves them against the named reference, but neither accession here is in the slice — parse-only. On the slice accession the same payload parses and correctly declines with Reference not found |
insertion.md:22 — uncertain: the dagger form
- † = see Uncertain; when the position and/or the sequence of an inserted sequence has not been defined, a description may have a format like
r.(100_150)insn[25].
Ferro: an uncertain insertion’s parenthesised range and unspecified-length payload are preserved verbatim — the 3’rule has nothing determinate to shift when neither the exact position nor the exact sequence is asserted.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.(100_150)insn[25] | recommended | self | the uncertain form, preserved — both the parenthesised range and the unspecified payload are left as written; the bracketed-count rewrite at :38-42 doesn’t fire under an uncertain position |
insertion.md:26-30 — literal-base examples
LRG_199t1:r.426_427insa
the insertion of ananucleotide between nucleotidesr.426andr.427.
LRG_199t1:r.756_757insuacu
the insertion of nucleotidesuacubetween nucleotidesr.756andr.757.
Ferro: the spec’s two literal-base worked examples — a single nucleotide and a short run — each written with the literal payload, the recommended spelling for a short insert. Both sit on an accession the slice lacks, so parse-only; the executable twins are fixed points.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:r.426_427insa | recommended | — | spec’s own single-nucleotide literal insertion (parse-only here) |
NM_004006.3:r.426_427insa | recommended | self | executable twin on the slice accession — a fixed point (the inserted a copies neither flank) |
LRG_199t1:r.756_757insuacu | recommended | — | spec’s own multi-nucleotide literal insertion (parse-only here) |
NM_004006.3:r.756_757insuacu | recommended | self | executable twin on the slice accession — a fixed point |
insertion.md:32-42 — unspecified nucleotides and an uncertain position
NM_004006.2:r.(222_226)insg(p.Asn75fs)
the insertion of agat an unknown position in the sequence encoding amino acid 75.
NM_004006.2:r.549_550insn
the insertion of one not specified nucleotide (n) between positionsr.549andr.550.
NM_004006.2:r.761_762insnnnnn(alternativelyr.761_762insn[5])
the insertion of 5 not specified nucleotides (nnnnn) between positionsr.761andr.762.
LRG_199t1:r.1149_1150insn[100]
the insertion of 100 not specified nucleotides between positionsr.1149andr.1150.
Ferro: n is a legal HGVS symbol, so an unspecified insert parses and normalizes as itself, and
the parenthesised uncertain position is preserved. The spelled-out run insnnnnn and its
repeat-count alternative insn[5] are two spellings of the same unspecified sequence; the spec
offers both, and ferro rewrites a bracketed exact count to the literal run. For the 5-mer this
lands on the spec’s primary spelling; for the 100-mer it lands on a literal run where the spec’s
own example uses the count form — both legal by :38, and no clause selects.
On the HGVS→SPDI path these n-repeat forms are refused, not expanded. insn[100] states a
length, not bases, so emitting literal Ns would be a storable-but-wrong SPDI triple; conversion
declines instead. This is a conversion-path house choice — it moves no normalized r. string, and
the rows below stay valid HGVS.
Why ferro reads it this way
spdi-n-unit-repeat-refusal — On the HGVS-to-SPDI path ferro refuses an ‘N’-unit or ‘N’-containing repeat rather than expand it to literal ‘N’ bases — a project choice, since ‘N’ states a length, not identified bases, and the recommendations do not reach SPDI conversion.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:r.(222_226)insg | recommended | — | insertion at an uncertain position inside a codon; the parenthesised range is preserved (parse-only here) |
NM_004006.3:r.(222_226)insg | recommended | self | executable twin on the slice accession — the uncertain position is preserved, nothing is clamped or shifted |
NM_004006.2:r.549_550insn | recommended | — | one unspecified nucleotide; n preserved (parse-only here) |
NM_004006.3:r.549_550insn | recommended | self | executable twin — a single n is a fixed point |
NM_004006.2:r.761_762insnnnnn | recommended | — | spelled-out unspecified 5-mer, the spec’s primary spelling (parse-only here) |
NM_004006.3:r.761_762insnnnnn | recommended | self | executable twin — the literal run is a fixed point |
NM_004006.3:r.761_762insn[5] | recommended | NM_004006.3:r.761_762insnnnnn | the spec’s “alternatively” spelling, rewritten to the literal run — :38’s primary spelling, so recommended |
LRG_199t1:r.1149_1150insn[100] | recommended | — | 100 unspecified nucleotides via the repeat-count spelling, the spec’s own accession (parse-only here) |
NM_004006.3:r.1149_1150insn[100] | conformant | NM_004006.3:r.1149_1150insnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn | executable twin — the same rewrite expands the count to a literal run. Valid HGVS that re-parses; the spec’s own spelling for this case is the count form, so this is a representation choice (canonical-form-choice-when-both-legal), recorded as conformant since the emitted spelling isn’t the spec’s choice here. On the SPDI path this input refuses (spdi-n-unit-repeat-refusal) |
insertion.md:44-47 — an intronic insertion from a splicing event
NG_012232.1(NM_004006.2):r.2949_2950ins[2950-30_2950-12;2950-4_2950-1]
the insertion of intronic nucleotidesr.2950-30tor.2950-12andr.2950-4tor.2950-1between nucleotidesr.2949andr.2950(caused by the deletionNC_000023.10(NM_004006.2):c.2950-11_2950-5del). Alternative descriptionr.2949_2950ins[2950-30_2950-12;uuag].
NOTE: for more examples of variants affecting splicing, see Splicing.
Ferro: a splicing-driven insertion whose payload cites intronic coordinates on a genomic-parent
accession. The spec marks both spellings class="invalid" and redirects to the splicing
recommendations. Ferro’s strict parser accepts both at parse — the ins[…] grammar admits an
offset-bearing range part — and normalization then declines, producing no output. Under
absolute-prohibition-enforcement-stage a class="invalid" spelling should be refused at parse in
strict mode; here it’s accepted at parse and only refused at normalize, with no repair in lenient
either. That’s an unenforced prohibition, not a malformed output, so the rows are recorded as
conformant/parse-only rather than refused. No tracking issue found for the parse-stage half —
flagged for the operator, not filed here.
Why ferro reads it this way
absolute-prohibition-enforcement-stage — Spellings the spec prohibits are rejected — at parse in strict mode; lenient mode instead repairs the input where it can and fails only if it cannot normalize.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NG_012232.1(NM_004006.2):r.2949_2950ins[2950-30_2950-12;2950-4_2950-1] | conformant | — | the spec’s own class="invalid" splicing example. Strict parse accepts it; normalization refuses at the intronic-offset payload, so there’s no output to grade. Parse-only here — the accession is outside the slice; the governing treatment lives with the splicing recommendations |
NG_012232.1(NM_004006.2):r.2949_2950ins[2950-30_2950-12;uuag] | conformant | — | the spec’s class="invalid" alternative spelling (one intronic range part plus a literal payload). Same shape: strict parse accepts, normalization refuses at the offset-bearing part; parse-only here |
insertion.md:51-57 — Discussion: a single-position insertion is not allowed
!!! note “Can I describe a variant as
r.123insg?”No, since the description is not unequivocal, it is not allowed. What does the description mean, the insertion of a `g` **at** position `r.123` or the insertion of a `g` **after** position `r.123`? The situation becomes even more complex when, using a coding RNA reference sequence, a "-" character is used; e.g., <code class="invalid">r.-14insG</code>. When the insertion is **after** nucleotide `r.-14`, is this position `r.-13` or `r.-15`?
Ferro: a single-position insertion anchor is ambiguous (“at” vs “after”) and can’t be repaired into a flanking pair, so ferro refuses it in every mode — strict rejects at parse with a structured error (“single-position insertion not allowed on r.; the anchor MUST be two adjacent positions”), and lenient/silent also fail since there’s nothing to normalize the ambiguity into.
Why ferro reads it this way
absolute-prohibition-enforcement-stage — Spellings the spec prohibits are rejected — at parse in strict mode; lenient mode instead repairs the input where it can and fails only if it cannot normalize.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123_124insg | recommended | self | the correct two-position flanking form |
NM_004006.3:r.123insg | refused | — | the disallowed single-position spelling (class="invalid") — rejected at parse; unrepairable, so refused in lenient and silent too |
NM_004006.3:r.-14insG | refused | — | the spec’s 5’UTR variant of the same question — rejected at parse by the same single-position check, before the -13/-15 ambiguity the Note describes is ever reached |
insertion.md:59-63 — Discussion: the ^ character is not allowed
!!! note “Can I use the “^” character to describe an insertion?“
No, insertions can not be described using the format <code class="invalid">r.123ˆ124insu</code> or <code class="invalid">r.123ˆ124u</code>. The recommendations try to restrict the number of different characters used to a minimum. Since a character was already used to indicate a range (the *underscore*), a new character was not required.
Ferro: the ^ separator is rejected at parse — the range underscore already spells the flanking
pair, so ^ is a character the grammar doesn’t admit.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.123_124insu | recommended | self | the correct underscore-flanked form |
NM_004006.3:r.123^124insu | refused | — | the disallowed ^ separator (class="invalid") — rejected at parse; use the underscore range |
NM_004006.3:r.123^124u | refused | — | the spec’s second class="invalid" form, with the ins keyword dropped as well — rejected at parse at the same character |
insertion.md:65-69 — Discussion: a non-tandem duplicative copy is an insertion
!!! note “How should I describe the change
aucgaucgaucgaucgaggguccctoaucgaucgaucgaucgaaucgaucgaucgggguccc? The fact that the inserted sequence (aucgaucgaucg) is present in the original sequence, suggests it derives from a duplicative event.”The variant should be described as an insertion; `r.17_18ins5_16`. A description using "dup" is not correct since, by definition, a duplication should be **directly 3'-flanking of the original copy** (in tandem). Note that the description given still makes it clear that the sequence inserted between `r.17` and `r.18` is probably derived from nearby, i.e. positions `r.5` to `r.16`, and thus likely derived from a duplicative event.
Ferro: the worked case of :5/:17 — a copy present in the reference but not directly
3’-flanking is an insertion, not a duplication, even when it plainly derives from a duplicative
event. Whether the payload is written by range (ins5_16) or as literal bases is the
representation choice :20 leaves open, governed by canonical-form-choice-when-both-legal;
ferro expands the range payload to literal bases on r., the same gap as the ins<range>inv form
at :18 (#2236 is the shared fix). This is the verbatim twin of RNA/duplication.md:47-51.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.17_18ins5_16 | conformant | NM_004006.3:r.17_18insuuuggugggaag | executable twin of the spec’s own answer r.17_18ins5_16 (accession-less, not table-executable) — an insertion naming its likely source range, not a dup, since the copy isn’t directly 3’-flanking. Ferro expands the range payload to literal bases, a representation choice left open by the spec, governed by canonical-form-choice-when-both-legal — valid HGVS that re-parses, so conformant |
See also → RNA/duplication.md:18-21 and RNA/duplication.md:47-51 (the same boundary and worked
case, from the duplication side).
Inversion — ferro’s reading
ferro’s reading of the HGVS inversion recommendations on the transcript (r.) axis, clause
by clause — each spelling with the form ferro normalizes it to and a verdict on that output.
New here? See How to read a page for the verdicts, the table
conventions, and the recurring terms.
DNA twin: Inversion (c./g.).
Page notes — ledger grounding, the r.-axis derivation gap, and the slice base facts
Two ledger records reach this page, and they differ in r. jurisdiction.
whole-span-reverse-complement-types-as-inv governs the whole-span reverse-complement → inv
typing at :5, but it is grounded entirely on DNA clauses and guarded only on the coding and
genomic axes — it carries no r. test, so it is not an r.-jurisdiction ruling on its own terms.
RNA/inversion.md:5 states the identical whole-span definition on the RNA axis’s own authority, so
the record could be grounded on r. without stretching a DNA clause; that extension is a proposed
ledger change, not one made, and is surfaced here for the typing rule rather than claimed as
settled r. conformance. inverted-duplication-is-derived-as-ins-range-inv, by contrast, cites
RNA/insertion.md:18 and RNA/duplication.md:21 directly, so it carries r. authority on its own
molecule-native basis and governs :19. Other clauses here carry no Why block and are
CONFIRM-by-inspection against the spec text and the shipped code.
One derivation gap sits under two of this page’s clauses. Ferro runs full inversion and
inverted-duplication derivation only on the genomic axis; the c./n./r./m. axes still emit
literals. So on r. ferro preserves an already-spelled r.NNN_NNNinv (or ins<range>inv) input,
but does not mint an inv from a reverse-complement delins, nor keep an ins<range>inv range
payload — it expands the range to literal bases. This is an implementation gap, not a spec
question, and changes no verdict below: an already-inv input is a fixed point, and a
literal-expanded ins<range>inv output is valid HGVS that re-parses.
Executable rows use NM_004006.3, the one transcript in the committed slice. The spec’s own Notes
and Examples sit on bare illustrative sequences or a foreign accession the slice doesn’t carry, so
those spellings are shown on the slice accession or left parse-only (—). Both well-formed
inversions used below are measured fixed points on the slice, not merely code-derived ones.
inversion.md:5 — definition: a reverse-complemented span of more than one base
Inversion: a sequence change where, compared to a reference sequence, more than one nucleotide replacing the original sequence is the reverse complement of the original sequence.
Ferro: an inversion replaces a span of more than one nucleotide with its exact reverse
complement. A whole span that equals its own reverse complement types as a single inv, whatever a
competing split partition would call its interior.
Why ferro reads it this way
whole-span-reverse-complement-types-as-inv — A span whose whole content is replaced by its exact reverse complement is written as one inv, however much of its interior coincides with the reference and whatever the competing partition is made of; this is a project choice among conformant forms, not a conformance requirement.
On the r. axis: grounding & the derivation gap
whole-span-reverse-complement-types-as-inv is grounded on DNA clauses only — no r. guard
exists, though RNA/inversion.md:5 states the identical definition on RNA’s own authority, so
extending it would need no DNA-clause stretch (see the page notes above). Per the derivation gap,
ferro preserves an already-spelled r. inversion but does not mint one from a reverse-complement
span.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.177_180inv | recommended | self | well-formed 4-nt inversion on the slice; already inv, so a fixed point (the spec’s own example uses illustrative bases) |
inversion.md:15 — DNA-level reporting is authoring practice, not a normalizer rule
all variants should be described on the DNA level; descriptions on the RNA and/or protein level may be given in addition.
Ferro: author guidance about which level(s) to report, not a normalizer rule. An r. inversion
stands on its own — ferro requires no accompanying c./g. form. Twin of RNA/duplication.md:15.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.177_180inv | recommended | self | a lone RNA-level inversion is valid; no DNA companion required |
inversion.md:16-17 — more than one nucleotide; a one-nucleotide inversion is a substitution
- by definition, the region inverted (
positions_inverted) contains more than one nucleotide. The descriptionr.234invis therefore not allowed; a one-nucleotide inversion should be described as a substitution
Ferro: (i) the grammar admits only a range, so a lone r.234inv is refused at parse; (ii) a
one-nucleotide inversion is by definition a substitution (the reverse complement of one base is its
complement), so there is no lone-inv spelling for ferro to relabel.
On the r. axis: the one-nucleotide redirect is un-adjudicated
No ledger record scopes the “one nucleotide → substitution” redirect on the RNA axis — the DNA
analogue is grounded only on DNA clauses (see :5). The behavior is nonetheless
CONFIRM-by-inspection: the grammar forecloses the lone-inv spelling before any redirect is
needed. Treat this as open/provisional — conformant by construction, not recorded on its own
authority.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.177_180inv | recommended | self | a valid inversion over >1 nt — the shape :16 requires |
NM_004006.3:r.234inv | refused | — | the spec’s class="invalid" single-position inv — refused at parse; an inversion needs a range |
inversion.md:18 — the 3’rule
for all descriptions, the most 3’ position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule).
Ferro: the 3’-shift rule applies to inversions as to any edit type — an inversion writable at several equivalent positions takes its most 3’ one. A shiftable inversion is hard to exhibit here (the slice’s homopolymers lack the needed reverse-complement symmetry), so the row below is a fixed point.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.177_180inv | recommended | self | no equivalent 3’ placement over the flank, so the 3’rule has nothing to shift; already 3’-most |
inversion.md:19 — an inverted duplication is ins<range>inv, not dupinv
inverted duplications are described as an insertion (
r.234_235ins123_234inv), not asr.123_456dupinv.
Ferro: an inverted duplication is spelled ins<range>inv, naming the span the inverted copy came
from — never dup, never the dupinv shorthand (refused at parse). This is the r.-native basis
for the ins<range>inv form.
Why ferro reads it this way
inverted-duplication-is-derived-as-ins-range-inv — An inverted duplication is written as ‘ins
inv’, naming the span the inverted copy came from, rather than expanded to reverse-complemented literal bases; whether a payload counts as an inverted copy at all is gated by a house coincidence-probability floor, not any spec-stated minimum — and it is wired today only in normalize_genome, so c./n./r./m. still emit literals.
On the r. axis: why this is conformant, not recommended
inverted-duplication-is-derived-as-ins-range-inv reaches the r. axis on RNA’s own authority —
not by stretching a DNA clause. Per the derivation gap above, ferro expands an already-spelled
range payload to literal reverse-complement bases rather than preserving the range-inv form —
valid HGVS that re-parses and denotes the same sequence, so conformant, not the recommended
spelling. #2236 is the named fix.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.234_235ins123_234inv | conformant | NM_004006.3:r.234_235insguugacauuguucagggcaugaacucuuguggauccuuuuucuuuuggcaguuuuugcccugucaggccuucgaggaggucuaggaggcgccucccauccuguaggucacug | the spec’s inverted-duplication spelling. On r. ferro expands the range payload to literal reverse-complement bases instead of preserving ins<range>inv — valid HGVS, same sequence, conformant not recommended. Same gap as RNA/insertion.md:18; #2236 names the fix |
NM_004006.3:r.123_456dupinv | refused | — | the dupinv shorthand, marked class="invalid" — refused at parse; the ins<range>inv form is required |
inversion.md:20 — large genomic inversions on RNA give deletion or delins
since exon splice signals will be inverted, large genomic inversions on the RNA level usually give deletion or deletion-insertion (delins) variants
Ferro: descriptive biology, not a rewrite. A large genomic inversion seen on RNA usually surfaces as a deletion or delins because it disrupts splice signals. Ferro applies no automatic recasting, so there’s no verdict row.
inversion.md:21-22 — inversions are not used on the protein level
- inversions are not used on protein level. Depending on the (predicted) consequences of an inversion on protein level, changes are usually described as either a delins or a frameshift.
Ferro: the p. axis has no inv edit type; a protein consequence of an inversion is written as a
delins or frameshift. Ferro emits no protein inv — CONFIRM-by-inspection, no verdict row.
inversion.md:26-27 — Example: a four-nucleotide inversion
r.177_180inv
inversion of nucleotidesr.177tor.180, changing..aggcugauu..to..aggucaguu...
Ferro: the spec’s worked example; its reverse-complement math checks out. A four-nucleotide
whole-span reverse complement types as one inv (whole-span-reverse-complement-types-as-inv,
cited at :5). The spec’s spelling is accession-less, not table-executable; the executable twin on
the slice is a fixed point.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.177_180inv | recommended | self | executable twin of the spec’s bare r.177_180inv; already inv and 3’-most, a fixed point |
inversion.md:29-30 — Example: a 304-nucleotide inversion
r.203_506inv
inversion of the 304 nucleotides from positionr.203tor.506.
Ferro: the spec’s larger worked example — a 304-nucleotide range inversion. No bases are given, so
nothing to recompute; well-formed and well over the one-nucleotide floor (:16). Shown on the slice
as a fixed point.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.203_506inv | recommended | self | executable twin of the spec’s bare r.203_506inv; a fixed point |
inversion.md:34-37 — Discussion: the complement is not an inversion
Spec discussion — is the complement an inversion?
!!! note “Is the change
aagctouucgan inversion?”No, an inversion would change `aagc` to `gcuu`, its **reverse-complement**. `uucg` is only the **complement** of `aagc`.
Ferro: an inversion is the reverse complement, so aagc → gcuu; uucg is only the complement
(bases flipped, order kept). Ferro already uses the reverse complement — CONFIRM-by-inspection.
inversion.md:39-42 — Discussion: the reverse is not an inversion
Spec discussion — is the reverse an inversion?
!!! note “Is the change
aagctocgaaan inversion?”No, an inversion would change `aagc` to `gcuu`, its **reverse-complement**. `cgaa` is only the **reverse** of `aagc`.
Ferro: the mirror image — cgaa is only the reverse (order flipped, bases kept), not the reverse
complement. Together these two fence the definition against its near-misses. Descriptive; no verdict row.
inversion.md:44-46 — Discussion: the old “o” strand marker is not used
Spec discussion — is the old "o" strand marker still used?
!!! note “On the old nomenclature website (bottom), you had the example
r.124_500delinsoAB053210.2:r.1289-365_1289-73, i.e. the “o” indicating the inserted sequenceAB053210.2:r.1289-365_1289-73was from the opposite transcriptional strand. Is the “o” still used?“No, the "o" is not used, the insertion is in an inverted orientation, so "inv" should be used; <code class="invalid">r.124_500delins[AB053210.2:r.1289-365_1289-73inv]</code>.
Ferro: descriptive history — the deprecated o strand marker is gone; opposite-strand insert
sequence is spelled with an inv-suffixed payload (delins[…inv]). This concerns
insertion-payload orientation, not inversion typing, and the cited spelling is on a foreign
accession — no executable row.
See also → RNA/insertion.md:18 and RNA/duplication.md:18-21 (the same ins<range>inv form),
RNA/substitution.md (where a one-nucleotide “inversion” lands, per :16-17).
Deletion-insertion — ferro’s reading
ferro’s reading of the HGVS delins recommendations on the transcript (r.) axis, clause by
clause, with each spelling’s normalized form and a verdict. See
How to read a page for verdicts, table conventions, and recurring terms.
DNA twin: Deletion-insertion (c./g.).
Executable rows use NM_004006.3, the one transcript in the committed slice. Where a spec example’s
stated flank doesn’t match NM_004006.3, the row is shown on a stated-flank twin with the same base
shape. Rows on accessions outside the slice are parse-only (—).
Two rows below are refused because ferro’s parser does not yet accept the spec’s bracketed
cross-reference payload (delins[ACC:g.…], delins[ACC:r.…]) — a parser gap, not an invalid input.
delins.md:5 — definition: not a substitution, not an inversion
Deletion-Insertion (delins): a sequence change where, compared to a reference sequence, one or more nucleotides are replaced by one or more other nucleotides and which is not a substitution or inversion.
Ferro: a delins is one-or-more-for-one-or-more nucleotides that is neither a 1-for-1 substitution
nor a whole-span reverse complement (typed inv). The DNA-side ruling
(whole-span-reverse-complement-types-as-inv) has not been extended to r.; open.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.902_909delinsuuu | recommended | self | a genuine delins (acacacag → uuu) |
NM_004006.3:r.5delinsa | recommended | NM_004006.3:r.5u>a | 1-for-1 net effect is a substitution, not a delins — see :16 |
delins.md:16 — one nucleotide for one is a substitution, not a delins
by definition, when one nucleotide is replaced by one other nucleotide, the change is a substitution.
Ferro: a delins whose net effect is exactly one nucleotide for one is normalized to the
substitution form, on rule-1 (“by definition”) force.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.5delinsa | recommended | NM_004006.3:r.5u>a | r.5 is u; the net 1-for-1 change collapses to the recommended substitution |
delins.md:17-19 — separation, and the one-nucleotide codon exception
- two variants separated by one or more nucleotides should be described individually and not as a “delins”.
- exception: two variants separated by one nucleotide, together affecting one amino acid, should be described as a “delins” (e.g.,
r.142_144delinsuggp.(Arg48Trp)).
NOTE: this prevents tools predicting the consequences of a variant to make conflicting and incorrect predictions of two different substitutions at one position.
Ferro: rule 2 stands unqualified on r. — members a nucleotide or more apart are described
individually — except for the one-nucleotide codon exception, which also applies to r.. The
DNA-side payload-coincidence widening (DNA/delins.md:47) has no RNA/delins.md counterpart, so
it does not reach this axis.
Why ferro reads it this way
separation-rule-force-modal-or-negation — Two changes a nucleotide or more apart are described individually — this is the spec’s preference (ruleset rule 2), not an outright ban; the only spelling the recommendations forbid is the split at separation zero.
delins-codon-carve-out-gap-one — Two changes one nucleotide apart that together affect a single amino acid are written as one delins on the coding sequence, the explicit exception the spec makes to describing them individually.
projection-codon-exception-is-decided-by-the-rendered-axis — The codon merge fires only on an axis that declares a reading frame, so when a coding description merges under it ferro leaves the members individual on the derived genomic axis rather than re-merging it to match.
delins-payload-coincidence-carve-out-is-coding-dna-scoped — Where a split exists only because payload bases coincide with the reference, ferro writes it as one spanning delins on every DNA axis (c./g./m./n., but not r.); on the frameless axes this is a disclosed rule-2 deviation and the project’s choice among conformant forms.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.[100a>u;104a>g] | recommended | self | separated by 3 nt and in different codons (34 and 35) — no codon-exception antecedent; stays split, r.’s recommended form under rule 2 |
NM_004006.3:r.[142a>u;144g>c] | recommended | NM_004006.3:r.142_144delinsugc | codon 48 (agg → ugc, p.(Arg48Cys)); one nucleotide apart, one amino acid — the :18 exception reaches r. on this document’s own authority. Worked in full at :38-42 below |
delins.md:20-21 — conversions are a delins; con is retired
conversions, a sequence change where a range of nucleotides are replaced by a sequence from elsewhere in the genome, are described as a “delins”. The previous format “con” is no longer used (see Community Consultation SVD-WG009).
Ferro: SVD-WG009 is accepted; the retired con syntax is never emitted — refused in strict,
repaired to delins in lenient.
Why ferro reads it this way
absolute-prohibition-enforcement-stage — Spellings the spec prohibits are rejected — at parse in strict mode; lenient mode instead repairs the input where it can and fails only if it cannot normalize.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:r.2623_2803delins2804_2949 | conformant | — | the delins form for a conversion (SVD-WG009 accepted); ferro would expand the same-accession range to literal bases on a real reference, so not the recommended range form (spec’s own accession, outside the slice — parse-only) |
NM_004006.3:r.5_16delins123_134 | conformant | NM_004006.3:r.[5_8delinscagu;10_13delinsaccu;15_16delinsca] | executable conversion probe on the slice: a same-accession numeric-range payload — ferro expands the 123_134 range to literal bases and re-derives the resulting change into a three-member split, so not the recommended range form — conformant |
NM_004006.2:r.2623_2803con2804_2949 | refused | — | the retired con syntax — rejected in strict mode |
delins.md:22-24 — adjoined transcripts: a special-case delins
Adjoined transcripts from gene fusions represent a special case of deletion-insertion variant. The fusion break point is described using
::.
NOTE: to avoid confusion, HGVS recommends to follow the HGNC guidelines to describe products of gene translocations or fusions (formatGENESYMBOL1::GENESYMBOL2) and readthrough transcripts (formatGENESYMBOL1-GENESYMBOL2).
Ferro: descriptive — syntax is delegated entirely to adjoined_transcript.md. “Special case of
delins” is not read as “may be rewritten as a delins”: with two reference sequences, nothing is
re-derivable and nothing 3’-shifts.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_152263.2:r.-115_775::NM_002609.3:r.1580_*1924 | recommended | — | the spec’s own TPM3::PDGFRB example (adjoined_transcript.md:29); neither partner is in the slice — parse-only. The full rules live in adjoined_transcript.md, not on this page |
NM_152263.2:c.-115_775::NM_002609.3:c.1580_*1924 | refused | — | c. partners inside :: are rejected — the syntax is RNA-only, per adjoined_transcript.md:18 |
delins.md:25 — the 3’ rule
for all descriptions, the most 3’ position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule).
Ferro: canonicalization derives from the resulting sequence and applies the 3’ rule as part of
that re-derivation (the exon-junction exception lives at general.md:43). For a delins the rule
bites only after re-derivation trims payload bases that coincide with the reference into residual
pieces, which then shift.
Why ferro reads it this way
canonical-form-choice-when-both-legal — When two descriptions of one variant are both legal and no clause chooses between them, ferro applies the edit set to the reference and re-derives the description from the resulting sequence — subject to every explicit spec tie-break, and breaking any remaining tie toward the already-shipped form — rather than preserving the input’s spelling.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.775_776delinsa | recommended | NM_004006.3:r.777del | r.775_777 is aaa; the net effect is one a deleted from the run, and the 3’ rule places it on r.777 |
NM_004006.3:r.149delinsga | recommended | self | c[u]c → c[ga]c: neither payload base coincides with the reference, nothing residual to shift — a fixed point |
delins.md:29-31 — example: r.775delinsga
r.775delinsga
a deletion of nucleotider.775(au, not described), replaced by nucleotidesga, changing..aggcucauu..to..aggcgacauu...
Ferro: on the stated flank neither payload base equals the deleted u; both minimal two-member
partitions are separation zero with an ins on one side, so both merge to one delins under
delins-adjacent-members-when-both-consume-reference — a fixed point. Shown on the stated-flank
twin r.149 (c[u]c), since NM_004006.3’s r.775 is a, not the spec’s u.
Why ferro reads it this way
delins-adjacent-members-when-both-consume-reference — Two adjacent changes that both consume reference bases are written as a single delins; the spec marks the split spelling “not correct” at separation zero.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.149delinsga | recommended | self | stated-flank twin (cuc → cgac); fixed point |
NM_004006.3:r.[149u>g;149_150insa] | recommended | NM_004006.3:r.149delinsga | one minimal split, separation zero — converges to the delins |
NM_004006.3:r.[148_149insg;149u>a] | recommended | NM_004006.3:r.149delinsga | the other minimal split — also converges |
NM_004006.3:r.775delinsga | recommended | NM_004006.3:r.774_775insg | the spec’s literal spelling on this transcript’s bases: r.775 is a, so the payload’s a coincides with the reference and the variant is an insertion of g, not a delins — ferro re-derives from the resulting sequence rather than preserving the spelling |
Confluence. {r.[149u>g;149_150insa], r.[148_149insg;149u>a], r.149delinsga} → r.149delinsga.
delins.md:32-34 — example: r.775_777delinsc, and the r.-exclusion
r.775_777delinsc
a deletion of nucleotidesr.775tor.777(uca, not described), replaced by nucleotidec, changing..aggcucauu..to..aggccuu...
Ferro: on the stated flank the payload c coincides with reference base 776, so the minimal
partition is [775del;777del] — one unchanged base apart, :17’s antecedent. The DNA-side
payload-coincidence carve-out (DNA/delins.md:47) is scoped to DNA axes only, so on a non-coding
r. transcript rule 2 governs unqualified and the block stays split — a rule-2-conformant r.
split, not a ferro limitation. On a coding transcript, whether the one-nucleotide codon exception
(:18) separately licenses keeping this block whole is open (see Notes). Executable rows use
stated-flank twins, since NM_004006.3’s r.775_777 is aaa and has no coincidence at all.
Why ferro reads it this way
delins-payload-coincidence-carve-out-is-coding-dna-scoped — Where a split exists only because payload bases coincide with the reference, ferro writes it as one spanning delins on every DNA axis (c./g./m./n., but not r.); on the frameless axes this is a disclosed rule-2 deviation and the project’s choice among conformant forms.
unequal-length-block-a-placed-gap-is-not-a-separation — A lone unequal-length net-deletion delins whose payload merely coincides with the reference, and whose every member other than the placed gap would itself render as a delins, is kept whole on every DNA axis (c./g./m./n., but not r.) rather than split at that coincidence into a separate residual member.
codon-carve-out-shape-restriction — Two changes one nucleotide apart that together alter a single amino acid are ruled one delins whatever the edit types — because “together affecting one amino acid” is a fact about the resulting sequence, not about how the input was spelled — though the coding-codon pass currently implements only the substitution/unchanged-base/substitution triplet.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NR_x.1:r.775_777delinsc | recommended | — | non-coding twin, illustrative accession (not resolvable — parse-only). The decided reading: payload coincides with reference 776c, separation one, no reading frame for :18, :17 unqualified — r.[775del;777del] is r.’s recommended form, since the DNA-scoped carve-out does not reach this axis (delins-payload-coincidence-carve-out-is-coding-dna-scoped, unequal-length-block-a-placed-gap-is-not-a-separation) |
NM_004006.3:r.123_125delinsa | recommended | NM_004006.3:r.[123del;125del] | coding transcript, stated-flank twin spanning codons 41/42 (u[cag]u → u[a]u): payload coincides with 124a, separation one, but the pair does not sit within one codon — :18 has no antecedent, :17 governs, split |
NM_004006.3:r.103_105delinsa | conformant | self | coding transcript, stated-flank twin within codon 35 (g[cag]c → g[a]c): same shape, one codon; whether :18’s “together affecting one amino acid” also covers this net −2 (frameshift) pair is open — provisional, see Notes |
Notes. The spec publishes this example whole and accession-less. On a non-coding r. reading,
no clause licenses re-merging the split, even though the DNA axes merge the identical shape under
the payload-coincidence carve-out. On a coding r. reading, whether a net-length-changing
(frameshift) pair counts as “together affecting one amino acid” is undecided
(codon-carve-out-shape-restriction); ferro’s implementation merges on span-within-one-codon
alone, so its whole-block output on a coding transcript is marked conformant rather than
recommended pending that decision.
delins.md:35-37 — example: r.902_909delinsuuu
r.902_909delinsuuu
a deletion of nucleotidesr.902tor.909, replaced by nucleotidesuuu.
Ferro: no flank is stated; on NM_004006.3 (r.902_909 is acacacag) no payload base coincides
with any reference base in the deleted span, and the span crosses codons 301-303. Nothing to
split, nothing to shift — fixed point.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.902_909delinsuuu | recommended | self | no payload/reference coincidence; span crosses three codons — fixed point |
delins.md:38-42 — example: r.142_144delinsugg, and the polymorphism note
r.142_144delinsugg(p.Arg48Trp)
a deletion replacing nucleotidesr.142tor.144(cga, not described) withugg.
NOTE: the variant can also be described asr.[142c>u;144a>g], i.e. two substitutions. This format is preferred when either of the two variants is known as a frequently occurring variant (“polymorphism”).
Ferro: on the stated flank, separation is one (143g unchanged) and codon 48 — the :18
exception merges the split to one delins. The spec’s preference for the split, on population
frequency, is provenance no normalizer holds; ferro re-derives from the resulting sequence
instead. NM_004006.3’s codon 48 is agg, not the spec’s cga, so the rows use the same-shaped
agg → ugc.
Why ferro reads it this way
delins-codon-carve-out-gap-one — Two changes one nucleotide apart that together affect a single amino acid are written as one delins on the coding sequence, the explicit exception the spec makes to describing them individually.
canonical-form-choice-when-both-legal — When two descriptions of one variant are both legal and no clause chooses between them, ferro applies the edit set to the reference and re-derives the description from the resulting sequence — subject to every explicit spec tie-break, and breaking any remaining tie toward the already-shipped form — rather than preserving the input’s spelling.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.142_144delinsugc | recommended | self | codon 48; p.(Arg48Cys) — fixed point |
NM_004006.3:r.[142a>u;144g>c] | recommended | NM_004006.3:r.142_144delinsugc | the polymorphism-preferred split shape; ferro re-derives from the resulting sequence rather than preserving that provenance |
Confluence. {r.[142a>u;144g>c], r.142_144delinsugc} → r.142_144delinsugc.
delins.md:43-51 — RNA conversion examples
- RNA conversion (based on SVD-WG009)
NM_004006.2:r.2623_2803delins2804_2949
conversion replacing nucleotidesr.2623tor.2803(exon 21) with nucleotidesr.2804tor.2949(exon 22) as found in the DMD coding RNA sequence fileNM_004006.2.r.415_1655delins[AC096506.5:g.409_1649]
conversion replacing nucleotidesr.415tor.1655with nucleotidesg.409tog.1649as found in the genomic reference sequenceAC096506.5.r.1401_1446delins[NR_002570.3:r.1513_1558]
conversion in exon 9 of the CYP2D6 gene, replacing exon 9 nucleotidesr.1401tor.1446with those of the 3’ flanking CYP2D7P1 gene, nucleotidesr.1513tor.1558.
Ferro: three payload forms — a same-accession range, a bracketed foreign genomic range, a
bracketed foreign RNA range. Ferro parses only the same-accession range form, and does not keep
it as a range: on a real reference it expands the range to literal bases and normalizes the result,
so its output is not the recommended delins<range> citation form — conformant. The two
bracketed cross-reference forms it does not yet parse at all — a parser gap, refused below.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:r.2623_2803delins2804_2949 | conformant | — | same-accession conversion range; ferro would expand it to literal bases on a real reference rather than preserve it, so not the recommended range form (spec’s own accession, outside the slice — parse-only) |
r.415_1655delins[AC096506.5:g.409_1649] | refused | — | the spec’s own foreign-genomic-range payload — ferro’s parser does not yet accept a bracketed cross-reference payload, so refused records a parser gap, not an invalid input |
r.1401_1446delins[NR_002570.3:r.1513_1558] | refused | — | the spec’s own foreign-RNA-range payload (CYP2D6/CYP2D7P1). Same ferro parser gap as the row above — a limitation on a spec-recommended form, not an invalid input |
Notes. r.2623_2803delins2804_2949 is sequence-identical to
r.[2623_2803del;2804_2949dup] — a del adjacent to a dup at separation zero. The dup half of
the separation-zero merge is still open (delins-adjacent-members-when-both-consume-reference
covers only del/ins/sub/inv); open.
delins.md:62-66 — Q&A: gc>ug is not a di-nucleotide substitution
!!! note “Can I describe a
gctougvariant as a di-nucleotide substitution (r.4gc>ug)?”No, this is not allowed. By definition, a substitution changes one nucleotide into one other nucleotide (see Substitution). The change
augugccatoauguugcashould be described asr.5_6delinsug, i.e. a deletion/insertion (delins).
Ferro: the di-nucleotide substitution spelling is refused; two adjacent changed nucleotides
(separation zero) are described as one delins — RNA’s own authority for the sub+sub merge.
NM_004006.3:r.5_6 is uu (not the Q&A’s gc), so the executable rows change both to ag.
Why ferro reads it this way
delins-adjacent-members-when-both-consume-reference — Two adjacent changes that both consume reference bases are written as a single delins; the spec marks the split spelling “not correct” at separation zero.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.4gc>ug | refused | — | the disallowed di-nucleotide substitution spelling |
NM_004006.3:r.[5u>a;6u>g] | recommended | NM_004006.3:r.5_6delinsag | adjacent, separation zero — merges to the recommended delins |
NM_004006.3:r.5_6delinsag | recommended | self | the merged form is a fixed point |
Confluence. {r.[5u>a;6u>g], r.5_6delinsag} → r.5_6delinsag.
Note. The governing record does not yet cite this clause or its RNA/substitution.md:16
twin — a citation gap, not a behavior question.
delins.md:68-71 — Q&A: the BRCA1 sub+ins merge
!!! note “The BRCA1 coding RNA reference sequence
NM_007294.3from positionr.2074tor.2080iscaugaca. A variant frequently found in the population iscauaaca(NM_007294.3:r.2077g>a). In a patient I found the sequencecauauaaca. Can I describe this variant asNM_007294.3:r.[2077g>a;2077_2078insua]?”The correct description of this variant is
NM_007294.3:r.2077delinsaua.
NOTE: the answer was modified, i.e. the addition “However, since the variant is likely a combination of two other variants, it is acceptable to describe it asNM_007294.3:r.[2077g>a;2077_2078insua].” was removed.
Ferro: separation-zero sub+ins merges to one delins; the committee withdrew a provenance-based
permission for the split. The spec’s own NM_007294.3 rows are parse-only here (outside the
slice); the same shape is executed on NM_004006.3 at r.149 (c[u]c → c[aga]c).
Why ferro reads it this way
delins-adjacent-members-when-both-consume-reference — Two adjacent changes that both consume reference bases are written as a single delins; the spec marks the split spelling “not correct” at separation zero.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_007294.3:r.2077delinsaua | recommended | — | the spec’s own answer; fixed point by construction (parse-only here) |
NM_007294.3:r.[2077g>a;2077_2078insua] | recommended | — | the withdrawn split — the committee removed the passage permitting it (parse-only here) |
NM_004006.3:r.149delinsaga | recommended | self | executable twin of the sub+ins shape; fixed point |
NM_004006.3:r.[149u>a;149_150insga] | recommended | NM_004006.3:r.149delinsaga | executable twin of the withdrawn split: separation zero, sub + ins — merges to the delins |
Confluence. {r.[149u>a;149_150insga], r.149delinsaga} → r.149delinsaga.
Repeated Sequences — ferro’s reading
ferro’s reading of the HGVS repeated sequence recommendations on the transcript (r.)
axis, clause by clause, with each spelling’s normalized form and a verdict. See
How to read a page for verdicts, table conventions, and recurring terms.
DNA twin: Repeated Sequences (c./g.).
Three ledger records govern this page: rna-repeat-range-plus-unit-redundancy is
undecided by design — it states the central :22/:27 conflict rather than resolving it.
confluence-gate-is-apply-equality-on-every-determined-axis governs the
sequenced-versus-interruptible split at :19-21. canonical-form-choice-when-both-legal (a
general, molecule-neutral mechanism) governs the range-only-versus-start-plus-unit choice at
:31-34. Everything else on this page — the definition, the Community Consultation NOTE, the
DNA-level and size notes, the multiple-of-3 restriction with its UTR carve-out, the
composite-repeat syntax, and the FMR1/HD 3’rule examples — carries no Why block: it is a
straight reading of the spec text and the shipped code, not an adjudicated ruling.
The spec’s own examples sit on foreign accessions the committed slice does not carry, or on bare
accession-less spellings, so most rows below are parse-only (—). The one slice transcript,
NM_004006.3, carries a real repeat tract the spec never names — an ac dinucleotide run of 8
copies at r.*460_*475 in the 3’UTR — which anchors the single executable row on this page
(:24-27).
The grammar fact under the whole page: rna.rpt admits exactly two canonical repeat
spellings — a range only (r.9495_9497[4], no unit) or a single start position plus a unit
(r.9495caa[4], no range). A description carrying both (r.-125_-123cug[4], r.-6_-3g[6])
matches neither production, which is what makes :22 and :27 a genuine self-contradiction
rather than a matter of taste.
repeated.md:5 — definition: a repeat unit present several times
Repeated sequence: a sequence where, compared to a reference sequence, a segment of one or more nucleotides (the repeat unit) is present several times, one after the other.
Ferro: the definition of the object. A repeat is a unit (one or more nucleotides) tandemly present in several copies. It states no normalization obligation, so there is no verdict row.
repeated.md:9 — Community Consultation: entire-range-only is a proposal, not yet a rule
NOTE: a Community Consultation proposal is being prepared which will suggest to allow only the format where the entire range of the repeated sequence is indicated; so
r.123_191cag[23], notr.123cag[23].
Ferro: a forward-looking NOTE describing a proposal that is being prepared, not a current rule —
and the inverse of the page’s own worked examples, which use single-anchor forms (r.53agc[19],
r.-124ug[14]). A parser must not enforce entire-range-only today. Ferro accepts single-anchor
start-plus-unit forms, which is correct against the current text.
repeated.md:17-18 — DNA-level reporting, and the size range of repeats
- all variants should be described on the DNA level; descriptions on the RNA and/or protein level may be given in addition.
- repeated sequences include both small (mono-, di-, tri-, etc., nucleotide) and larger (kilobase-sized) repeats.
Ferro: both are reporting-practice statements, not constraints on how a written r. description is
normalized. The DNA-level recommendation (“may be given in addition”) does not forbid a lone r.
repeat — ferro normalizes one without demanding a c./g. companion — and the size range is
descriptive scope. That RNA descriptions are secondary to and derived from the DNA level is why the
DNA page’s parallel treatment weighs in where the RNA page contradicts itself, at :22/:27. No
verdict row.
repeated.md:19-21 — repeat-position form preferred; the sequenced-versus-interruptible split
- the format based on repeat position is preferred, descriptions of the repeat sequence quickly become too lengthy.
NOTE: whiler.123cug[23]describes a repeat of 23cugunits,r.123_125[23]describes a tri-nucleotide repeat of 23 units which could be interrupted with other units (e.g., a rarecua). The descriptionr.123cug[23]can thus only be used when the repeat was sequenced.
Ferro: the range-only form (r.123_125[23]) and the start-plus-unit form (r.123cug[23]) make
different epistemic claims — range-only admits interruptions, the unit-spelled form asserts a
pure tract “only… when the repeat was sequenced” — yet on a pure tract they denote the same
sequence. Ferro’s confluence gate applies equality on the denoted bases, so it treats the two as
one equivalence class: the “was sequenced” distinction is provenance, not sequence, and isn’t
recoverable from the bases, so encoding it would reintroduce the spelling-dependence the gate
exists to remove.
Why ferro reads it this way
confluence-gate-is-apply-equality-on-every-determined-axis — Ferro’s release gate asserts that inputs denoting the same sequence on every determined axis, the protein axis excluded, normalize to one output; it is asserted over decided equivalence classes only, and equivalence is judged by applying the descriptions to the reference rather than by comparing normalized strings.
The two forms are accession-less in the spec, so there is no executable verdict row; the epistemic
gap is a canonical-form question, not a confluence one. The concrete instance of this split
appears at the HD example (:49-56), where r.53agc[19] (pure, needs sequencing) and
r.53_55[31] (range, admits interruptions) describe the same locus.
repeated.md:22 — range-plus-unit is called invalid, and :27 publishes it as valid
This is the page’s central conflict, and it is upstream’s, not ferro’s. :22 states a rule:
- the format
r.-125_-123cug[4]should not be used; it contains redundant information (-125_-123andcug).
Yet four lines later, repeated.md:27 publishes exactly that range-plus-unit shape as a valid
worked example:
As such,
NM_024312.4:r.-6_-3g[6]is valid as the reading frame is not affected.
Ferro’s reading, since the governing record is deliberately undecided:
Both strings are the same ill-formed shape — a range plus a unit — and neither matches either
rna.rpt production. :22 states a rule with a reason (the range already fixes the unit, which
agrees with the grammar); :27 is an example that violates both the grammar and :22. :27’s
instance is worse than merely redundant: in :22’s example the range length equals the unit
length (3 nt each), so the two pieces are consistent-but-redundant, but in :27 the range spans
4 positions while the unit is 1 nt repeated 6×, so the two pieces cannot both be true. What :27
is trying to demonstrate — a mononucleotide repeat is legal in the 5’UTR because the reading frame
is not affected — is sound; only the spelling is wrong. The grammar-conformant spelling is the
start-plus-unit r.-6g[6], which :22 does not bar (a single start position doesn’t fix the
unit). The DNA sibling (c.-6_-3G[6]) doesn’t corroborate :27 either — it is the same upstream
error copied, not a second witness.
Ferro’s reading leans toward :22 (the rule generalises; the example does not), with the
canonical valid form being r.-6g[6] — but this is held open pending an upstream filing, since
the conflict is upstream’s to correct. The record stays undecided.
Why ferro reads it this way
rna-repeat-range-plus-unit-redundancy — On an RNA reference, may a repeat be written with BOTH a position range and the repeat unit (
r.-6_-3g[6])?RNA/repeated.md:22marks that shape invalid as redundant;:27publishes exactly that shape as valid.
Ferro’s own behaviour hides an open finding. A lenient repair hands the normalizer the
anchored r.-6g[6], and the normalizer’s tract maximization then re-widens the
single-nucleotide anchor back into a range, re-emitting r.-6_-3g[6] — the very :22-invalid,
:27-contradictory string. So ferro’s agreement with :27 is an artifact of two independent
passes, not a resolution. If the ledger ever decides for :22, this output becomes
non-conformant, and the fix is to stop the repeat renderer widening a single-nucleotide anchor
into a range. That widening is an open finding, not yet filed as an issue.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_024312.4:r.-6g[6] | conformant | — | the grammar-valid start-plus-unit anchored form (a single start position does not fix the unit, so it is not barred by :22) — the intended variant’s conformant spelling. A lenient repair emits this, but the normalizer’s tract maximization re-widens it to the range-plus-unit r.-6_-3g[6]. Parse-only (outside the slice); the widening is the open finding above |
NM_024312.4:r.-6_-3g[6] | conformant | — | :27’s published-valid range-plus-unit shape, and the string ferro’s normalizer manufactures by widening the row above. Ferro’s parser accepts it on round-trip — but the documented rna.rpt grammar admits neither range-plus-unit form, so parser acceptance here is not spec validity; whether it is the right form is what the undecided record leaves open, and read literally it is internally contradictory (4-position range against a 1-nt unit ×6). Parse-only |
NM_024312.4:r.-125_-123cug[4] | conformant | — | :22’s own class="invalid" range-plus-unit example, on the page’s foreign accession. Here range length equals unit length (3 nt each), so it is redundant rather than contradictory — the milder of the two :22-shape instances. Same undecided treatment; the grammar-conformant re-spellings are r.-125cug[4] (start-plus-unit) or r.-125_-123[4] (range-only). Parse-only |
repeated.md:23 — composite repeats: successive per-unit listing
- for composite repeats, the basic format can be used, successively listing each different repeat unit;
r.456_465[4]466_489[9]490_499[3].
Ferro: descriptive syntax for composite (mixed-unit) repeats. The example illustrates the shape, not a valid string, and uses a range-per-unit listing where the DNA page’s mixed-repeat canonical form is unit-per-segment — a page-internal inconsistency, out of scope here. No verdict row.
repeated.md:24-27 — the multiple-of-3 coding restriction, and the UTR carve-out
- exception: using a coding RNA reference sequence, a repeated sequence variant description can be used only for repeat units with a length which is a multiple of 3, i.e. which can not affect the reading frame. Consequently, use
NM_024312.4:r.2692_2693dupand notNM_024312.4:r.2686a[10]; useNM_024312.4:r.1741_1742insuauauauaand notNM_024312.4:r.1738ua[6]. This restriction only applies to the coding sequence, which does not include the UTR sequence. As such,NM_024312.4:r.-6_-3g[6]is valid as the reading frame is not affected.
Ferro: on a coding RNA reference a repeat unit must be a multiple of 3 (so it cannot shift the
reading frame); an out-of-frame coding repeat is repaired away to a dup/ins describing the same
change. The restriction is gated off in the UTR, where any unit length is legal. Both halves are
implemented. There is no dedicated ledger record — this is a straight reading of the text, not
an adjudicated conflict — so no Why block.
The carve-out verdict does not depend on :27’s bad string: the mononucleotide-in-5’UTR
exemption is correct, and only the range-plus-unit spelling it is shown with is what :22 disputes.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_024312.4:r.2686a[10] | recommended | — | :25’s class="invalid" coding mononucleotide repeat (unit length 1, not a multiple of 3); ferro repairs it away to the spec’s own recommended r.2692_2693dup, the only legal form in the CDS. Parse-only (foreign accession) |
NM_024312.4:r.2692_2693dup | recommended | — | the spec’s own recommended rewrite of the row above — a dup describing the same change in-frame |
NM_024312.4:r.1738ua[6] | recommended | — | :25’s second class="invalid" coding repeat (di-nucleotide unit, length 2); ferro repairs it to the spec’s own recommended r.1741_1742insuauauaua in default/lenient (strict declines the barred spelling) |
NM_024312.4:r.1741_1742insuauauaua | recommended | — | the spec’s recommended rewrite of the row above — an ins describing the same change |
NM_024312.4:r.-6_-3g[6] | conformant | — | the UTR carve-out itself: a 5’UTR mononucleotide repeat is exempt from the multiple-of-3 rule (reading frame not affected), so :27 calls it valid. This is also the :22-shape string the section above disputes — the carve-out is correct, the range-plus-unit spelling is the open conflict. Parse-only |
NM_004006.3:r.*460ac[9] | recommended | NM_004006.3:r.*475_*476dup | the one executable row on this page: NM_004006.3 carries a real ac×8 3’UTR dinucleotide tract at r.*460_*475, so r.*460ac[9] asserts one extra ac copy. Unit length 2 is not a multiple of 3, yet the repeat is legal because *460 sits in the 3’UTR. Ferro reads the single-copy expansion as a duplication and applies the 3’rule, emitting the 3’-most r.*475_*476dup (the same output r.*460_*461dup and r.*474_*475dup both converge on) |
repeated.md:31-34 — Example #1: r.-124_-123[14], and the population-preference NOTE
r.-124_-123[14](alternativelyr.-124ug[14])
a repeated di-nucleotide sequence, with the first unit located from positionr.-124tor.-123, is present in 14 copies.
NOTE: when the repeat is variable in the population and the reference sequence has 15 units, the descriptionr.-123ug[14]is preferred overr.-97_-96del.
NOTE: when the repeat is variable in the population and the reference sequence has 15 units, the descriptionr.-123ug[17]is preferred overr.-99_-96dup.
Ferro: the range-only r.-124_-123[14] (2-nt unit) and the start-plus-unit r.-124ug[14] are the
two canonical spellings the grammar admits, offered as equals — a pair that is legitimately
both-legal (range length equals unit length), unlike the :22/:27 hybrid. Which of the two
ferro emits is governed by canonical-form-choice-when-both-legal: ferro derives the form from
the resulting sequence rather than preserving the input’s spelling.
Why ferro reads it this way
canonical-form-choice-when-both-legal — When two descriptions of one variant are both legal and no clause chooses between them, ferro applies the edit set to the reference and re-derives the description from the resulting sequence — subject to every explicit spec tie-break, and breaking any remaining tie toward the already-shipped form — rather than preserving the input’s spelling.
The “preferred when variable in the population” NOTEs are provenance-conditioned: the preferred description depends on population variability and reference unit count, facts about population frequency the normalizer cannot recover. That is a disclosed GAP (upstream/unimplementable), not a defect. Both spec forms are accession-less, so there is no executable verdict row.
repeated.md:36-37 — Example #2: the two-allele form r.-124_-123[14];[18]
r.-124_-123[14];[18](alternativelyr.-124ug[14];[18])
a repeated di-nucleotide sequence, with the first unit located from positionr.-124tor.-123, is present in 14 copies on one allele and 18 copies on the other allele.
Ferro: the same range-only-versus-start-plus-unit both-legal choice from Example #1, carried onto a
;-separated two-allele description, governed identically by
canonical-form-choice-when-both-legal. Both forms are accession-less, so there is no verdict row.
repeated.md:39-47 — Example #3: the FMR1 ggc repeat and the 3’rule
- FMR1
GGC-repeat: in literature, the Fragile-X tri-nucleotide repeat is known as theCGG-repeat. However, based on a coding RNA reference sequence (GenBankNM_002024.5) and applying the 3’rule, on the RNA level, the repeat has to be described as aggc-repeat (see Recommendations).
r.-128_-126[79]
an extended repeat of exactly 79 units.
NOTE:r.-128ggc[79]can only be used when the repeat has been sequenced, excluding it is interrupted by one or moregga-triplets.
r.-128_-126[(600_800)]
the repeated tri-nucleotide sequence, starting at positionc.-128, has an estimated size of between 600 and 800 copies.
NOTE: the repeat can be pure or a mix ofggcandggatriplets.
Ferro: the ggc unit (not cgg) is a consequence of the 3’rule — the most 3’ equivalent placement
of the tract. The extended and estimated-size forms below are descriptive syntax. The
r.-128ggc[79] NOTE repeats the :19-21 epistemic point: the unit-spelled form can only be used
when the tract was sequenced, excluding a gga-triplet interruption. CONFIRM-by-inspection.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_002024.5:r.-128_-126[79] | recommended | — | the spec’s own range-only form for an extended repeat of exactly 79 units, on its coding accession. The ggc unit follows from the 3’rule (general.md:40-42). Parse-only (foreign accession, outside the slice) |
NM_002024.5:r.-128_-126[(600_800)] | recommended | — | the uncertain-count form [(600_800)] for an estimated 600–800 copies — descriptive syntax, preserved as written. Parse-only |
repeated.md:49-56 — Example #4: the HD agc repeat, and the epistemic pair made concrete
- HD
AGC-repeat: based on the HTT (huntingtin) coding DNA reference sequence (GenBankNM_002111.6), applying the 3’rule, on the RNA level, the Huntington’s Disease tri-nucleotide repeat is described as anagc(notcag) repeat.
r.53agc[19]
NOTE: the coding RNA reference sequence (NM_002111.6) contains an allele of 21agcrepeats.
NOTE: on protein level, the reference allele contains 21Glns, described asp.Gln[21](alternativelyp.Q[21]). The difference derives from the fact that theagcrepeat is interrupted by aaac-triplet (caacoding) at position 20.
r.53_55[31]
the coding RNA reference sequence (NM_002111.6) contains a tri-nucleotide allele of 32 repeats (agc-19,aac,agc,cgc,cac,cgc-7,cuc-2) encoding 21Glnand 11Pro-residues.
Ferro: the 3’rule gives agc (not cag), the same shift consequence as the FMR1 example. This
locus makes the :19-21 sequenced-versus-interruptible split concrete: r.53agc[19] (pure,
unit-spelled, usable only when sequenced) and r.53_55[31] (range-only, admits the aac
interruption) describe the same tract as different epistemic claims — apply-equal, one class to
ferro (confluence-gate-is-apply-equality-on-every-determined-axis).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_002111.6:r.53agc[19] | recommended | — | the spec’s start-plus-unit form for the pure agc tract, on its coding accession — usable only when the tract is sequenced (it asserts no aac interruption). Parse-only (foreign accession, outside the slice) |
NM_002111.6:r.53_55[31] | recommended | — | the spec’s range-only form for the same locus (a tri-nucleotide allele of 32 repeats, interrupted: agc-19, aac, agc, cgc, cac, cgc-7, cuc-2), which admits the interruptions the unit-spelled form excludes. Apply-equal to the row above on a pure tract; the epistemic gap is a canonical-form question, not a rung. Parse-only |
See also → RNA/insertion.md:20-21 (the by-range-versus-literal payload choice, the same
canonical-form-choice-when-both-legal mechanism), general.md:40-42 (the 3’rule the FMR1/HD
examples apply), DNA/repeated.md:57-58 (the parallel ggc/agc 3’rule treatment on the DNA
axis, and — at DNA/repeated.md:24 — the copied c.-6_-3G[6] that mirrors :27’s conflict).
Alleles — ferro’s reading
ferro’s reading of the HGVS alleles recommendations on the transcript (r.) axis, clause
by clause, with each spelling’s normalized form and a verdict. See
How to read a page for verdicts, table conventions, and recurring terms.
DNA twin: Alleles (c./g.).
Two kinds of conformant row on this page are not mere limitations. Three rows at :5 are
inputs ferro refuses in strict mode at normalize (W5002), which the checked refused
verdict — a strict parse check — cannot carry, so they are recorded on what the lenient tier
emits. Two rows at :36-52 / :82-85 re-spell the spec’s own compact form to an expanded one;
the output re-parses, which is what the verdict measures, and the defect is filed as
#2214.
No ledger record cites any RNA/alleles.md clause — the whole document is a record-level gap,
so every section below carries no Why block; the reading is CONFIRM-by-inspection against the
spec text and the shipped code. The one cross-axis record touching allele member geometry,
conflicting-member-geometry-refusal-scope, governs only DNA/alleles.md:5 and enumerates just
c./g. shapes, so it carries no RNA authority; where relevant it is documented in a Note, not a
Why block (see alleles.md:5).
How ferro treats an allele: members are parsed into an AllelePhase — Cis ([a;b]), Trans
([a];[b]), Unknown (a(;)b), Products (,) — and each member is normalized in its own
frame. Merge/collapse passes fire only for cis, so a cis allele’s adjacent members may
merge, while trans, unknown and Products members are only individually normalized —
never merged, never reordered. An r. allele therefore round-trips member-wise: a shiftable
member 3’-shifts inside every phase, including a predicted [(…)] wrap and a , Products
allele, and the join is preserved in each.
Executable rows use NM_004006.3, the one transcript in the committed slice. The spec’s own
examples sit on accessions outside the slice, so those rows are parse-only (—).
alleles.md:5 — definition, and the member-geometry refusal
Allele: a series of variants in a transcript from one chromosome.
Ferro: an allele is a series of variants on one transcript from one chromosome. Two members that
claim intersecting reference territory — nested, overlapping, or two insertions at one point —
contradict “a series of variants” and are refused. The refusal is coordinate-based (compares
member spans, no reference bases needed) and is axis-general in behaviour: each r. row below
fails strict-mode normalization with the same W5002 OverlapConflictingEdits message as its c.
twin.
The stage matters for how the rows are recorded. The refusal fires at normalize, not at
parse — strict parse accepts all three. This page’s refused verdict is checked at strict parse,
so it cannot carry a normalize-time refusal; the three rows below are recorded on what the lenient
tier emits, which is the input unchanged, carrying the W5002 warning. Read conformant there as
“strict refuses; lenient passes through”, not as “ferro accepts intersecting members”.
No ledger record scopes this to r.. conflicting-member-geometry-refusal-scope cites only
DNA/alleles.md:5 and covers c./g. shapes only, so the r. refusal is measured behaviour that
is currently unauthorised and unguarded in the ledger.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.[6_8del;77del] | recommended | self | a well-formed cis allele — two disjoint members, each a fixed point; kept as a series of variants |
NM_004006.3:r.[9_12del;10_11del] | conformant | self | nested members — the second is inside the first; intersecting territory violates the definition. Strict refuses at normalize (OverlapConflictingEdits / W5002); lenient emits the input unchanged with that warning, which is what this row records. No r.-jurisdiction ledger record or guard covers the refusal |
NM_004006.3:r.[9_12del;11_14del] | conformant | self | overlapping members — same W5002 refusal in strict, same lenient pass-through |
NM_004006.3:r.[8_9insau;8_9insuc] | conformant | self | two insertions at one point (r.8_9) — coincident insertions; strict refuses (… has 2 coincident cis-allele edits (ins, ins) … W5002), lenient passes through. The RNA payloads (au, uc) are valid symbols; the geometry is what is refused |
alleles.md:15-16 — DNA-level reporting, and diploidy
- all variants should be described on the DNA level; descriptions on the RNA and/or protein level may be given in addition.
- humans are diploid organisms and have two alleles at each genetic locus, with one allele inherited from each parent.
Ferro: both notes are descriptive. :15 is authoring guidance about which level(s) to report on,
not a constraint on how a given r. allele, once written, is normalized — a lone r. description
stands on its own. :16 is background biology. Neither is anything a normalizer enforces.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.[6_8del;77del] | recommended | self | a lone RNA-level allele is fully valid; ferro does not require an accompanying c./g. form |
alleles.md:17 — cis: r.[variant1;variant2]
- when two variants are identified in a transcript that derive from one chromosome (in cis), this should be described as
r.[variant1;variant2].
Ferro: parses the ;-joined bracket to AllelePhase::Cis. Members are normalized individually and,
because cis is the one phase not gated out of merging, adjacent members may collapse to a single
delins (that member-level merge behaviour is governed on RNA/delins.md, out of this file’s
scope). Members two or more nucleotides apart stay individual, and the ; join is preserved.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.[6_8del;77del] | recommended | self | two disjoint members, each a fixed point — individually normalized, no merge, ; preserved |
NM_004006.3:r.[76del;124_129del] | recommended | NM_004006.3:r.[77del;124_129del] | cis members individually normalized: r.76del 3’-shifts to r.77del over the aaa run, the far member is untouched, no merge |
NM_004006.3:r.[123c>a;345del] | recommended | NM_004006.3:r.[123c>a;346del] | the syntax table’s own cis example (syntax.yaml, rna.alleles), which happens to sit on the slice’s accession: the substitution is a fixed point (r.123 is c), the deletion 3’-shifts one base |
LRG_199t1:r.[76a>u;103del] | recommended | — | the spec’s own cis example (:28-30); parse-only here |
alleles.md:18 — trans: r.[variant1];[variant2]
- when two variants are identified in transcripts that derive from different chromosomes (in trans), this should be described as
r.[variant1];[variant2].
Ferro: parses the ];[ join to AllelePhase::Trans. Trans is two chromosomes — two distinct
variants — so it is gated out of every merge pass: members are only individually normalized, never
merged against each other and never reordered.
The recommended spelling lists each allele’s own variant, r.[a];[b]. Padding each allele’s
bracket with the other allele’s positions as = fillers — r.[a;p=];[p=;b] — is the
cross-spelled form the DNA twin marks class="invalid" (DNA/alleles.md:19, restated at :49).
Ferro rejects it at parse, in every mode, when a position carries a concrete edit in one
bracket and an = inside a multi-member bracket elsewhere. A single-member [77=] beside
[77del] is the sanctioned form and is accepted (:47-49 below); so is an = at a position
nothing else touches. This is not the :5 geometry refusal; the clause it enforces is a DNA/
one, so on r. the rejection rests on the DNA twin’s NOTE with no RNA/alleles.md counterpart.
The error surfaces as a generic parse failure that names neither the clause nor the cross-spelled
position (minor gap).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.[77del];[6_8del] | recommended | self | the recommended trans form — each allele carries its own variant, both fixed points, preserved unmerged |
NM_004006.3:r.[76del];[77del] | recommended | NM_004006.3:r.[77del];[77del] | each allele’s member individually normalized (r.76del → r.77del); the two brackets are not merged into one (trans is not cis) |
NM_004006.3:r.[77del;77=];[77=;6_8del] | refused | — | the cross-spelled form — the recommended spelling is r.[77del];[6_8del]. Rejected at parse by trans_has_cross_spelled_identity: r.77 carries a concrete edit in one bracket and an = filler inside a multi-member bracket in the other, the shape DNA/alleles.md:19 calls not correct. Authority is the DNA twin’s; RNA/alleles.md states no counterpart |
LRG_199t1:r.[76a>u];[103del] | recommended | — | the spec’s own heterozygous trans example (:37-40); parse-only here |
alleles.md:19-20 — unknown phase: variant1(;)variant2
- when two variants are identified in a transcript, but when it is not known whether these derive from one chromosome (in cis) or from different chromosomes (in trans), this should be described as
variant1(;)variant2, i.e. without using[ ].
NOTE: it is recommended to determine whether the changes are in the same transcript or not.
Ferro: parses the bracket-less (;) join to AllelePhase::Unknown and keeps the compact, no-[ ]
form. Unknown phase is gated out of merging, so members are individually normalized and never
merged or reordered. The NOTE is advisory — a recommendation to the author to resolve the phase,
not something a normalizer acts on.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.6_8del(;)77del | recommended | self | unknown phase, no brackets — two fixed-point members, individually normalized, (;) and order preserved |
NM_004006.3:r.76del(;)124_129del | recommended | NM_004006.3:r.77del(;)124_129del | the first member 3’-shifts (r.76del → r.77del); no brackets minted, members not merged |
NM_004006.2:r.76a>u(;)103del | recommended | — | the spec’s own unknown-phase example (:54-57); parse-only here |
alleles.md:21 — comma / Products: r.[variant1,variant2] (RNA/protein-unique)
- when two variants are identified in two different transcripts that derive from one variant on the DNA level, the variants are separated using a
,;r.[variant1,variant2].
Ferro: the , (Products) allele has no analogue on the DNA axis. Its members are downstream
products of a single DNA event (alternative splicing) — different transcripts, not co-occurrence
phases — so they must never be partition-merged against each other. Ferro models it as
AllelePhase::Products, restricts the form to the r./p. axes (c.[a,b] / g.[a,b] are
rejected), forbids mixing , with ; in one bracket, normalizes each member in its own frame, and
— because Products is not Cis — never merges or reorders them. The cross-reference general.md:80
gives the bare form r.[123a>u,122_154del].
There is no ledger record for this form. No record adjudicates Products-allele normalization semantics, so this section carries no Why block; the behaviour is a defensible but unrecorded ferro reading.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:r.[897u>g,832_960del] | recommended | — | the spec’s own Products example (:60-61); the two members derive from one DNA variant (LRG_199t1:c.897T>G); parse-only here |
NM_004006.3:r.[6_8del,124_129del] | recommended | self | executable Products twin — two distinct-transcript products, each a fixed point; AllelePhase::Products, kept unmerged and unreordered (matches comma_products_allele.rs). Illustrative positions; general.md:80’s own string is the bare r.[123a>u,122_154del] |
NM_004006.3:r.[76del,124_129del] | recommended | NM_004006.3:r.[77del,124_129del] | each product normalized in its own frame: the first 3’-shifts to r.77del, the second is untouched, the , join and order are preserved |
NM_004006.3:c.[123del,124del] | refused | — | the , form is r./p.-only — a c. Products allele is rejected at parse (find_products_bracket restricts the comma form to the RNA/protein axes) |
alleles.md:27-34 — examples: variants on one allele (cis)
Spec discussion (verbatim)
- variants on one allele
LRG_199t1:r.[76a>u;103del]
one transcript contains two different changes,r.76a>uandr.103del. The variants are found in cis.
LRG_199t1:r.[(578c>u;1339a>g;1680del)]
one transcript contains three different predicted changes,r.(578c>u),r.(1339a>g), andr.(1680del). The variants are found in cis.
Ferro: the plain cis allele (ex 1) is AllelePhase::Cis with members individually normalized and
preserved. The second example wraps the whole allele in [(...)] — a predicted (uncertain) cis
allele; ferro preserves the uncertainty flag and normalizes members inside it, without collapsing
the prediction to a concrete assertion.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:r.[76a>u;103del] | recommended | — | example 1, a plain cis allele; parse-only here |
LRG_199t1:r.[(578c>u;1339a>g;1680del)] | recommended | — | example 2, a predicted [(…)] cis allele — uncertainty flag preserved; parse-only here |
NM_004006.3:r.[(6_8del;77del)] | recommended | self | executable twin of the predicted form — the [(…)] wrap is preserved, members individually normalized (both fixed points) |
NM_004006.3:r.[(76del;124_129del)] | recommended | NM_004006.3:r.[(77del;124_129del)] | the wrap is preserved and the members inside it are normalized: r.76del 3’-shifts to r.77del without the prediction being collapsed |
alleles.md:36-52 — examples: variants on two alleles (trans), and [76=] vs [=]
Spec discussion (verbatim)
- variants on two alleles
LRG_199t1:r.[76a>u];[103del]
the two transcript alleles each contain a different change,r.76a>uandr.103del. A heterozygous case (compound heterozygote, e.g., in a recessive disease). The variants are found in trans.
NM_004006.2:r.[76a>u];[76a>u]
both transcript alleles contain the same variant,r.76a>u. A homozygous case (e.g., in a recessive disease).
NOTE:LRG_199t1:r.76a>u(;)(76a>u)indicates analysis detects one variant (r.76a>u), suggesting both transcript alleles contain this variant, but it can not be excluded the other allele is deleted or not expressed.
LRG_199t1:r.[76a>u];[76=]
one transcript allele contains a variant,r.76a>u, the other transcript allele contains at positionr.76the reference sequence,r.76=(is wild-type).
NOTE: the descriptionr.[76a>u];[=], containingr.76a>uandr.=, is different since it indicates the entire coding RNA reference sequence was analysed and the only variant identified wasr.76a>u(on one allele).
NM_004006.2:r.[76a>u];[?]
one transcript allele contains a variant,r.76a>u, while a variant in the other transcript allele is expected but not yet identified (r.?) (e.g., in individuals affected by a recessive disease).
Ferro: four trans shapes, all preserved unmerged — heterozygous (two different members), homozygous
(the same member on both alleles), one allele wild-type at a named position ([76=]), and one
allele’s variant not yet identified ([?]). The :47-49 NOTE draws a meaning distinction the
parser must not erase: [76=] asserts wild-type at position 76, while [=] asserts the whole
sequence was analysed and unchanged. Ferro preserves each exactly and never collapses one into the
other.
The [?] shape is re-spelled. Ferro keeps the [?] member but renders the whole allele in the
expanded per-bracket-accession form, [NM_004006.3:r.77del];[?] — the accession moves inside
the first bracket, in every mode, on c. as well as r., and for [0] too (:82-85); a [76=]
or [=] second member stays compact. The output is valid HGVS and re-parses — the expanded form
is what DNA/alleles.md:110 recommends for a two-accession trans allele — but it is not the
shape of the spec’s own same-accession example at :51. Filed as
#2214.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:r.[76a>u];[103del] | recommended | — | heterozygous trans; parse-only here |
NM_004006.2:r.[76a>u];[76a>u] | recommended | — | homozygous trans — both alleles carry the same member, preserved (not merged); parse-only here |
NM_004006.3:r.[77del];[77del] | recommended | self | executable homozygous twin — identical members on two alleles, kept as two brackets |
LRG_199t1:r.[76a>u];[76=] | recommended | — | [76=] = position-wild-type member, preserved; parse-only here |
NM_004006.3:r.[77del];[76=] | recommended | self | executable twin — the [76=] position-reference member is preserved, not collapsed to [=] |
NM_004006.3:r.[76del];[76=] | conformant | NM_004006.3:r.[77del];[76=] | the variant 3’-shifts to r.77 while the [76=] filler stays where it was authored — an identity member has nothing to shift. Valid, but the spec’s examples always pair the filler with the variant’s own position, so r.[77del];[76=] and the authored-at-77 r.[77del];[77=] are two spellings of one observation that do not converge. Not adjudicated — open whether the filler should be re-anchored to the shifted member |
NM_004006.3:r.[77del];[=] | recommended | self | the whole-sequence [=] member — a different meaning from [76=], preserved as written |
NM_004006.2:r.[76a>u];[?] | recommended | — | [?] = unknown second allele, preserved; parse-only here |
NM_004006.3:r.[77del];[?] | conformant | [NM_004006.3:r.77del];[?] | executable twin — the [?] member is kept, but the allele is re-spelled from the compact form the spec’s example uses to the expanded per-bracket-accession form. Valid, re-parses; not the recommended shape (#2214) |
alleles.md:54-57 — alleles not certain (unknown phase)
Spec discussion (verbatim)
- alleles not certain
NM_004006.2:r.76a>u(;)103del
two variants are found in a transcript,r.76a>uandr.103del, but it is not known whether they derive from the same or from different transcript alleles (chromosomes).
NOTE: when it is not known on which allele a variant is, allele brackets should not be used.
Ferro: the worked example of the :19-20 unknown-phase rule — the bracket-less (;) form is kept
bracket-less, members individually normalized, phase not inferred.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.2:r.76a>u(;)103del | recommended | — | the spec’s own unknown-phase example; parse-only here |
NM_004006.3:r.6_8del(;)77del | recommended | self | executable twin — no brackets, members preserved |
alleles.md:59-61 — one allele, two transcripts (Products)
- one allele, two transcripts
LRG_199t1:r.[897u>g,832_960del]
two different transcripts,r.897u>gandr.832_960del, derive from one variant (LRG_199t1:c.897T>Gon the DNA level).
Ferro: the worked example of the :21 Products rule — the two ,-separated members are different
transcripts derived from one DNA variant, so they are AllelePhase::Products and are never
merged or reordered against each other, each normalized in its own frame. (Adjudication is unrecorded
— see alleles.md:21; no Why block.)
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:r.[897u>g,832_960del] | recommended | — | the spec’s own Products example; members from one DNA event (c.897T>G), kept distinct; parse-only here |
NM_004006.3:r.[6_8del,124_129del] | recommended | self | executable Products twin — two distinct-transcript products, each a fixed point, unmerged |
alleles.md:65-69 — Discussion: the retracted + separator
Spec discussion (verbatim)
!!! note “Was originally the recommendation to use the format
[r.76a>c+r.83g>c]?”Indeed, originally [den Dunnen and Antonarakis, 2000](http://dx.doi.org/10.1002/%28SICI%291098-1004%28200001%2915:1%3c7::AID-HUMU4%3e3.0.CO;2-N) the suggestion was to describe two changes in a transcript from one chromosome as <code class="invalid">[r.76a>c+r.83g>c]</code>, i.e. using a "+"-character to separate the two changes, while an earlier publication suggested to use a ";" (<code class="invalid">[r.76a>c;r.83g>c]</code> [(Antonarakis and the Nomenclature Working Group, 1998](http://dx.doi.org/10.1002/%28SICI%291098-1004%281998%2911:1%3c1::AID-HUMU1%3e3.0.CO;2-O)). To prevent confusion with older publications, to improve overall consistency, and to keep descriptions as short as possible, the 2000 proposal was retracted. The recommended format is `r.[76a>c;83g>c]`.
Ferro: the + separator inside allele brackets is class="invalid" — a retracted 2000 proposal.
The ; is the recommended cis separator; ferro does not emit + and rejects it at parse.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.[6_8del+77del] | refused | — | the retracted + separator — not valid HGVS; rejected at parse (the grammar stops at +77del). The recommended cis form uses ; (r.[6_8del;77del]) |
alleles.md:71-76 — Discussion: recording variant combinations in recessive disease
Spec discussion (verbatim)
!!! note “In recessive diseases, is it important I show in which combination variants were found?”
When in one individual you find more than one variant, it is essential that you clearly indicate on which transcript allele(s) variant(s) were found. - disease severity will depend on the combination of variants found; - in recessive disease, when two variants are in one transcript, an individual is a carrier or you might not have found the variant on transcripts from the second allele.
Ferro: advisory guidance to the author to record the cis/trans combination clearly. It picks no
canonical form and constrains no normalization — descriptive, nothing for the normalizer to enforce.
The cis/trans/unknown machinery that lets the author express the combination is covered at
alleles.md:17, :18 and :19-20.
alleles.md:78-80 — Discussion: the empty allele []
!!! note “I find the notation
r.[76a>c]without describing the second transcript allele misleading; not enough researchers know this refers to only one of the two transcripts present. Would usingr.[76a>c];[]be OK?”No, the recommended description is `r.76[a>c];[=]`, i.e. `r.76=` for "no change" at position `r.76` on the second transcript.
Ferro: the empty second allele [] is class="invalid" — refused at parse. The spec’s recommended
answer is the position-factored trans form r.76[a>c];[=], which shares the position out of the
brackets. Ferro neither produces nor accepts that factored spelling — it rejects it at parse
and emits the fully-bracketed r.[76a>c];[76=]-style form instead, matching the DNA twin’s
reading: DNA/alleles.md:54 marks the analogous factoring class="invalid", and no RNA grammar
publishes a factored form. So the RNA Q&A’s answer contradicts both its DNA parallel and the
grammar — a spec-internal inconsistency, not ferro-actionable. Ferro’s fully-bracketed output is
the recommended form on the reading the rest of the spec supports.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.[77del];[] | refused | — | the empty allele [] is class="invalid" — rejected at parse. Recommended: name the second allele’s state, e.g. r.[77del];[77=] |
NM_004006.3:r.76[a>u];[=] | refused | — | the Q&A’s own factored answer — rejected at parse (Parse error at position 12 … "[a>u];[=]"). The factoring is not in the RNA syntax table and its DNA analogue is class="invalid" at DNA/alleles.md:54; the bracketed r.[76a>u];[76=] is what ferro emits and accepts |
NM_004006.3:r.[77del];[77=] | recommended | self | the fully-bracketed form ferro emits for “variant on one allele, wild-type at that position on the other” |
alleles.md:82-85 — Discussion: X-chromosome male, r.0 for an absent transcript
Spec discussion (verbatim)
!!! note “How should I describe the variants detected in males and females for a transcript from the X-chromosome?”
In **females**, the description is straightforward, like `LRG_199t1:r.[76a>c];[76=]`. In **males**, there is no transcript from the second allele (X-chromosome), which can be described as `LRG_199t1:r.[76a>c];[0]`, i.e. using `r.0` to indicate the absence of a transcript from the second X-chromosome.
Ferro: r.0 denotes an absent transcript (no expression from the second X allele in a male). Ferro
accepts the [0] member and lowers it to a dedicated NullAllele sentinel on the r. axis. The
female case is the ordinary [variant];[76=] trans form from :47-49. The male case is subject to
the same re-spelling as [?] at :36-52: the member is preserved, but the allele is rendered in
the expanded per-bracket-accession form (#2214).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
LRG_199t1:r.[76a>c];[76=] | recommended | — | the female case — an ordinary position-wild-type trans allele; parse-only here |
LRG_199t1:r.[76a>c];[0] | recommended | — | the male case — [0] = absent transcript, preserved; parse-only here |
NM_004006.3:r.[77del];[0] | conformant | [NM_004006.3:r.77del];[0] | executable twin — the [0] absent-transcript member is accepted and kept unmerged, but the allele is re-spelled from the compact form the spec writes to the expanded one. Valid, re-parses; not the recommended shape (#2214) |
See also → DNA/alleles.md:5 (the twin allele definition, the geometry-refusal record’s actual
jurisdiction), DNA/alleles.md:19 and :49 (the cross-spelled = form the :18 parse guard
enforces), DNA/alleles.md:54 (the factoring the :78-80 Q&A recommends and the DNA twin forbids),
DNA/alleles.md:110 (the two-accession expanded trans form ferro emits for [?]/[0]),
RNA/deletion.md:18-20 (the NM_004006.3 3’-shift facts the executable members rely on),
general.md:80 (the , Products separator and its bare example r.[123a>u,122_154del]).
Splicing — ferro’s reading
ferro’s reading of the HGVS splicing recommendations on the transcript (r.) axis, clause
by clause, with each spelling’s normalized form and a verdict. See
How to read a page for verdicts, table conventions, and recurring terms.
No ledger record cites any RNA/splicing.md clause — the whole document is a record-level gap,
so every section below carries no Why block; the reading is CONFIRM-by-inspection against the
spec text and the shipped code. Three findings on this page are live and unrecorded, written up as
Notes rather than rulings:
- the intron-retention
r.insert (splicing.md:34,:45,:50-57) — the page’s central form — is spec-recommended (five bold examples), yet ferro declines it at normalize with a spec-undefined reason that is a misstatement on ther.axis. The proposed reading is that the form is spec-defined and the house choice should be coordinate-space-resolvability: flatten a range the rendering reference can resolve, preserve an intronic-offset range it cannot. Documented atsplicing.md:27-36; - the same shape is wrapped in
<code class="invalid">atRNA/insertion.md:44— a formatting accident that contradicts this page’s five bold examples;splicing.mdgoverns, and the upstream inconsistency is owed a filing (noted atsplicing.md:27-36); r.(spl?)(splicing.md:79) versusr.spl?(uncertain.md:194) — one statement, two spellings, confluence unadjudicated; andr.(spl), which appears nowhere in the spec yet ferro’s projector manufactures it. Both open; documented atsplicing.md:75-80.
Executable rows use NM_004006.3, the one transcript in the committed slice. The spec’s own
splicing examples sit on accessions outside the slice, so those rows are parse-only (—), and the
intron-retention forms among them additionally decline at normalize (see splicing.md:27-36). The
four splice markers (r.spl, r.spl?, r.(spl?), r.(spl)) are reserved tokens reachable only on
the r. parse path — c.spl/g.spl do not parse.
splicing.md:5 — definition
Splicing: a sequence change where, compared to a reference sequence, the normal RNA splicing pattern is altered.
Ferro: this defines a biological outcome, not a description form. Splicing has no edit type of its own (see the Syntax below), so there is nothing here a normalizer applies or violates. Descriptive.
splicing.md:8-11 — syntax
Variants affecting RNA splicing result in either a deletion or insertion on the RNA level and should be described as such. Recommendations on representing adjoined transcripts formed by gene fusions are discussed in the Notes and Examples below.
Ferro: a splicing event is written as a del or an ins on the r. axis — it has no edit type of
its own. A normalizer receives those del/ins descriptions and treats them as any other RNA deletion
or insertion (governed by RNA/deletion.md and RNA/insertion.md, not here). Ferro does not derive
splicing outcomes from a DNA variant, so there is nothing to measure at this clause. Descriptive.
splicing.md:14 — describe on the DNA level
- all variants should be described on the DNA level; descriptions on the RNA and/or protein level may be given in addition.
Ferro: authoring guidance about which molecular level(s) a submitter should report on — a lowercase
“should” over a level choice, not a constraint on how a given r. description, once written, is
normalized. A lone r. description stands on its own; ferro does not require an accompanying c./g.
form. Nothing for the normalizer to enforce. Descriptive.
splicing.md:15 — the comma / Products separator
- a
,(comma) is used to separate different transcripts/proteins derived from one allele;r.[123a>u,122_154del].
Ferro: the , separates different transcripts — downstream products of one DNA event — a
fourth allele relationship distinct from cis ;, trans ];[, and unknown (;). Ferro models it
as AllelePhase::Products, restricts the form to the r./p. axes, normalizes each member in
its own frame, and — because Products is not Cis — never merges or reorders the members.
Members may overlap in coordinates (123a>u sits inside 122_154del) without that being a
conflict, and are not position-ordered (r.[897u>g,832_960del] lists 897 before 832). The
full treatment lives on RNA/alleles.md:21, whose general.md:80 cross-reference gives the bare
form r.[123a>u,122_154del].
No ledger record adjudicates Products-allele normalization semantics — so this section carries no Why block. The behaviour is a defensible but unrecorded ferro reading.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.[6_8del,124_129del] | recommended | self | executable Products allele — two distinct-transcript products, each a fixed point; AllelePhase::Products, kept unmerged and unreordered (matches comma_products_allele.rs). Illustrative positions; general.md:80’s own string is the bare r.[123a>u,122_154del] |
NM_004006.3:r.[76del,124_129del] | recommended | NM_004006.3:r.[77del,124_129del] | each product normalized in its own frame — the first 3’-shifts to r.77del, the second is untouched, the , join and order are preserved |
NM_004006.3:c.[123del,124del] | refused | — | the , form is r./p.-only — a c. Products allele is rejected at parse (find_products_bracket restricts the comma form to the RNA/protein axes) |
See also → RNA/alleles.md:21 (the full Products treatment), general.md:80 (the , separator and
its bare example).
splicing.md:16-19 — HGNC / VICC gene-fusion nomenclature
Spec discussion (verbatim)
- HGVS recommends following the HGNC guidelines and the VICC Gene Fusion Specification nomenclature to describe products of gene fusions.
- The HGNC recommendations include using a
GENESYMBOL1::GENESYMBOL2syntax for gene-level fusion descriptions, and aGENESYMBOL1-GENESYMBOL2syntax for read-through transcripts.- The VICC nomenclature extends the HGNC recommendations to include a terminology, information model, and nomenclature for gene-level and exon-level representation, with components for disambiguating regulatory fusions from chimeric transcript fusions.
- HGVS also recommends the use of adjoined transcripts (see examples) for precise and unambiguous characterization of chimeric transcripts at the sequence level.
Ferro: gene-symbol-level fusion nomenclature is delegated to HGNC/VICC and is not an HGVS
description. The only HGVS-level form here is the adjoined transcript, which is governed by its own
page (RNA/adjoined_transcript.md) and shown at splicing.md:59-61 below. Nothing on these lines is
a normalization rule. Descriptive.
splicing.md:23-25 — example: one variant, several transcripts
- one variant, several transcripts
NC_000023.11(NM_004006.2):r.[897u>g,832_960del]
two different transcripts,r.897u>gandr.832_960del, derive from one variant (c.897T>Gon the DNA level).
Ferro: the worked example of the splicing.md:15 Products rule — two members from one DNA variant,
listed out of position order (897 before 832). Ferro keeps them as AllelePhase::Products, normalizes
each in its own frame, and neither merges nor reorders them. (Adjudication is unrecorded — see
splicing.md:15; no Why block.)
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11(NM_004006.2):r.[897u>g,832_960del] | recommended | — | the spec’s own Products example; two transcripts from one DNA event (c.897T>G), kept distinct and unordered; parse-only here (accession outside the slice) |
NM_004006.3:r.[6_8del,124_129del] | recommended | self | executable Products twin — two distinct-transcript products, each a fixed point, kept unmerged |
splicing.md:27-36 — example: splice acceptor site
Spec discussion (verbatim)
- splice acceptor site
NC_000023.11(NM_004006.2):r.650_831del
as a consequence of a variant destroying a splice acceptor site, the sequence from nucleotider.650tor.831(exon 8) is deleted from the transcript.
NC_000023.11(NM_004006.2):r.650_712del
as a consequence of a variant destroying a splice acceptor site, a new acceptor site in exon 8 (positions712/713) is activated and the sequence from nucleotider.650tor.712is deleted from the transcript.
NC_000023.11(NM_004006.2):r.649_650ins[650-52_650-2;c]
as a consequence of a variant destroying a splice acceptor site (c.650-1G>C), a new acceptor site in intron 7 is activated and the intron 7 sequence from positions650-52to650-1is inserted in the transcript.
NOTE: nucleotide650-1changed fromgtoc.
Ferro: two of these are ordinary RNA deletions (governed by RNA/deletion.md) and preserve; the
third is the page’s central form — intron retention written as an r. insertion whose payload
is a range in intronic (c.-style offset) coordinates, with the mutated base spelled literally
in a […;…] composite. It is bold with no invalid markup: the spec’s recommended way to write
intron retention. Ferro parses it, then declines at normalize as spec-undefined, producing no
output. Nothing malformed is emitted, so the row is conformant, not bug and not refused
(strict parse accepts this input).
Note — the decline reason misstates the spec on r.. The spec defines this form five
times on this page as the recommended way to describe intron retention, so labelling the decline
“spec-undefined” is wrong, even though declining may be legitimate: expanding the range to literal
bases needs the pre-mRNA sequence the r. reference does not hold. The proposed reading is
coordinate-space-resolvability: flatten a range whose coordinates the rendering reference
resolves, and preserve one whose coordinates lie outside it (an intronic-offset range →
preserve, not decline). No ledger record exists for this yet. Ferro’s flatten-vs-preserve policy is
separately inconsistent across payload shapes on this axis — a resolvable same-reference r. range
payload flattens to a literal elsewhere, with no ledger record for that choice either — so the
intronic-range shape inherits a decline instead of either half of an unrecorded policy.
Note — an upstream inconsistency, owed a filing. RNA/insertion.md:44 wraps the identical
shape in <code class="invalid"> while describing it as a valid intron-retention insertion and
cross-linking back to this page — a formatting accident that contradicts this page’s five bold
examples. Until answered, splicing.md (five bold examples) governs over one formatting-commit
class attribute.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11(NM_004006.2):r.650_831del | recommended | — | exon-8 deletion — an ordinary RNA deletion (governed by RNA/deletion.md), preserved; parse-only here |
NC_000023.11(NM_004006.2):r.650_712del | recommended | — | new-acceptor-site deletion — preserved; parse-only here |
NC_000023.11(NM_004006.2):r.649_650ins[650-52_650-2;c] | conformant | — | the spec’s central intron-retention form — a range in intronic offset coordinates plus the mutated base c. Ferro parses it (InsertedPart::CdsPositionRange) then declines at normalize with the spec-undefined message. Nothing wrong is emitted, so conformant; parse-only here. The message misstates the spec on r. and the decided preserve policy is unrecorded — see the Notes above |
splicing.md:38-47 — example: splice donor site
Spec discussion (verbatim)
- splice donor site (
c.831+2T>A)
NC_000023.11(NM_004006.2):r.650_831del
as a consequence of a variant destroying the exon 8 splice donor site, the sequence from nucleotider.650tor.831(exon 8) is deleted from the transcript.
NC_000023.11(NM_004006.2):r.778_831del
as a consequence of a variant destroying the exon 8 splice donor site, a new donor site in exon 8 (positions777/778) is activated and the sequence from nucleotider.778tor.831is deleted from the transcript.
NC_000023.11(NM_004006.2):r.831_832ins[ga;831+3_831+60]
as a consequence of a variant destroying the exon 8 splice donor site, a new donor site in intron 8 (positions831+60/831+61) is activated and the intron 8 sequence from positions831+1to831+60is inserted in the transcript.
NOTE: nucleotide831+2changed fromutoa.
Ferro: the acceptor-site shape at splicing.md:27-36, mirrored to the donor side — the literal ga
spells 831+1 and the mutated 831+2, and the range resumes at 831+3. Two ordinary deletions
preserve; the intron-retention insert declines at normalize with the same spec-undefined message.
Same finding as splicing.md:27-36; the false wording and the decided preserve policy are documented
there.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11(NM_004006.2):r.650_831del | recommended | — | exon-8 deletion (governed by RNA/deletion.md), preserved; parse-only here |
NC_000023.11(NM_004006.2):r.778_831del | recommended | — | new-donor-site deletion — preserved; parse-only here |
NC_000023.11(NM_004006.2):r.831_832ins[ga;831+3_831+60] | conformant | — | the donor-side intron-retention form — a literal ga plus an intronic-offset range. Parses, then declines at normalize with the same spec-undefined message; nothing wrong emitted, so conformant; parse-only here. See splicing.md:27-36 |
splicing.md:49-57 — example: intron variant
Spec discussion (verbatim)
- intron variant
NC_000023.11(NM_004006.2):r.649_650ins650-50_650-1
as a consequence of an intron 7 variant (c.650-52_650-51del), a new stronger exon 8 splice acceptor site is created (positions650-51/650-50) and the intron 7 sequence from positions650-50to650-1is inserted in the transcript.
NC_000023.11(NM_004006.2):r.831_832ins831+1_831+67
as a consequence of an intron 8 variant (c.831+71C>A), a new stronger exon 8 splice donor site is created (positions831+67/831+68) and the intron 8 sequence from positions831+1to831+67is inserted in the transcript.
NC_000023.11(NM_004006.2):r.649_650ins650-1400_650-1268
as a consequence of an intron 7 variant (c.650-1401T>G), a new exon is created and its sequence (positions650-1400to650-1268) is inserted in the transcript.
Ferro: the unbracketed intronic-range payload — the plainest form of the intron-retention shape,
with no literal component at all. All three decline at normalize with the spec-undefined message.
This is the strongest evidence that “spec-undefined” is the wrong word: there is no composite, no
literal, nothing but the spec’s own canonical spelling of intron retention. Same finding as
splicing.md:27-36.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11(NM_004006.2):r.649_650ins650-50_650-1 | conformant | — | a new-acceptor-site intron-retention insert, unbracketed intronic range. Parses, declines at normalize (spec-undefined); nothing wrong emitted; parse-only here |
NC_000023.11(NM_004006.2):r.831_832ins831+1_831+67 | conformant | — | the donor-side unbracketed intronic range — same shape, same decline |
NC_000023.11(NM_004006.2):r.649_650ins650-1400_650-1268 | conformant | — | a cryptic-exon (pseudo-exon) inclusion — same shape, same decline |
splicing.md:59-61 — example: adjoined transcript
- adjoined transcript (based on SVD-WG007)
NM_002354.2:r.-358_555::NM_000251.2:r.212_*279
describes an adjoined transcript from anEPCAM::MSH2gene fusion, where nucleotidesr.-358tor.555(EPCAM gene, reference transcriptNM_002354.2) are spliced to nucleotidesr.212tor.*279(MSH2 gene, reference transcriptNM_000251.2).
Ferro: a cross-reference to RNA/adjoined_transcript.md — nothing on this page adds a rule. Ferro
parses the ::-joined adjoined form and preserves it. The reading is owned by the adjoined-transcript
page, not here.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_002354.2:r.-358_555::NM_000251.2:r.212_*279 | recommended | — | the spec’s own EPCAM::MSH2 adjoined transcript; preserved. Governed by RNA/adjoined_transcript.md; both accessions are outside the slice, so parse-only here |
splicing.md:63-71 — example: uncertain (RNA not analysed)
Spec discussion (verbatim)
- uncertain (RNA not analysed)
NC_000023.11(NM_004006.2):r.(76a>c)
RNA was not analysed, but a substitution of theanucleotide atr.76by acis predicted.
NC_000023.11(NM_004006.2):r.?
an effect on the RNA level is expected, but it is not possible to give a reliable prediction of the consequences (RNA not analysed).
NC_000023.11(NM_004006.2):r.spl
RNA has not been analysed, but it is very likely that splicing is affected.
Ferro: three whole-transcript or predicted statements. r.(76a>c) is an ordinary predicted
substitution (the parentheses mark it predicted); r.? and r.spl carry no position and no sequence
change, so normalization can only be identity. All three preserve. spl is reserved and reachable only
on the r. parse path (parser/variant.rs; c.spl/g.spl do not parse), and r.spl is kept
distinct from r.? (rna_spl_marker.rs).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11(NM_004006.2):r.(76a>c) | recommended | — | the spec’s predicted substitution; parse-only here |
NM_004006.3:r.(76a>c) | recommended | self | executable twin — r.76 reads a (from the aaa run at r.75_77), matching the spec’s a>c; the predicted substitution is preserved, the parentheses kept |
NC_000023.11(NM_004006.2):r.? | recommended | — | whole-transcript unknown RNA effect; parse-only here |
NM_004006.3:r.? | recommended | self | executable twin — the whole-transcript ? is an identity, preserved |
NC_000023.11(NM_004006.2):r.spl | recommended | — | the r.spl splice marker; parse-only here |
NM_004006.3:r.spl | recommended | self | executable — spl is reachable only on the r. parse path; preserved as itself, kept distinct from r.? (rna_spl_marker.rs) |
splicing.md:75-80 — discussion: r.spl and r.(spl?)
Spec discussion (verbatim)
!!! note “A variant changes the +1 intron sequence (
GTtoAT). Although I did not analyse RNA, I am quite sure that normal splicing is affected. How can I best indicate this?”HGVS recommends to use the format `r.spl` to indicate that RNA was not analysed, but splicing is most probably affected. In general, the format is used for variants changing the +1, +2, -2 and -1 position of an intron, i.e. affecting the `GT` splice donor and `AG` splice acceptor site (excluding `GT` to `GC` and `GC` to `GT` variants). `r.(spl?)` is frequently used to indicate that normal splicing might be affected as a consequence of variants in the first or last nucleotide of an exon, the +3 to +5 intron position (splice donor site), and variants generating a new `AG` di-nucleotide close to the normal splice acceptor site (`AG`). See [Uncertain](../uncertain.md).
Ferro: three things live in this Q&A, two of them unrecorded open questions.
-
When to write
r.splversus the weaker marker (±1/±2 versus exon-edge/+3..+5/new AG,GT↔GCexcluded) is guidance to an author or effect predictor. Ferro’s effect module never constructs the splice edit outside the parser, so it neither applies nor violates this. Descriptive. -
The weaker marker’s spelling differs across two spec pages: this page writes
r.(spl?);uncertain.md:194writesr.spl?for the identical statement. The spec never says whether they are equivalent, and since(…)means “predicted / RNA not analysed” whiler.spl?already asserts RNA-not-analysed, the parens arguably add nothing. Ferro keepsr.spl?andr.(spl?)as distinct, non-canonicalized values — a defensible but ungoverned choice; no ledger record exists. -
r.(spl)appears nowhere in the spec. Ferro accepts it as the symmetric predicted-but-certain form and, on the projector (not the normalizer), manufactures it: projectingr.splonto the rna axis returns the uncertain-wrapped splice edit, renderedr.(spl), on a stability argument. Emitting a spelling the spec never shows, for an input the spec does show, is open on the projection axis;adjudication-precedence-orderranks stability as a tiebreaker only. The provisional preference is for the projector to emit the input’s own spelling instead.
Note. The projector also once carried the RNA-only spl token verbatim onto other axes
(g.spl, c.1spl, n.245spl); it now refuses those axes because an RNA-level effect has no
genomic representation. That principle is stated only in code, with no ledger record. The
normalizer is unaffected — on the normalize path all four markers are identity fixed points.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.spl | recommended | self | the strong marker (±1/±2 intron positions); preserved as itself |
NM_004006.3:r.(spl?) | recommended | self | splicing.md:79’s weaker marker; preserved |
NM_004006.3:r.spl? | recommended | self | the same weaker marker as uncertain.md:194 spells it; preserved, and kept distinct from r.(spl?) (rna_spl_marker.rs). Whether the two should converge is unadjudicated — see the Note above |
NM_004006.3:r.(spl) | conformant | self | a spelling the spec never publishes; ferro accepts and preserves it on the normalize path, and its projector manufactures it from r.spl on a stability argument. Valid HGVS, re-parses; open on the watched projection axis (provisional house choice: emit the input’s own spelling), unrecorded — see the Note above |
splicing.md:82-84 — discussion: the protein level
!!! note “How can I best describe the predicted consequences on the protein level of a variant that most probably affects splicing?”
The best format seems to use `p.?`, meaning "I do not know what to expect on the protein level".
Ferro: hedged (“seems”), about the protein axis, authored-description advice — not a normalization
rule. One observation for the projection axis: the projector declines the protein axis for
r.spl (“has no representation on another axis”) rather than emitting p.?, while the spec’s soft
preference here would be p.?. That is weaker than rule-2 force and belongs to any future
projection-axis record, not a ledger change of its own. Nothing for the normalizer to enforce.
Descriptive.
Adjoined transcript — ferro’s reading
ferro’s reading of the HGVS adjoined transcript recommendations on the transcript (r.)
axis, clause by clause, with each spelling’s normalized form and a verdict. See
How to read a page for verdicts, table conventions, and recurring terms.
Four conformant rows on this page are not mere limitations: ferro’s output re-parses in each,
which is what the verdict measures, while the parse behind it is wrong or a requirement the spec
states plainly goes unenforced. Three are single-position breakpoints ferro accepts
(#2212); one is the linker silently
absorbed into the 3’ accession (#2213).
The worked linker example that ferro strict-refuses is separate, and is not one of these four.
No ledger record cites any RNA/adjoined_transcript.md clause — the whole document is a
record-level gap, so every section below carries no Why block. The reading is
CONFIRM-by-inspection (or DISPUTE-by-inspection) against the spec text and the shipped code, not an
adjudicated ruling. This
includes the document’s two uppercase-keyword clauses (:20 REQUIRES, :21 SHOULD) — the only
uppercase keyword uses in the spec’s own quoted recommendations/ clauses outside style.md (a
scope that excludes these shadow pages’ own prose and quoted error messages, which use MUST
freely). Note only :21’s SHOULD
is an actual RFC 2119 keyword; :20’s REQUIRES is not in RFC 2119 (which lists REQUIRED), so it
reads as emphatic spec prose, not a formal keyword — and per READING_THE_SPEC.md, clauses are not
ranked by keyword strength regardless.
An adjoined transcript is a two-partner fusion (5'partner :: 3'partner); ferro parses it to an
RnaFusion variant and normalization is a pass-through, so the round-trip is fully executable
without any reference — an accepted fusion normalizes to itself, and no partner accession has
to sit in the committed slice for that to be observable. So the Normalizes to self rows below are
real round-trips, not parse-only stand-ins. (The example accessions are the spec’s own; none is in
the slice, but nothing here reads their bases.)
adjoined_transcript.md:5 — definition
Adjoined Transcript: a transcript (RNA molecule) composed of adjoined RNA from two or more contributing transcripts.
Ferro: an adjoined transcript is modelled as RnaFusionVariant, a 5’ partner joined to a 3’ partner
by ::. The definition admits “two or more” contributing transcripts, but the syntax is
two-partner only — a deliberate, stated limitation (see :17), not a contradiction. :14
(Adjoined transcripts are a product of some gene fusions.) is descriptive framing.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_152263.2:r.-115_775::NM_002609.3:r.1580_*1924 | recommended | self | the canonical two-partner form (TPM3::PDGFRB); parsed to RnaFusion, preserved byte-identically through the pass-through normalizer |
adjoined_transcript.md:17 — two-partner adjoined transcripts only
- This syntax is for two-partner adjoined transcripts only.
Ferro: exactly two partners are admitted; a third ::-joined partner is rejected. Enforcement is
structural — the 3’ interval parser rejects the trailing ::… — not a named check.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_152263.2:r.-115_775::NM_002609.3:r.1580_*1924 | recommended | self | two partners — accepted |
NM_152263.2:r.-115_775::NM_002609.3:r.1580_*1924::NM_000251.2:r.212_*279 | refused | — | three partners — rejected (“Unexpected content after RNA interval”) |
adjoined_transcript.md:18 — RNA sequence only (no c. / n.)
- This syntax is for RNA sequence only (no use of coding (
c.) / non-coding DNA (n.) reference sequences).
Ferro: the fusion production is r.-only. The dispatcher routes to the fusion parser only when
both halves carry :r.; a c./n. :: form falls through to the ordinary parser and dies on the
trailing ::. This is a parser constraint, not a normalization rule.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_152263.2:c.-115_775::NM_002609.3:c.1580_*1924 | refused | — | c. axis — rejected on the trailing ::… |
NR_000001.1:n.1_100::NR_000002.1:n.200_300 | refused | — | n. axis — rejected the same way. The rejection message does not name the :18 clause (minor gap) |
adjoined_transcript.md:19 — linker sequences use RNA character codes
- Linker sequences are specified using General Recommendations for RNA sequence character codes, e.g.
aggcucccuugg
Ferro: the grammar’s linker_sequence element between the two :: is not modelled —
RnaFusionVariant has no linker field. A linker-bearing input is accepted only by accident:
the parser splits at the first ::, and the 3’ half (linker + second :: + partner) is scanned
forward for the next accession, swallowing every character — : included — before it. The linker
is therefore absorbed into the 3’ partner accession, becoming the custom accession
aggcucccuugg::NM_002609.3. Custom accessions render verbatim, so the string round-trips while the
AST is wrong.
This is silent corruption, filed as #2213.
The row below is conformant rather than bug only because the verdict measures ferro’s output,
which re-parses byte-identically — the defect is in the AST, which the string cannot show. What
looks like alphabet enforcement — W3020 refusing t/T — is a whole-string thymine pre-scan for
any r. description, not linker-aware: ::hello::, ::ACGU::, an empty linker (::::) and a
doubled linker (::x::x::) all pass and round-trip. The RNA alphabet’s authority is already
established for the r. axis by rna-axis-alignment-only-symbol-reach, so a real linker validator
has its authority ready-made — it does not exist yet.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_152263.2:r.-115_775::aggcucccuugg::NM_002609.3:r.1580_*1924 | conformant | self | the grammar’s linker example. Round-trips byte-identically — but the ::linker:: element is not modeled: ferro silently absorbs it into the 3’ partner accession (aggcucccuugg::NM_002609.3), so the parse is wrong and the byte-identical round-trip masks it. Silent AST corruption (#2213). Recommended behaviour: model linker as a first-class element and re-emit ::{linker}:: |
adjoined_transcript.md:20 — a range is REQUIRED, not a single position
- This syntax REQUIRES the use of a range (not a single position) for
five_prime_range/three_prime_range.
Ferro: :20 states this plainly — “REQUIRES the use of a range (not a single position)”. (REQUIRES
is not itself an RFC 2119 keyword — RFC 2119 lists REQUIRED — so this reads as emphatic spec prose,
not a formal MUST, though the wording here is unambiguous.) A well-formed adjoined transcript has a
_-range on both sides. Ferro accepts single-position breakpoints on either or both sides in
every mode, with no range check, and the pass-through normalizer emits the input verbatim. Since
ferro’s output for a fusion is its input, an accepted single position becomes an output that
violates :20’s stated requirement — a ferro enforcement gap on the one clause in this document
that reads as a hard requirement.
Filed as #2212. Worse than
unguarded: an existing test pins the violation as correct behaviour. There is no recommended
single-position spelling — a single position cannot express the required range, so such a variant is
not expressible as a conformant adjoined transcript; the fix is to refuse it at parse in
strict mode. The rows below are conformant in the verdict’s sense — the output is well-formed
HGVS that re-parses — not bug; the recommended form uses _-ranges on both sides.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_152263.2:r.775::NM_002609.3:r.1580 | conformant | self | single position on both sides — accepted and round-tripped; violates :20’s range requirement. Ferro should refuse in strict mode — #2212 |
NM_152263.2:r.-115_775::NM_002609.3:r.1580 | conformant | self | one-sided violation — a range on the 5’ side, a single position on the 3’ side; same :20 violation and #2212 |
NM_152263.2:r.(-115_775)::NM_002609.3:r.1580_*1924 | conformant | self | (a_b) is one uncertain position (uncertain.md), not a range, so the 5’ side violates :20; accepted and round-tripped. Same #2212 |
adjoined_transcript.md:21-22 — ? outer bounds when only the junction is analyzed
- When the adjoined transcript junction but not the entire transcript is analyzed, the outer range bounds SHOULD be specified with
?, e.g.NM_152263.2:r.?_775::NM_002609.3:r.1580_?
Ferro: this SHOULD is conditioned on an assay fact — “the junction but not the entire transcript
is analyzed” — invisible to a normalizer. A conformant tool must therefore (i) accept ? outer
bounds, (ii) not rewrite concrete bounds to ? or vice versa (either direction asserts an assay
fact), and (iii) not try to enforce the SHOULD. Ferro does all three: ?_775 / 1580_? is a
range (unlike a bare single position, :20), it is accepted, and the pass-through normalizer
preserves it verbatim.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_152263.2:r.?_775::NM_002609.3:r.1580_? | recommended | self | the spec’s own ?-outer-bound form — accepted and preserved verbatim (both ? retained on both sides). No test pins this today (minor gap) |
NM_152263.2:r.-115_?::NM_002609.3:r.?_*1924 | conformant | self | ? on the inner (junction) bounds — ferro accepts and preserves this unspecified form; :21 addresses outer bounds only |
adjoined_transcript.md:23-25 — one format for all mechanisms
- All adjoined transcripts are described using the same format, irrespective of whether they derive from inter-chromosomal or intra-chromosomal DNA rearrangements (translocation, deletion, inversion) or other mechanisms (trans-splicing).
Ferro: one format for every mechanism; the description must not encode the mechanism. RnaFusionVariant
has no mechanism field and the output is the input, so this is trivially conformant. Note the contrast
with DNA: HGVS removed :: for DNA translocations (DNA/complex.md, delins only), so ferro’s
by_input entries correctly reject DNA ::; the RNA :: here is a different production and is
rightly accepted — no tension.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_152263.2:r.-115_775::NM_002609.3:r.1580_*1924 | recommended | self | one format, whatever the underlying mechanism; ferro records no mechanism and preserves the form |
adjoined_transcript.md:29-41 — worked examples
translocation-derived adjoined transcript
NM_152263.2:r.-115_775::NM_002609.3:r.1580_*1924
describes an adjoined transcript from aTPM3::PDGFRBgene fusion, where nucleotidesr.-115tor.775(reference transcriptNM_152263.2, TPM3 gene) are coupled to nucleotidesr.1580tor.*1924(reference transcriptNM_002609.3, PDGFRB gene).deletion-derived adjoined transcripts
NM_002354.2:r.-358_555::NM_000251.2:r.212_*279
describes an adjoined transcript from anEPCAM::MSH2gene fusion, where nucleotidesr.-358tor.555(reference transcriptNM_002354.2, EPCAM gene) are coupled to nucleotidesr.212tor.*279(reference transcriptNM_000251.2, MSH2 gene).
NM_002354.2:r.?_555::guaugauuuuuuaataa::NM_000251.2:r.212_?
describes an adjoined transcript from anEPCAM::MSH2gene fusion, where only the fusion break point has been characterised, showing the insertion of a 17 nucleotide sequence (guaugauuuuuuaataa) between two adjoined transcripts.
Ferro: the two range-only examples (ex 1, ex 2a) parse to RnaFusion with both accessions correct
and round-trip byte-identically — honest greens. The linker-bearing ex 2b is disputed twice
over, once by the spec and once by ferro.
The spec’s own example violates its own :19. The linker guaugauuuuuuaa**t**aa contains t,
which is not an RNA character code (u stands for t), contradicting :19 four lines above — an
open upstream inconsistency that should be filed against the spec. The intended string is
almost certainly guaugauuuuuuaauaa; only the alphabet is wrong.
Ferro’s parse is wrong in every mode. Strict refuses ex 2b via W3020 (thymine in an r.
description) — defensible, but W3020 is a whole-string pre-scan, not linker validation. Lenient
rewrites t→u and then mis-parses the linker into the 3’ accession, the same #2213 corruption.
No mode produces a correct AST.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_152263.2:r.-115_775::NM_002609.3:r.1580_*1924 | recommended | self | example 1 (TPM3::PDGFRB) — both accessions correct (test_parse_rna_fusion_basic), preserved through normalize |
NM_002354.2:r.-358_555::NM_000251.2:r.212_*279 | recommended | self | example 2a (EPCAM::MSH2) — range-only, parsed and preserved correctly |
NM_002354.2:r.?_555::guaugauuuuuuaataa::NM_000251.2:r.212_? | refused | — | example 2b, as the spec spells it. The t in the linker violates the page’s own :19 (upstream spec inconsistency — file against assets/hgvs-nomenclature; corrected form guaugauuuuuuaauaa). Ferro strict refuses via the W3020 thymine pre-scan; lenient rewrites t→u then absorbs the linker into the 3’ accession (#2213) — no mode produces a correct AST |
See also → adjoined_transcript.md:19 (the linker-corruption defect, #2213), adjoined_transcript.md:20
(single-position breakpoints accepted, #2212).
Substitution — ferro’s reading
ferro’s reading of the HGVS protein substitution recommendations, clause by clause — each spelling with the form ferro normalizes it to and a verdict on that output. New here? See How to read a page for the verdicts, the table conventions, and the recurring terms.
Protein examples run against NP_003997.1 (dystrophin, the translation of NM_004006.3) in the
committed slice, so residues and positions are real. Per the spec, a protein change should also
be described on the DNA level — these pages read the p. axis in isolation.
substitution.md:5 — definition: one amino acid for one
one amino acid is replaced by one other amino acid
Ferro: a substitution is exactly 1→1; a single residue replaced by two or more is a delins.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp24Cys | recommended | self | canonical missense, Trp24→Cys |
NP_003997.1:p.TrpVal24CysArg | refused | — | two-for-two is not a substitution — write a delins (delins.md:5) |
substitution.md:16 — predicted consequences go in parentheses
should be given in parentheses
Ferro: when the protein change is inferred (no protein sequenced), it is parenthesized; ferro accepts and preserves the predicted form.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.(Trp24Cys) | recommended | self | predicted missense (e.g. inferred from DNA-level data) |
substitution.md:17 — a nonsense variant is a substitution
changing an amino acid to a translation termination (stop) codon, is described as a substitution
Ferro: a residue-to-stop change is a substitution to Ter, not a C-terminal deletion. The *
shorthand for the stop codon is normalized to Ter. An immediate stop is a nonsense
substitution, never a frameshift.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp24Ter | recommended | self | nonsense: Trp24 to a stop codon |
NP_003997.1:p.Trp24* | recommended | NP_003997.1:p.Trp24Ter | the * stop shorthand normalized to Ter |
NP_003997.1:p.Trp4TerfsTer1 | refused | — | an immediate stop is a nonsense substitution, not a frameshift (substitution.md:20, frameshift.md:22) |
substitution.md:24 — a tested, unchanged residue is =
found not changed (silent) are described as
p.Cys123=
Ferro: a screened, unchanged position is =; p.= is the distinct claim that the entire coding
region was analysed and nothing changed.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Cys188= | recommended | self | Cys188 screened, unchanged |
NP_003997.1:p.= | recommended | self | whole-protein “no change” — a distinct claim from a position = |
Ferro also accepts the older p.Cys188Cys spelling (a residue written as unchanged into itself) and
preserves it — it does not collapse it to p.Cys188=. The DNA analogue c.…C>C is disallowed
and the DNA axis rewrites it to =; the protein axis does not yet, so p.Cys188Cys stays as
written (a known limitation, not the recommended form —
#2220).
substitution.md:45-49 — the translation initiation codon
no protein is produced
Ferro: a variant in the start codon is written p.0 (no protein), p.0? (predicted none), or
p.(Met1?) (consequence unknown) — never as a substitution of Met1.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.0 | recommended | self | no protein produced |
NP_003997.1:p.0? | recommended | self | predicted no protein |
NP_003997.1:p.(Met1?) | recommended | self | consequence on the protein unknown |
NP_003997.1:p.Met1Thr | refused | — | an initiation-codon change is not a substitution (substitution.md:49); use p.0 / p.0? / p.(Met1?) |
substitution.md:76-78 — an uncertain set of replacing residues
changed to an
Ala,Ser, orCys
Ferro: the ^ “one of” set is a valid uncertainty; ferro parses and preserves it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.(Gly56Ala^Ser^Cys) | recommended | self | Gly56 changed to one of Ala, Ser, Cys |
substitution.md:80-84 — mosaic, reference first
the reference is always described first
Ferro: a mosaic mixture uses =/, with the reference allele written first; ferro accepts and
preserves the order.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp24=/Cys | recommended | self | mosaic: reference Trp24= first, then Cys |
NP_003997.1:p.(Trp24=/Cys) | recommended | self | the predicted-consequence form of the same mosaic |
substitution.md:88-92 — the “polymorphism” slash is not HGVS
all substitutions are described as
NP_003997.1:p.Gln2366Lys
Ferro: the historical p.2366Gln/Lys “polymorphism” form is not valid HGVS; ferro rejects it at
parse. The only conformant form names the reference and the replacing residue.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Lys2366Gln | recommended | self | the correct substitution form |
NP_003997.1:p.2366Gln/Lys | refused | — | the disallowed “polymorphism” slash — rejected at parse |
substitution.md:100-104 — “any amino acid” is Xaa
we suggest to use
Xaathree-letter amino acid code only
Ferro: the IUPAC symbol for “any amino acid” is Xaa (three-letter), not X — X historically
meant a stop codon. The three-letter code is the preferred spelling generally: a one-letter code is
valid HGVS but not preferred, and ferro rewrites it to three-letter (strict mode refuses one-letter).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Arg782Xaa | recommended | self | Arg782 to any amino acid, written Xaa |
NP_003997.1:p.W24C | recommended | NP_003997.1:p.Trp24Cys | one-letter input rewritten to the preferred three-letter form (strict mode refuses one-letter) |
See also → delins.md:5, extension.md:5, frameshift.md:22.
Deletion — ferro’s reading
ferro’s reading of the HGVS protein deletion recommendations, clause by clause. New here? See
How to read a page for the verdicts and table conventions. Examples run
against NP_003997.1 (dystrophin) in the committed slice.
deletion.md:5 — definition: one or more amino acids removed
one or more amino acids are not present (deleted)
Ferro: a deletion removes one or more residues between the start and stop codon.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Val7del | recommended | self | a single-residue deletion |
NP_003997.1:p.(Val7del) | recommended | self | the predicted-consequence form |
NP_003997.1:p.Lys23_Val25del | recommended | self | a three-residue deletion, Lys23 to Val25 |
deletion.md:17-18 — two different positions, listed 5′ to 3′
should contain two different positions, i.e.
Cys76_Glu79, notCys76_Cys76
Ferro: a range names two different endpoints from 5′ to 3′; a range whose endpoints coincide is normalized to the single-residue form.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Val7_Val7del | recommended | NP_003997.1:p.Val7del | identical endpoints collapse to the single-residue spelling |
deletion.md:19 — the 3′ rule
the most C-terminal position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule)
Ferro: in a run of identical residues (or a tandem repeat) the deletion is placed at the most
C-terminal position. In the reference MetLeuTrpTrpGlu, deleting either Trp yields the same
protein, so ferro writes the 3′-most.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp3del | recommended | NP_003997.1:p.Trp4del | 3′ rule: shifted to the C-terminal Trp4 |
NP_003997.1:p.Trp4del | recommended | self | already the 3′-most residue of the TrpTrp run |
deletion.md:20-21 — a nonsense variant is not a C-terminal deletion
is described as a substitution (
p.Trp26Terorp.Trp26*
Ferro: a residue-to-stop change is a nonsense substitution (substitution.md:17), never a
deletion of the C-terminal end (p.Trp24_Lys1623del).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp24Ter | recommended | self | the nonsense form — not a C-terminal deletion |
deletion.md:81-83 — mosaic deletion
a mosaic case where at amino acid position
7
Ferro: a mosaic deletion uses =/del, reference first; ferro preserves it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Val7=/del | recommended | self | mosaic: reference Val7= first, then the deletion |
NP_003997.1:p.(Val7=/del) | recommended | self | the predicted-consequence form |
deletion.md:87-89 — a size suffix is not a deletion length
a deletion of more than one residue should mention the first and last residue deleted
Ferro: a multi-residue deletion names its first and last residue with a range; a del<size> suffix
on a single anchor names only one endpoint and is refused.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Lys23_Val25del | recommended | self | the correct range form |
NP_003997.1:p.Lys23del6 | refused | — | a size suffix names only one endpoint — write <start>_<end>del |
deletion.md:91-94 — an exon label is not a residue range
has never been allowed
Ferro: a description must name the amino acids affected; an EX17del-style exon label is not HGVS
and is refused.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.EX17del | refused | — | an exon label, not a residue range — never allowed |
See also → substitution.md:17, duplication.md:5, frameshift.md:5.
Duplication — ferro’s reading
ferro’s reading of the HGVS protein duplication recommendations, clause by clause. New here?
See How to read a page. Examples run against NP_003997.1 (dystrophin)
in the committed slice.
duplication.md:5 — definition: a tandem copy, directly C-terminal
a copy of one or more amino acids is inserted directly C-terminal of the original copy
Ferro: a duplication is a copy placed immediately C-terminal of the original — a tandem copy.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Val7dup | recommended | self | a single-residue tandem duplication |
NP_003997.1:p.(Val7dup) | recommended | self | the predicted-consequence form |
NP_003997.1:p.Lys23_Val25dup | recommended | self | a three-residue tandem duplication |
duplication.md:19-20 — tandem only; otherwise an insertion
duplication may only be used when the additional copy is directly C-terminal
Ferro: dup is only for a copy directly C-terminal of the original. A copy that is not in tandem
is an insertion (insertion.md:20) — and, conversely, an insertion whose payload is a tandem copy
of its N-terminal neighbour is rewritten to dup.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp4_Glu5insTrp | recommended | NP_003997.1:p.Trp4dup | a tandem-copy insertion is normalized to the dup form |
duplication.md:22 — the 3′ rule
the most C-terminal position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule)
Ferro: in a run of identical residues the duplication is placed at the most C-terminal position.
In MetLeuTrpTrpGlu, duplicating either Trp gives the same protein, so ferro writes the 3′-most.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp3dup | recommended | NP_003997.1:p.Trp4dup | 3′ rule: shifted to the C-terminal Trp4 |
NP_003997.1:p.Trp4dup | recommended | self | already the 3′-most residue of the TrpTrp run |
duplication.md:71-74 — mosaic duplication
a mosaic case where at amino acid position 7
Ferro: a mosaic duplication uses =/dup, reference first; ferro preserves it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Val7=/dup | recommended | self | mosaic: reference Val7= first, then the duplication |
See also → insertion.md:20, deletion.md:19, extension.md:5.
Insertion — ferro’s reading
ferro’s reading of the HGVS protein insertion recommendations, clause by clause. New here? See
How to read a page. Examples run against NP_003997.1 (dystrophin) in
the committed slice.
insertion.md:5 — definition: residues added between two others
one or more amino acids are inserted, which is not a frameshift
Ferro: an insertion adds residues between two flanking positions, and is neither a frameshift nor a tandem copy of the N-terminal neighbour.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Lys23_Trp24insAla | recommended | self | Ala inserted between Lys23 and Trp24 |
NP_003997.1:p.Leu2_Trp3insGlnSerLys | recommended | self | a three-residue insertion |
insertion.md:17-18 — two flanking positions, never one
an insertion can not be described using one amino acid position
Ferro: the anchor is two flanking residues; a single-position insertion is ambiguous (at, or
after?) and is refused. The parser is deliberately lenient about adjacency, though — it accepts a
non-adjacent pair such as p.Lys23_Val25insAla, which round-trips, even though the spec asks for two
flanking residues (#1264).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Lys23_Trp24insAla | recommended | self | the correct two-residue anchor |
NP_003997.1:p.Lys23insAsp | refused | — | a single-position anchor — refused (insertion.md:18) |
insertion.md:20 — a duplicating insertion is a duplication
duplicating insertions should be described as duplications
Ferro: an insertion whose payload is a tandem copy of its N-terminal neighbour is rewritten to the
dup form — the description follows from the resulting sequence, not the input’s spelling.
Why ferro reads it this way
canonical-form-choice-when-both-legal — When two descriptions of one variant are both legal and no clause chooses between them, ferro applies the edit set to the reference and re-derives the description from the resulting sequence — subject to every explicit spec tie-break, and breaking any remaining tie toward the already-shipped form — rather than preserving the input’s spelling.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp4_Glu5insTrp | recommended | NP_003997.1:p.Trp4dup | tandem-copy insertion → dup (duplication.md:19) |
insertion.md:21 — a large insertion may be sized
the insertion may be described by its length
Ferro: a long insertion may be written by length (insXaa[n]) or by a stop position (insTer#);
ferro accepts and preserves both.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Lys23_Trp24insXaa[23] | recommended | self | a 23-residue in-frame insertion, given by length |
NP_003997.1:p.Lys23_Trp24insTer12 | recommended | self | an insertion sized by a stop at position 12 |
NP_003997.1:p.(Ser332_Ser333insXaa) | recommended | self | a single unknown inserted residue (predicted) |
NP_003997.1:p.(Val582_Asn583insXaa[5]) | recommended | self | five unknown inserted residues (predicted) |
insertion.md:70-74 — the caret form is not allowed
insertions can not be described using the format
Ferro: the ^ “between” caret is not valid HGVS; ferro rejects it at parse.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.123^124Ala | refused | — | the disallowed ^ caret form — rejected at parse |
insertion.md:76-80 — a copy from elsewhere is still an insertion
The variant should be described as an insertion;
p.His7_Gln8insGly4_Ser6
Ferro: when the inserted residues are a copy of a sequence elsewhere in the protein (not a tandem
neighbour), the spec writes an insertion that names the source range — insGly4_Ser6. Ferro does
not yet accept this ins<range> back-reference on the p. axis: inserted residues must be given
literally, so this form is rejected at parse. This is a ferro limitation, not an invalid input — the
spelling is valid HGVS. Tracked by #2219.
See also → duplication.md:19, delins.md:5, frameshift.md:5.
Deletion-Insertion — ferro’s reading
ferro’s reading of the HGVS protein deletion-insertion (delins) recommendations, clause by
clause. New here? See How to read a page. Examples run against
NP_003997.1 (dystrophin) in the committed slice.
delins.md:5 — definition: residues replaced by others
one or more amino acids are replaced by one or more other amino acids and which is not a substitution or frameshift
Ferro: a delins replaces one or more residues with one or more others, where the change is neither a substitution nor a frameshift.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Cys10delinsTrpVal | recommended | self | Cys10 replaced by TrpVal |
NP_003997.1:p.Trp24_Val25delinsCysArg | recommended | self | Trp24Val25 replaced by CysArg |
delins.md:17 — one-for-one is a substitution, not a delins
when one amino acid is replaced by one other amino acid, the change is a
Ferro: a single residue replaced by a single residue is a substitution; ferro rewrites the 1→1 delins spelling to it. A single residue replaced by two or more is a genuine delins.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp24delinsCys | recommended | NP_003997.1:p.Trp24Cys | 1→1 delins normalized to the substitution |
NP_003997.1:p.Trp24delinsCysArg | recommended | self | 1→2 is a genuine delins |
delins.md:18-20 — two or more consecutive changes are one delins
the description
p.Arg76_Cys77delinsSerTrpis correct
Ferro: adjacent per-residue changes are written as one delins, derived from the resulting sequence — the split spelling is marked “not correct” at separation zero.
Why ferro reads it this way
delins-adjacent-members-when-both-consume-reference — Two adjacent changes that both consume reference bases are written as a single delins; the spec marks the split spelling “not correct” at separation zero.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.[Trp24Ser;Val25Arg] | recommended | NP_003997.1:p.Trp24_Val25delinsSerArg | two adjacent substitutions merged into one delins |
NP_003997.1:p.Trp24_Val25delinsSerArg | recommended | self | the recommended merged form |
NP_003997.1:p.TrpVal24CysArg | refused | — | the multi-residue substitution spelling — write a delins |
delins.md:62-64 — a separated pair is described individually
the variant is not described as
p.Ser44_Trp46delinsArgLeuArg
Ferro: two changes separated by an unchanged residue stay separate members; they are not fused into a delins that would falsely claim the residue between them changed.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.[Leu44Arg;Asp46Arg] | recommended | self | separated by Gln45 — kept as two members, not one delins |
delins.md:22 — the 3′ rule reduces a delins to a deletion
the most C-terminal position possible of the reference sequence is arbitrarily assigned to have been changed (3’rule)
Ferro: when a delins’s payload coincides with part of the reference, the net change is a plain deletion; ferro reduces it and applies the 3′ rule.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp3_Trp4delinsTrp | recommended | NP_003997.1:p.Trp4del | deleting TrpTrp and inserting Trp is a one-Trp deletion, 3′-placed |
delins.md:43-45 — a stop in the payload
amino acids after the translation termination codon are not listed
Ferro: an inserted peptide ends at its first stop. A delins whose payload ends at Ter is
accepted; residues written after the Ter make the description invalid, and ferro refuses it. (An
immediate stop is a nonsense substitution — substitution.md:17.)
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp24_Val25delinsLeuTer | recommended | self | payload ends at Ter — accepted |
NP_003997.1:p.Glu5_Glu6delinsTerGluAsp | refused | — | residues listed after Ter — rejected at parse (delins.md:45) |
See also → substitution.md:17, frameshift.md:5, extension.md:5.
Repeated Sequences — ferro’s reading
ferro’s reading of the HGVS protein repeated sequence recommendations, clause by clause. New
here? See How to read a page. Examples run against NP_003997.1
(dystrophin) in the committed slice, whose N-terminus carries a TrpTrp (positions 3–4) and a
LysLys (positions 18–19) tandem pair.
repeated.md:5 — definition: a unit repeated in tandem
a segment of one or more amino acids (the repeat unit) is present several times, one after the other
Ferro: a repeat names the first residue of the unit and the copy count in [n]; ferro accepts and
preserves it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp3[2] | recommended | self | the reference TrpTrp stated as two copies from position 3 |
repeated.md:20-23 — the repeat count and the del / dup form are both legal
when the repeat is variable in the population and the reference sequence has 10 units, the description
p.Ala2[9]is preferred overp.Ala11del
Ferro: a change to a repeat count can be spelled as a repeat ([n]) or as a del / dup — both are
legal, and the spec prefers the repeat form only when the repeat is variable in the population, a
fact ferro cannot derive from sequence. So ferro preserves whichever form it is given rather than
rewriting one into the other. The del / dup spellings of the same change, which ferro does
treat as recommended, are on the deletion and duplication pages.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp3[1] | conformant | self | a contraction to one copy — the same protein as p.Trp4del; ferro preserves the repeat form |
NP_003997.1:p.Lys18[3] | conformant | self | an expansion to three copies — the same protein as p.Lys19dup; ferro preserves the repeat form |
repeated.md:25-26 — two alleles
present in 10 copies on one allele and 11 copies on the other allele
Ferro: per-allele repeat counts use the [m];[n] form; ferro preserves it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Trp3[2];[3] | recommended | self | two copies on one allele, three on the other |
See also → deletion.md:19, duplication.md:22, alleles.md:5.
Frameshift — ferro’s reading
ferro’s reading of the HGVS protein frameshift recommendations, clause by clause. New here? See
How to read a page. Examples run against NP_003997.1 (dystrophin) in
the committed slice.
frameshift.md:5 — definition: translation shifts frame
translation shifts to another reading frame
Ferro: a frameshift names the first residue changed, the first new residue, and the position of the
new stop (Ter# / *#).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Thr97ProfsTer23 | recommended | self | Thr97→Pro, new stop 23 codons downstream |
NP_003997.1:p.Glu5ValfsTer5 | recommended | self | Glu5→Val, new stop after five codons |
frameshift.md:20-22 — * is Ter, and an immediate stop is nonsense
the shortest frameshift variant possible contains
fsTer2
Ferro: the * stop shorthand is normalized to Ter. A frameshift needs at least fsTer2; an
immediate stop (fsTer1) is a nonsense substitution (substitution.md:17), not a frameshift.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Thr97Profs*23 | recommended | NP_003997.1:p.Thr97ProfsTer23 | the * stop shorthand normalized to Ter |
NP_003997.1:p.Trp4TerfsTer1 | refused | — | an immediate stop is a nonsense substitution, not a frameshift |
frameshift.md:23 — the short format
frameshifts can also be described using a short format;
p.Arg123fs
Ferro: the short form gives only the first residue changed and fs; ferro accepts and preserves it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Thr97fs | recommended | self | the short form of the frameshift at Thr97 |
frameshift.md:44-45 — no new stop codon is Ter?
the new reading frame does not encounter a new translation termination (stop) codon
Ferro: when the shifted frame reaches no new stop, the position is Ter? / *?; the * form is
normalized to Ter.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Asp327Argfs*? | recommended | NP_003997.1:p.Asp327ArgfsTer? | no new stop reached; *? normalized to Ter? |
frameshift.md:47-49 — anchored at the first residue changed
Since frameshift variants start with the first amino acid changed, the description
Ferro: the anchor is the first residue the shifted frame alters — not the first codon touched on the DNA level. A frameshift anchored at an unchanged residue is refused.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Asn150Asnfs*10 | refused | — | Asn150 names an unchanged residue — anchor at the first changed residue |
See also → substitution.md:17, delins.md:5, extension.md:5.
Extension — ferro’s reading
ferro’s reading of the HGVS protein extension recommendations, clause by clause. New here? See
How to read a page. Examples run against NP_003997.1 (dystrophin) in
the committed slice, whose stop codon sits at position 3686.
extension.md:5 — definition: the sequence extends past a terminus
extending the reference amino acid sequence at the N- or C-terminal end with one or more amino acids
Ferro: an extension lengthens the protein at the N-terminus (a new upstream start, ext-n) or the
C-terminus (a lost stop, extTer#).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Met1ext-5 | recommended | self | N-terminal: a new upstream start at Met-5 |
NP_003997.1:p.Ter3686GlnextTer17 | recommended | self | C-terminal: the stop becomes Gln, a new stop 17 codons on |
extension.md:26-28 — a start-lost change is an insertion, not an extension
this variant is not described as an extension
Ferro: when the change alters Met1 itself (activating an upstream start), it is an insertion
(insertion.md:5) or deletion-insertion, not an extension — because part of the normal sequence
changes. Writing it as an ext of Met1 is refused.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Met1_Leu2insArgSerThrVal | recommended | self | start-lost with an upstream start → insertion |
NP_003997.1:p.Met1Valext-4 | refused | — | Met1 itself changes — not an extension (extension.md:28) |
extension.md:30-31 — the C-terminal no-stop extension, * is Ter
a variant in the stop codon (
Ter/*) at position 110, changing it to aGln-codon
Ferro: a lost stop (no-stop variant) extends the C-terminus to the next stop; the * shorthand for
both the old and new stop is normalized to Ter.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Ter3686GlnextTer17 | recommended | self | stop→Gln, new stop at +17 |
NP_003997.1:p.*3686Glnext*17 | recommended | NP_003997.1:p.Ter3686GlnextTer17 | the * stop shorthand normalized to Ter |
extension.md:33-34 — no new stop is extTer?
adding a tail of new amino acids of unknown length (position
Ter?)
Ferro: when the extended frame reaches no new stop, the length is unknown and the position is
extTer?; ferro accepts and preserves it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.Ter3686ArgextTer? | recommended | self | stop→Arg, no new stop encountered |
See also → insertion.md:5, substitution.md:45-49, frameshift.md:5.
Alleles — ferro’s reading
ferro’s reading of the HGVS protein allele recommendations, clause by clause. New here? See
How to read a page. Examples run against NP_003997.1 (dystrophin) in
the committed slice. For the shared allele grammar, see also DNA alleles.
alleles.md:17 — two variants in cis: p.[a;b]
derive from one chromosome (in cis)
Ferro: two variants on one chromosome are one bracketed allele, ;-separated; each member is
normalized in place.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.[Ser68Arg;Asn594del] | recommended | self | Ser68Arg and Asn594del in cis |
alleles.md:18 — two variants in trans: p.[a];[b]
derive from different chromosomes (in trans)
Ferro: variants on different chromosomes are separate bracketed alleles; a member that can shift is placed by the 3′ rule like any other.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.[Ser68Arg];[Asn594del] | recommended | self | compound heterozygote, in trans |
NP_003997.1:p.[Trp3del];[Ser68Arg] | recommended | NP_003997.1:p.[Trp4del];[Ser68Arg] | the first member’s deletion is 3′-shifted to Trp4 |
alleles.md:16 + alleles.md:34 — predicted parentheses go inside the brackets
should be given in parentheses inside the square brackets
Ferro: for a predicted allele the parentheses sit inside the square brackets, around each member; the outside-parentheses form is not valid HGVS and is refused.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.[(Ser68Arg;Asn594del)] | recommended | self | predicted, parentheses inside the brackets |
NP_003997.1:p.([Ser68Arg;Asn594del]) | refused | — | parentheses outside the brackets — rejected at parse |
alleles.md:19 — unknown phase: a(;)b, no brackets
it is not known whether these derive from one chromosome (in cis) or from different chromosomes (in trans)
Ferro: when the phase is unknown, the (;) separator is used without brackets; ferro preserves it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.(Ser68Arg)(;)(Asn594del) | recommended | self | phase unknown — (;), no allele brackets |
alleles.md:58-61 — a wild-type second allele is not p.=
is different since it indicates the entire protein reference sequence was analysed
Ferro: [Ser68=] (the second allele carries the reference residue at that position) is a different
claim from [=] (the whole reference sequence was analysed, nothing found). Both are preserved,
distinctly. A male X-linked case with no second allele uses [0].
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.[Ser68Arg];[Ser68=] | recommended | self | second allele wild-type at Ser68 |
NP_003997.1:p.[Ser68Arg];[=] | recommended | self | whole reference analysed — a distinct claim from [Ser68=] |
NP_003997.1:p.[Ser68Arg];[0] | recommended | self | no protein from the second allele (e.g. X-linked, male) — alleles.md:104-108 |
alleles.md:21 — one allele encoding two proteins: the , separator
the variants are separated using a
,
Ferro: two proteins from one DNA-level variant (via two transcripts) are ,-separated inside one
bracket; ferro preserves it.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.[Lys31Asn,Val25_Lys31del] | recommended | self | two proteins from one allele — ,-separated |
See also → substitution.md:24, deletion.md:19, and the DNA allele grammar.
General — ferro’s reading
ferro’s reading of the HGVS general recommendations — the cross-cutting rules and the special
characters. New here? See How to read a page. Examples run against
NM_004006.3 / NP_003997.1 in the committed slice. The per-edit-type rules live on the
DNA, RNA, and protein pages.
general.md:10-11 — describe at the DNA level; other levels in addition
all variants should be described at the most basic level, the DNA level
Ferro: the DNA-level description is primary; RNA and protein descriptions are given in addition, and a predicted one is parenthesized. ferro parses and preserves each.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.76A>G | recommended | self | the DNA-level description — the basic level |
NP_003997.1:p.(Trp24Cys) | recommended | self | a predicted protein consequence, given in addition |
general.md:22-30 — a letter prefix is mandatory
a letter prefix is mandatory to indicate the type of reference sequence used
Ferro: every description carries a coordinate prefix — c / g / m / n / o / p / r. An
unknown prefix is refused at parse.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.76A>G | recommended | self | a valid c. (coding DNA) prefix |
NM_004006.3:x.76A>G | refused | — | x. is not an accepted prefix |
general.md:55-57 — prioritisation, and overlapping allele members
the preferred description is: (1) substitution, (2) deletion, (3) inversion, (4) duplication, (5) insertion
Ferro: when several types could describe one change, the earlier type wins — a tandem-copy insertion
is written as a duplication (DNA/insertion.md:17). A separate rule bars two members of one allele
from claiming overlapping reference territory: c.[762_768del;767_774dup] has 767–768 in
both members, so it is refused. That refusal is governed by the allele definition (DNA/alleles.md:5),
not by the prioritisation order.
Why ferro reads it this way
conflicting-member-geometry-refusal-scope — Two members of one allele that claim intersecting reference territory — nested, overlapping, or two insertions at one interbase — are refused, whatever edit types they render as.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.[762_768del;767_774dup] | refused | — | members share reference bases 767–768 — overlapping territory (DNA/alleles.md:5) |
general.md:90-91 — the = (unchanged) and / (mosaic) characters
=(equals) is used to indicate a sequence was tested but found unchanged
Ferro: = marks a tested-unchanged position; / marks a mosaic mixture, written reference-first.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.76= | recommended | self | c.76 tested, unchanged |
NM_004006.3:c.76=/A>G | recommended | self | mosaic, reference (=) written first |
NM_004006.3:c.76A>G/= | recommended | NM_004006.3:c.76=/A>G | variant-first spelling; ferro reorders it reference-first (#2034) |
general.md:95 — spaces are not permitted
spaces are not permitted in any HGVS description
Ferro: a space anywhere in a description makes it invalid; ferro refuses it at parse.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.76A>G | recommended | self | no spaces |
NM_004006.3:c.76 A>G | refused | — | an internal space — not a valid HGVS description |
See also → DNA insertion (dup-over-insertion prioritisation), uncertain descriptions, publication checklist.
Uncertain — ferro’s reading
ferro’s reading of the HGVS uncertain recommendations — how a variant is described when not all
details are known. New here? See How to read a page. Executable examples run
against NM_004006.3 / NP_003997.1 in the committed slice; genomic-breakpoint examples use foreign
accessions and are parse-only.
uncertain.md:9-16 — the uncertainty characters
( )(parentheses) are used to indicate uncertainties
Ferro: ( ) marks a predicted or uncertain form, ^ “or” (a set of possible residues), and
Xaa[n] / N[n] a run of unknown residues / bases; ? marks an unknown position (shown in the
breakpoint examples below). ferro parses and preserves all of them.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.(Trp24Cys) | recommended | self | ( ) — a predicted consequence |
NM_004006.3:c.(71_72)G>A | recommended | self | ( ) — an uncertain position |
NP_003997.1:p.(Gly56Ala^Ser^Cys) | recommended | self | ^ — one of Ala, Ser, Cys |
NP_003997.1:p.Glu719(Ala^Ser)fsTer23 | recommended | self | ^ inside a frameshift — the first new residue is Ala or Ser |
uncertain.md:181-182 — RNA when RNA was not analysed
an effect on the RNA level is expected, but that it is not possible to give a reliable prediction of the consequences
Ferro: the RNA “not analysed” forms — r.? (effect expected, unpredictable), r.(=) (no change
expected), r.spl / r.spl? (splicing very likely / might be affected), r.(76a>c) (expected but
unverified), r.(?) (no change beyond the DNA-level consequence) — are all parsed and preserved.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:r.? | recommended | self | an RNA effect is expected but not predictable |
NM_004006.3:r.spl | recommended | self | splicing very likely affected (RNA not analysed) |
NM_004006.3:r.(=) | recommended | self | no RNA change expected |
NM_004006.3:r.(76a>c) | recommended | self | expected but RNA not analysed |
The spec also lists r.0? (possibly no transcript); ferro does not yet parse the bare r.0? form —
though the protein counterpart p.0? does parse (an axis asymmetry).
uncertain.md:206-207 — protein when the consequence is unknown
an effect on the protein level is expected
Ferro: p.? (effect expected, unpredictable), p.0? (possibly no protein) and p.(=) (no change
expected) are all parsed and preserved.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.? | recommended | self | a protein effect is expected but not predictable |
NP_003997.1:p.0? | recommended | self | possibly no protein produced |
NP_003997.1:p.(=) | recommended | self | no protein change expected |
uncertain.md:215-222 — an unknown position between two residues
at an unknown position between amino acids
Ala123andPro131
Ferro: a change whose exact position is unknown is anchored to a residue range (start_end) — for
a nonsense ()Ter), a frameshift ()fs), or an insertion ()insXaa[n]).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.(Val123_Leu131)Ter | recommended | self | a stop at an unknown position in Val123–Leu131 |
NP_003997.1:p.(Val123_Leu131)fs | recommended | self | a frameshift starting at an unknown position |
NP_003997.1:p.(Val123_Leu131)insXaa[4] | recommended | self | four unknown residues inserted at an unknown position |
uncertain.md:32-33 — a deletion whose breakpoints were not sequenced
(A_B)_(C_D)del, whereB_Cdescribes the minimal extent andA_Dthe maximal extent
Ferro: an unsequenced breakpoint is written as nested (min)_(max) position ranges, with ? for an
open end. These examples use genomic coordinates on a foreign build, so they are parse-only here.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NC_000023.11:g.(31729716_31774235)_(32216847_32287541)del | recommended | — | nested min/max breakpoints (parse-only here) |
NC_000023.10:g.(?_32238146)_(32984039_?)del | recommended | — | open-ended breakpoints with ? (parse-only here) |
See also → predicted substitutions, protein frameshift, general notation.
Checklist — ferro’s reading
ferro’s reading of the HGVS checklist — the most frequently offended rules, as ferro
enforces them. New here? See How to read a page. Examples run against
NM_004006.3 / NP_003997.1 in the committed slice. The spec’s checklist has 14 numbered items;
the sections below shadow the ones with a mechanically-checkable form — the rest are
publication-practice advice.
checklist.md:19-20 — an intronic c. position needs a genomic reference
can only be used to describe variants in introns using a
c.prefix when a genomic reference sequence is given
Ferro: an intronic c. position (c.94-2A>G) names an intron base a bare NM_ transcript does not
contain. It is valid HGVS only against a genomic-anchored reference — so ferro refuses it on a bare
transcript in strict mode (W4007) and accepts it in lenient mode. Because the input is
valid, not malformed, this is a house input-hygiene policy, not a refused-as-invalid verdict.
Why ferro reads it this way
bare-transcript-intronic-position — A bare transcript intronic position such as ‘NM_…:c.20+2del’ is refused in strict input-hygiene mode and accepted in lenient mode, since the spec allows it only when a genomic reference is given.
The genomic-anchored form NC_000023.11(NM_004006.3):c.94-2A>G carries the intron bases and is
accepted in both modes.
checklist.md:24-26 — intronic descriptions: no labels, no incomplete ranges
descriptions referring to exon or intron numbers instead of nucleotide positions
Ferro: an IVS/exon-number label is not a position and is refused; an intronic range must name both
endpoints in full (c.123-65_123-50), not abbreviate the second (c.123-65_-50).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.IVS4-2A>G | refused | — | an IVS intron label, not a nucleotide position |
NM_004006.3:c.123-65_-50 | refused | — | an incomplete intronic range — the second endpoint is abbreviated |
checklist.md:30-33 — insertions: two positions, and give the sequence
insertions should be reported using the format
c.51_52insT
Ferro: an insertion names two flanking positions and the inserted sequence; a single-position anchor or a bare count is refused.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.51_52insT | recommended | self | the correct form: two positions, inserted base given |
NM_004006.3:c.52insT | refused | — | a single-position anchor — ambiguous |
NM_004006.3:c.5439_5440ins6 | refused | — | a bare count — the inserted sequence must be given (or insN[6]) |
checklist.md:42-45 — the range sign is _, not -
The sign used to indicate a range is the
_(underscore), not a-(hyphen-minus)
Ferro: _ joins a range; a hyphen is a coding-DNA intronic offset. c.12-14del is not “12 to
14” — it is a deletion at the intronic position c.12-14 (14 nt into the intron 5′ of c.12), a
valid but entirely different description. That silent change of meaning is exactly why the hyphen
is a trap; on a bare transcript ferro refuses that intronic form in strict mode (see above).
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.12_14del | recommended | self | a deletion of c.12 to c.14 — the range you meant |
checklist.md:47-49 — a deletion names its first and last residue
correct is
g.123_125del
Ferro: a multi-residue deletion names both endpoints with a range; a del<size> suffix is refused.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.123_125del | recommended | self | the correct range form |
NM_004006.3:c.123del3 | refused | — | a size suffix names only one endpoint |
checklist.md:60-65 — protein: Ter not X, silent is =, no Met1 substitution
predicted “silent” protein level variants are described as p.(Leu54=)
Ferro: a stop codon is Ter (or *), never X; a silent change is =; and an initiation-codon
change is not a substitution.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NP_003997.1:p.(Leu54=) | recommended | self | the recommended silent form |
NP_003997.1:p.Trp24Ter | recommended | self | a stop written Ter |
NP_003997.1:p.Leu54Leu | conformant | self | silent (Leu→Leu); the recommended form is p.Leu54= — ferro preserves it (#2220) |
NP_003997.1:p.(Met1Val) | refused | — | an initiation-codon change is not a substitution |
checklist.md:67-69 — no “polymorphism” slash
should not be described using the
/(slash)
Ferro: the / “polymorphism” form is not valid HGVS; describe the change as an ordinary variant.
| Input | Verdict | Normalizes to | Notes |
|---|---|---|---|
NM_004006.3:c.127G>A | recommended | self | the ordinary substitution form |
NM_004006.3:c.127G/A | refused | — | the disallowed “polymorphism” slash |
See also → general notation, DNA insertion, protein substitution.