Skip to content

Releases: biocommons/hgvs

1.5.7

17 Mar 05:35

Choose a tag to compare

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

1.5.6

04 Sep 19:26
5f27045

Choose a tag to compare

A series of minor improvements that we are releasing before merging in some major changes into the main branch.

Includes fix #774 Deletions including the stop codon should be frameshifts

1.5.5

14 Jul 00:11

Choose a tag to compare

Bug Fixes

New Features

Other Changes

Internal and Developer Changes

New Contributors

Full Changelog: 1.5.4...1.5.5