Skip to main content

Regular expression-based validation of HGVS-style variant strings for Multiplexed Assays of Variant Effect.

Project description

Coverage Status Code style: black

mavehgvs

mavehgvs is the Python reference implementation of the MAVE-HGVS variant representation standard, a strict subset of HGVS, used primarily for clinical genomics.

The MAVE-HGVS Standard

MAVE-HGVS is a strict subset of the HGVS Sequence Variant Nomenclature, version 20.05. HGVS nomenclature is comprehensive and very expressive and consequently includes a lot of syntax that is not needed to represent variants from Multiplexed Assay of Variant Effect (MAVE) data and makes the variant strings more challenging to parse.

While packages exist for parsing HGVS (most notably the biocommons hgvs package, they are intended for use in human genetics and rely on sequence databases and reference sequence (called "target sequence" for MAVE-HGVS), which are not always available for or relevant for multiplexed assays.

MAVE-HGVS is an attempt to define an easy-to-parse subset of the HGVS nomenclature that captures those variants that occur in MAVE datasets, while excluding many variant types that are unlikely to be found. Importantly, the mavehgvs implementation does not rely on external sequence databases or identifiers.

Supported Variants

MAVE-HGVS supports DNA, RNA, and protein variants. MAVE-HGVS supports a subset of HGVS variants including:

  • substitutions
  • deletions
  • duplications
  • insertions
  • frame shifts

Many HGVS variants are unsupported including:

  • inversions
  • conversions
  • extensions
  • changes in methylation state
  • RNA fusion transcripts
  • mosaicism
  • chimerism
  • variants with uncertain consequence
  • variants in trans or unknown phase
  • complex variants (e.g. translocations)

For further details, including example variants, see the specification in the package documentation.

Installation

Install mavehgvs from pip using:

pip3 install mavehgvs

To set up the package for development purposes, include the optional dependencies and install pre-commit:

pip3 install mavehgvs[dev]
pre-commit install

Feedback

To report a problem or request a new feature with either the mavehgvs package or the MAVE-HGVS standard, please use the GitHub issue tracker.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mavehgvs-0.8.0.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mavehgvs-0.8.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file mavehgvs-0.8.0.tar.gz.

File metadata

  • Download URL: mavehgvs-0.8.0.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mavehgvs-0.8.0.tar.gz
Algorithm Hash digest
SHA256 9b26412de5fbdab6df0a6c9b18686b201a31e179e214896316edc1b7072c927a
MD5 ecf041546e3fe0afaada671e1e4531a6
BLAKE2b-256 581cab6c9d09678bd029ce20c4e358098f64c102c59af3383ef03dbe949afc1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mavehgvs-0.8.0.tar.gz:

Publisher: python-publish.yml on VariantEffect/mavehgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mavehgvs-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: mavehgvs-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mavehgvs-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 228f96a93b52192d6dc983f3ddabd3d890b7abaa42690e5e10b6ea280a470f45
MD5 67b35c91b18f04ad8ce3c0f96efd2496
BLAKE2b-256 5de0676402bc1a6f3d97860f21e4641f96330bf31ff6507648456e6dde248371

See more details on using hashes here.

Provenance

The following attestation bundles were made for mavehgvs-0.8.0-py3-none-any.whl:

Publisher: python-publish.yml on VariantEffect/mavehgvs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page