Skip to main content

A Python package for processing, analyzing and visualizing MAF files.

Project description

mafViper Documentation

A python package for reading, analyzing and visualizing mutation annotation files

Features

  • Load and validate MAF files as pandas DataFrames.

  • MAF processsing and classification tools (i.e synonymous vs. non-synonymous)

  • Merge multiple MAF files into a single DF.

  • Generate mutation summary plots, and Ti/Tv analyses.

Current Functions

  • read_maf:

    • Loads a maf file into the env as a pandas df and validates columns
    • allows for somatic vs. non-somatic selection with useAll parameter
  • classify_variants:

    • Seperates variants into synonymous and non-synonmous categories
    • discard_synonymous (default True) allows you to drop synonymous mutations from dataframe
  • merge_mafs:

    • merges a list of maf files into one maf
    • discard_synonymous parameter allows you to drop synonymous mutations after merge
  • get_titv:

    • Classifies SNVs into Ti/Tv and returns a summary df for plotting and analyses
    • Summary df contains SNV class, Raw counts by class, and fractional proportions of each class
  • get_maf_summary:

    • creates a set of maf summary analysis plots and pdf per user input
    • Top Mutated Genes plot (default 10)
    • Stacked Bar chart for Variants Per Sample (add stat line- default median)
    • Variant Classifaction Summary Plot
    • Boxplot of variant classes
    • SNV Class summary plot(Ti/Tv data visualization)
    • Variant Type summary plot (SNP, INS, DEL, etc)

Installation

'''bash

pip install mafViper

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

mafViper-0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mafViper-0.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file mafViper-0.1.tar.gz.

File metadata

  • Download URL: mafViper-0.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.6

File hashes

Hashes for mafViper-0.1.tar.gz
Algorithm Hash digest
SHA256 83b079be0ee0468b737a979cb7943aa3ea31087c8babca599245a364d7017afd
MD5 002d46f7b4580873a9019104fd20afdf
BLAKE2b-256 20a53cde1b892276d5f834613e1a24800eeb169c116ddb27e07510c258d33bde

See more details on using hashes here.

File details

Details for the file mafViper-0.1-py3-none-any.whl.

File metadata

  • Download URL: mafViper-0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.6

File hashes

Hashes for mafViper-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3f05f8d123c66e8e0e062451ed9b0b0254bf748eed41c5053506c9ef046b19b
MD5 a2d9a7256c3ef48e5c0dba09edefe6f8
BLAKE2b-256 c5d038acc45b5a452676680ec9a7f84eaed375a4ac0311b5b08d7e9e799abc7e

See more details on using hashes here.

Supported by

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