Skip to content

Variant normalisation in CellBase

The same genomic variant can be represented in multiple valid ways, particularly for insertions and deletions within repetitive sequence regions. This creates challenges when comparing variants against clinical, population, or scientific databases, because equivalent variants may be recorded using different coordinates or allele representations.

Variant normalisation is the process of converting a variant into a consistent representation. This improves consistency when calculating consequence types and comparing variants with external resources such as ClinVar and allele-frequency datasets, and helps ensure that equivalent variants are interpreted consistently.

Normalisation may change the reported coordinates, reference allele, alternate allele, or number of variant records returned, while still representing the same underlying biological variant. In CellBase, variant normalisation follows a fixed sequence of operations:

  • Leading base trimming: this is the removal of redundant shared bases at the start of the alleles.
  • Left alignment: the selection of the leftmost equivalent position in a repetitive sequence region.
  • Decomposition: the action of splitting a multi-nucleotide variant into smaller component variants.

Leading base trimming

Some VCF-style representations include a shared base at the beginning of both the reference and alternate alleles. This base provides context for an insertion or deletion but is not part of the changed sequence.

CellBase does not remove shared trailing bases.

Example: SNV

Submitted representation:

chr8    26332080    .   AC  AT  .   .

The leading A is shared. After leading base trimming, CellBase represents the single nucleotide polymorphism as:

chr8    26332081    .   C  T  .   .

Example: deletion

Submitted representation:

chr8    26332080    .   ACGC    A   .   .

The leading A is shared. After leading-base trimming, CellBase represents the deletion as:

chr8    26332081    .   CGC    .   .   .

The change in variant representation is the deletion of the leading 'A'. The position increases by one because the shared leading base was removed.

Example: insertion

Submitted representation:

chr8    26332080    .   A   ACGC    .   .

After removal of the shared leading A, CellBase represents the insertion as:

chr8    26332081    .   .   CGC    .   .

The internal representation uses an empty reference allele for an insertion.

Leading-base trimming is reference genome agnostic

Leading-base trimming operates only on the submitted reference and alternate alleles. It does not verify that the submitted reference allele matches the allele at that position in the selected reference genome.

Consequently, a variant may be successfully normalised despite a reference-allele mismatch.

The example below demonstrates leading-base trimming of a variant that is inconsistent with the GRCh38 reference genome.

[//]: # TODO add example

Left alignment

Left alignment shifts a variant’s start position as far left as possible while preserving the same altered sequence. It is particularly relevant for insertions and deletions in repeat sequence regions, where the same biological variant can be represented at multiple nearby positions. Left aligning is a necessary convention because clinical and population databases typically represent variants in left-aligned form.

Suppose a reference sequence contains repeated ATC units:

1                    22           35                 54
|                    |            |                  |
ACTTTGTTTGGGCCTATATCTATCATCATCATCATCATCATCATCATCATCATCGGGTTCATGGGTGACCCAAACTTG
                                  TCA

There's a repetitive motif ATC from position 22 to position 54. The resulting sequence after the deletion is shown below:

1                    22           35                 54
|                    |            |                  |
ACTTTGTTTGGGCCTATATCTATCATCATCATCATCATCATCATCATCATCATCGGGTTCATGGGTGACCCAAACTTG
                                  TCA
ACTTTGTTTGGGCCTATATCTATCATCATCATCATCATCATCATCATCATCGGGTTCATGGGTGACCCAAACTTG                                                                    

In practice, any three nucleotide deletions within the [22, 54] range will result in the same altered sequence. We can't really tell where within that repetitive subsequence the deletion happened. As a convention, the most-left position is reported for consistency. In this example, a three nucleotide deletion of ATC on position 22 would be reported as the result of the left alignment i.e.

chr1    22  .   ATC .   .   .
  1. In each iteration, it's checked if the reference nucleotide on the 5' end of the deletion coincides with the last nucleotide being deleted e.g. if the A on position 34 coincides with the final A of the deleted TCA allele.
  2. If that's the case, the variant is modified so that it's shifted one position to the left e.g. position is now 34, removed allele is ATC.
  3. Iterations continue until there's a mismatch between both nucleotides e.g. at position 21 there is a T, at that point the deleted allele would be ATC, where T != C and the process stops.

More visually:

1                    22           35                 54
|                    |            |                  |
ACTTTGTTTGGGCCTATATCTATCATCATCATCATCATCATCATCATCATCATCGGGTTCATGGGTGACCCAAACTTG
                     |            TCA
                     |           ATC
                     |          CAT
                     |         TCA
                     |        ATC
                     |       CAT
                     |      TCA
                     |     ATC
                     |    CAT
                     |   TCA
                     |  ATC 
                     | CAT      
                     |TCA   
                     ATC                
Resulting sequence:                          
ACTTTGTTTGGGCCTATATCTATCATCATCATCATCATCATCATCATCATCGGGTTCATGGGTGACCCAAACTTG

When left alignment is performed

CellBase left-aligns a variant only when:

  • The relevant upstream reference sequence does not contain a disallowed ambiguous base.
  • The alternate allele does not contain a disallowed ambiguous base.
  • The variant can move left without passing genomic coordinate 1.

Clinical interpretation note: A variant that is not left-aligned is not necessarily invalid. It may be unchanged because it is already left-aligned, cannot be moved further left, or did not meet the conditions required for left alignment.

Variant decomposition

A multi-nucleotide variant (MNV) replaces two or more adjacent reference bases with the same number of alternate bases. A delins replaces a sequence with a sequence of different length.

When decomposing, CellBase can split an eligible SNVs, MNVs or delins into smaller component variants. Components may be SNVs, deletions, insertions, or a mixture of these.

Example: SNV

chr8    26332082    .   CCC CGC .   .

In this case, two bases are shared between the reference and alternate, with only the central base showing a change (C>G). The decomposition will result in Cellbase treating the variant as the SNV:

chr8    26332083    .   C G .   .

Example: MNV

Submitted variant:

chr8    26332081    .   TCCC    ACGC    .   .

The first and third bases differ between the alleles. CellBase can represent this as two SNVs:

chr8    26332081    .   T   A   .   .
chr8    26332083    .   C   G   .   .

Positions that are unchanged are not returned as separate component variants.

Example: delins

A delins can result in more than one component type. For example, it may be represented as:

  • A deletion of one or more reference bases.
  • An insertion.
  • One or more SNVs.

As an example, let us take this complex variant:

chr8    26332082    .   TCCCAG  TAGGG   .   .

After the normalisation is applied, and the variant is decomposed into a deletion and a separate inseration:

chr8    26332083    .   CCC  .   .   .
chr8    26332087    .   .  GGG   .   .

NOTE: All coordinates in the decomposed result refer to the reference genome. An insertion does not create additional reference positions for later component variants.

How to interpret decomposed results

Decomposition can produce multiple annotation records from one submitted variant. These records should not automatically be treated as unrelated findings.

CellBase marks components originating from the same decomposed MNV or delins as belonging to the same haplotype using a phase-set (PS) value. This allows relevant downstream processing to consider the components jointly.

When phase-aware handling is enabled, this relationship is used for consequence-type and clinical-variant annotations. Where phase-aware handling is not used, component variants may be annotated individually.

For multi-allelic input, numAllelesIdx identifies the alternate allele from which a returned component originated. Use this field, together with the original submitted record, to reconcile decomposed annotations with the source VCF record.

Clinical interpretation note: Review the component variants in the context of the original MNV or delins. An effect assigned to an individual component may not by itself describe the consequence of the complete submitted haplotype.

Processing order

When all options are enabled, CellBase processes variants in this order:

  1. Leading-base trimming: remove redundant shared leading bases.
  2. left Align: left-align eligible insertions and deletions.
  3. decompose: decompose eligible MNVs and delins.

The process is not recursive. In particular, CellBase does not run left alignment again on a small insertion or deletion that is created during decomposition.

This means that a decomposed component can be biologically equivalent to another left-aligned representation without itself being moved again after decomposition.

Variants outside the standard process

The standard behaviour described above does not apply to all variant representations.

  • Symbolic alleles, including examples such as DEL, DUP, and CNV, are handled through separate processing.
  • Break-end representations are handled through separate processing.
  • Non-decomposable variants are returned as a single variant whether decompose is enabled or disabled.
  • Left alignment is not applied to variants whose reference allele does not match the reference genome.
  • Decomposition and leading-base normalisation are reference-genome agnostic, but left alignment depends on the reference genome sequence.

Expected annotation consistency

When leading-base trimming, left alignment, and decomposition are enabled, CellBase produces identical consequence types, Sequence Ontology terms, HGVS notation, and external-database matches for a normalisable input variant and its normalised equivalent.