Skip to main content

Mutalyzer HGVS variant description parser.

Project description

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.

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

mutalyzer_hgvs_parser-0.4.0.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

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

mutalyzer_hgvs_parser-0.4.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file mutalyzer_hgvs_parser-0.4.0.tar.gz.

File metadata

  • Download URL: mutalyzer_hgvs_parser-0.4.0.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for mutalyzer_hgvs_parser-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6d7530a047a4f39f1e929bde3920887b6abea58d574b6794e725b5ca53aab71e
MD5 fa4400837c6f7d35f8b8d9c39bad4d97
BLAKE2b-256 f868082242a7d8bf0535416df0c04a3e96d68bfc863060fe6a889ab4f0b56e87

See more details on using hashes here.

File details

Details for the file mutalyzer_hgvs_parser-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mutalyzer_hgvs_parser-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 231a5456cb8ec94a81b9c1e17ff169f570cb7f1527061d8e9ad26438ce7ea00c
MD5 53e14b526cb5098e6f8eb850144bf010
BLAKE2b-256 8c41d0d44aef5f2a96d2474b19ef0dce542baed215fb0e55ce2a8e8877128609

See more details on using hashes here.

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