Skip to main content
https://img.shields.io/github/last-commit/mutalyzer/hgvs-parser.svg https://readthedocs.org/projects/mutalyzer-hgvs-parser/badge/?version=latest https://img.shields.io/github/release-date/mutalyzer/hgvs-parser.svg https://img.shields.io/github/release/mutalyzer/hgvs-parser.svg https://img.shields.io/pypi/v/mutalyzer-hgvs-parser.svg https://img.shields.io/github/languages/code-size/mutalyzer/hgvs-parser.svg https://img.shields.io/github/languages/count/mutalyzer/hgvs-parser.svg https://img.shields.io/github/languages/top/mutalyzer/hgvs-parser.svg https://img.shields.io/github/license/mutalyzer/hgvs-parser.svg

Package to syntax check and convert Mutalyzer HGVS variant descriptions into a dictionary model to easily access descriptions information in a programmatically manner.

Features:

  • Accepts HGVS descriptions with multiple variants (one HGVS allele).

  • Any description sub-part can be parsed and converted as well.

  • Supports common deviations to the HGVS guidelines.

  • Command line and library interfaces available.

Quick start

Parse and convert a description from the command line:

$ mutalyzer_hgvs_parser -c "NG_012337.1:c.20del"
{
  "reference": {
    "id": "NG_012337.1"
  },
  "coordinate_system": "c",
  "variants": [
    {
      "location": {
        "type": "point",
        "position": 20
      },
      "type": "deletion",
      "source": "reference"
    }
  ]
}

The to_model() function can be used for the same purpose:

>>> from mutalyzer_hgvs_parser import to_model
>>> model = to_model("NG_012337.1:c.20del")
>>> model['reference']
{'id': 'NG_012337.1'}

Please see ReadTheDocs for the latest documentation.

Release files for mutalyzer-hgvs-parser 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mutalyzer-hgvs-parser 0.4.0
File Size Uploaded
mutalyzer_hgvs_parser-0.4.0.tar.gz 26.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mutalyzer-hgvs-parser 0.4.0
File Interpreter ABI Platform
mutalyzer_hgvs_parser-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 43.9 kB

Release files / mutalyzer_hgvs_parser-0.4.0.tar.gz

Download URL mutalyzer_hgvs_parser-0.4.0.tar.gz
Size 26.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6d7530a047a4f39f1e929bde3920887b6abea58d574b6794e725b5ca53aab71e
BLAKE2b-256 checksum
How to use checksums
f868082242a7d8bf0535416df0c04a3e96d68bfc863060fe6a889ab4f0b56e87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / mutalyzer_hgvs_parser-0.4.0-py3-none-any.whl

Download URL mutalyzer_hgvs_parser-0.4.0-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
231a5456cb8ec94a81b9c1e17ff169f570cb7f1527061d8e9ad26438ce7ea00c
BLAKE2b-256 checksum
How to use checksums
8c41d0d44aef5f2a96d2474b19ef0dce542baed215fb0e55ce2a8e8877128609
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.6

2 release files

0.0.5

1 release file

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page