Testing Site Testing Site

skip to navigation
skip to content

mtbparser 0.2.7

A module that parses different diagnostic variant data.

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.

File Type Py Version Uploaded on Size
mtbparser-0.2.7.tar.gz (md5) Source 2018-02-13 7KB