Skip to main content

A module that parses different diagnostic variant data.

Project description

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.

Changelog

v0.2.1

Fixes broken long description parsing in the setup.py, when trying to use pip for installation.

v0.2

First official release with PyPI deployment.

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

mtbparser-0.2.1.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file mtbparser-0.2.1.tar.gz.

File metadata

  • Download URL: mtbparser-0.2.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mtbparser-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9637408491c396f58e3bc83159bef1586e9558d094ffe149f60262613cf40871
MD5 2f4d166c811359c9e6fea8dbb694253e
BLAKE2b-256 0948e8cea8b83f8ad9788fb79de1396daaafbae15dcfa95d58109d2fb400e87b

See more details on using hashes here.

Supported by

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