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.3.8.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

mutalyzer_hgvs_parser-0.3.8-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mutalyzer_hgvs_parser-0.3.8.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.2

File hashes

Hashes for mutalyzer_hgvs_parser-0.3.8.tar.gz
Algorithm Hash digest
SHA256 674554d14a366f1fbef5a9da0493c46be949b84dfd2310473893451d5f28426a
MD5 d4b414a61a4c4eab4af969c30eec583a
BLAKE2b-256 0379524b00f8f8e048391da27aa6eaf11c069f304ae4d78f8bf338c2413fbcbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mutalyzer_hgvs_parser-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b66c56cf6943c0bc7616ecb199597f04c457163020ea52e24bad7c3e02c769fa
MD5 861e52c1c1ccd8ed6d6a2369732db007
BLAKE2b-256 e87d5c3beb7c4972570f8b2ce5360e03a19b203a6e948f24afd0f56da9448e3d

See more details on using hashes here.

Supported by

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