/mutation-signatures-viz

Mutation signature visualizations

Primary LanguagePythonMIT LicenseMIT

Mutation signatures visualization

TravisCIBuildBadge License: MIT

A repository with scripts and functions for visualizations related to mutation signatures.

Setup

Dependencies

The methods and experiments are written in Python 3. We recommend using Conda to manage dependencies, which you can do directly using the provided environment.yml file:

conda env create -f environment.yml
source activate mutation-signatures-viz-env

We use snakemake to manage workflows.

Usage

The main expected usage of this repo is importing the various plotting functions into your own Python programs.

The list of available plotting functions is below, with further document in the Wiki (TODO).

  • sbs_signature_plot(): plot one or more distributions over SBS categories separated by substitution.

Example

We do provide one example in example/ to generate a single base substitution plot from the COSMIC mutation signatures for glioblastoma: COSMIC SBS Signatures 1, 5, and 11. To download the data and run the example:

cd example
snakemake all

When the build is not broken, Travis CI automatically runs the example and updates the image below: Glioblastoma COSMIC SBS signatures