Skip to content

1.5.7

Latest

Choose a tag to compare

@andreasprlic andreasprlic released this 17 Mar 05:35

Release date: 2026-03-16

What's New

Selenocysteine support (fixes #420, #710)

hgvs can now correctly translate variants in selenocysteine-encoding transcripts. Selenocysteine (Sec) is a non-standard amino acid encoded by the UGA codon, which is normally a stop codon. Previously, variants in these transcripts would be incorrectly translated, the UGA codon would be interpreted as a stop, producing wrong protein-level HGVS representations.

What changed:

  • c_to_p and g_to_p mappings now automatically detect selenocysteine transcripts by checking the reference protein sequence. No code changes are required by users.
  • Selenocysteine is correctly represented as Sec in three-letter notation or U in single-letter notation.

Example:
NM_020451.3:c.380_382del → NP_065184.2:p.(Sec127del)
NC_000001.11:g.25812789T>C → NP_065184.2:p.(Sec462Arg)

Upgrade Notes

This release is a drop-in replacement for 1.5.6. No API changes are required. If you were previously working around incorrect translations for selenocysteine transcripts (e.g., GPX family genes), those workarounds can now be removed.

Full Changelog: 1.5.6...1.5.7