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.

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.5.tar.gz (7.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for mtbparser-0.2.5.tar.gz
Algorithm Hash digest
SHA256 0b8b25465bc22eac9e32532f0f3ede383f404ff538882558e49ae7dcc2d641f3
MD5 196e9ef3db19716f70e9eaa1f21b61df
BLAKE2b-256 41465d56e0274cddb74b83db18be9b6678cbb9d88dbc18b10379b756b3f3d5ce

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