Skip to main content

Mutalyzer HGVS Parser

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

Package to syntax check and convert SPDI descriptions into a dictionary model.

Quick start

Parse and convert a description from the command line:

$ mutalyzer_spdi_parser -cs "NG_012337.3:10:C:T"
{
  "seq_id": "NG_012337.3",
  "position": 10,
  "deleted_sequence": "C",
  "inserted_sequence": "T"
}

$ mutalyzer_spdi_parser -ch "NG_012337.3:10:C:T"
{
  "type": "description_dna",
  "reference": {
    "id": "NG_012337.3"
  },
  "variants": [
    {
      "type": "deletion_insertion",
      "location": {
        "type": "range",
        "start": {
          "type": "point",
          "position": 10
        },
        "end": {
          "type": "point",
          "position": 11
        }
      },
      "deleted": [
        {
          "sequence": "C",
          "source": "description"
        }
      ],
      "inserted": [
        {
          "sequence": "T",
          "source": "description"
        }
      ]
    }
  ]
}

The to_hgvs_internal_model() function can be used to obtain the equivalent HGVS dictionary model (deletion insertion variants with internal locations and indexing):

>>> from mutalyzer_spdi_parser import to_hgvs_internal_model
>>> model = to_hgvs_internal_model("NG_012337.3:10:C:T")
>>> model['reference']
{'id': 'NG_012337.3'}

Metadata

Release files for mutalyzer-spdi-parser 1.0.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-spdi-parser 1.0.0
File Size Uploaded Provenance Actions
mutalyzer_spdi_parser-1.0.0.tar.gz 7.4 kB With provenance Details for mutalyzer_spdi_parser-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mutalyzer-spdi-parser 1.0.0
File Interpreter ABI Platform Actions
mutalyzer_spdi_parser-1.0.0-py3-none-any.whl Python 3 none any Details for mutalyzer_spdi_parser-1.0.0-py3-none-any.whl

Total release size: 14.9 kB

Release files / mutalyzer_spdi_parser-1.0.0.tar.gz

Download URL mutalyzer_spdi_parser-1.0.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b8486a8d0e0b2a75a76d34b5df0521aaa0d3fa9b3da157adff460f0b7c5d2875
BLAKE2b-256 checksum
How to use checksums
56f04fc80565d552256cc19e006f66e64a3704727a16f981d342fb112d6995c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / mutalyzer_spdi_parser-1.0.0-py3-none-any.whl

Download URL mutalyzer_spdi_parser-1.0.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
089e590629a276c42e7bd98954d782f9707463ba2562d189798fd6e391067794
BLAKE2b-256 checksum
How to use checksums
0086fcd644b23ef3445b75663f749ca5635dfd58190d2f37448a77b702d2f9ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for mutalyzer-spdi-parser 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mutalyzer_spdi_parser-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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