Skip to main content

About this module

This Python module was designed to provide a simple parser for different diagnostic variant information data.

How to use the SnvParser class

Parsing a SNV file following the formats described above is fairly simple. Just create an SnvParser object with the path to the tsv-file and specify its type by providing the correct header (SSnvHeader, GSnvHeader, ...).

from mtbparser.snv_parser import SnvParser
from mtbparser.snv_utils import SSnvHeader

# Path to a valid SNV tsv file, as specified in
# the file format documentation.
somatic_snv_file = "/path/to/mySSnv.tsv"

# Create parser object for somatic SNVs
parser = SnvParser(somatic_snv_file, SSnvHeader)

# Iterate through parsed SNV items and get the gene name
for snv_item in parser.getSNVs():
    print(snv_item.get_snv_info(SSnvHeader.GENE.name))

Detailed documentation

A more detailed documentation can be found on Github.

Metadata

Release files for mtbparser 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mtbparser 0.2.7
File Size Uploaded Provenance
mtbparser-0.2.7.tar.gz 7.5 kB Without provenance Details

Release files / mtbparser-0.2.7.tar.gz

Download URL mtbparser-0.2.7.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
67709e26832a914a213e05a93f6a91bad4e00731a79ae703a1684c7d4f93569e
BLAKE2b-256 checksum
How to use checksums
7fca6b8e748c66407db9fdf633d4deb042f2a75636adac106b8be69ff099a053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mtbparser 0.2.7

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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