Mutalyzer HGVS variant description parser.
Project description
Mutalyzer HGVS Parser
.. image:: https://img.shields.io/github/last-commit/mutalyzer/hgvs-parser.svg :target: https://github.com/mutalyzer/hgvs-parser/graphs/commit-activity .. image:: https://readthedocs.org/projects/mutalyzer-hgvs-parser/badge/?version=latest :target: https://mutalyzer-hgvs-parser.readthedocs.io/en/latest .. image:: https://img.shields.io/github/release-date/mutalyzer/hgvs-parser.svg :target: https://github.com/mutalyzer/hgvs-parser/releases .. image:: https://img.shields.io/github/release/mutalyzer/hgvs-parser.svg :target: https://github.com/mutalyzer/hgvs-parser/releases .. image:: https://img.shields.io/pypi/v/mutalyzer-hgvs-parser.svg :target: https://pypi.org/project/mutalyzer-hgvs-parser/ .. image:: https://img.shields.io/github/languages/code-size/mutalyzer/hgvs-parser.svg :target: https://github.com/mutalyzer/hgvs-parser .. image:: https://img.shields.io/github/languages/count/mutalyzer/hgvs-parser.svg :target: https://github.com/mutalyzer/hgvs-parser .. image:: https://img.shields.io/github/languages/top/mutalyzer/hgvs-parser.svg :target: https://github.com/mutalyzer/hgvs-parser .. image:: https://img.shields.io/github/license/mutalyzer/hgvs-parser.svg :target: https://raw.githubusercontent.com/mutalyzer/hgvs-parser/master/LICENSE.md
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:
.. code-block:: console
$ 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:
.. code:: python
>>> 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.
.. _ReadTheDocs: https://mutalyzer-hgvs-parser.readthedocs.io/en/latest/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mutalyzer_hgvs_parser-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ede2fba1079f0a6e14b42dbc96a4645088a848f7d29d96b85b1070a1535360d4 |
|
MD5 | 42281a056077b8b05552d29c966b92f3 |
|
BLAKE2b-256 | 110bf978e64e29b32091be544aba1a75b65fdeb51ecb1febed3968f7dd047456 |
Hashes for mutalyzer_hgvs_parser-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a98a0feeefb771d1b5b792a206242cdd78e5fa076d5e86c03d7cfab559998f41 |
|
MD5 | bd308c8010f2e53ed59c0b69ea0b4405 |
|
BLAKE2b-256 | 4363f8beb772e0f14eeb5b29748080189c32f28a19251dc5ec55fb3bd4735c4b |