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():

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
mtbparser-0.2.7.tar.gz (7.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page