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.9.tar.gz (26.0 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.3.9-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mutalyzer_hgvs_parser-0.3.9.tar.gz
Algorithm Hash digest
SHA256 b0bf2b578ac9050f4ce45e8dc4ba67161ace8dd1cb4a1a2127d4c99622581ac8
MD5 dbbaf56584f5fd6605970eef0f3a4f55
BLAKE2b-256 0f24faf4f9751ff0938a745ca1adb83d739eba53888eb6a527611dd3791258ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mutalyzer_hgvs_parser-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 938274153c3808a82e798313c0bd864049f0e67d5a4d4e6bc40363933240e3d1
MD5 5566b4cd9aa6bd9b39e464e54b76e925
BLAKE2b-256 9c57b9c60791bf266d8009c8539413844d0497ac368e7725a596ac6004de0a9d

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