GithubHelp home page GithubHelp logo

getzlab / asymtools2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 0.0 27.48 MB

AsymTools is a package for analyzing transcriptional and replicative mutational strand asymmetries in cancer sequencing datasets.

License: Other

Python 6.38% MATLAB 91.81% C 1.80%

asymtools2's Introduction

AsymTools2

AsymTools is a package for analyzing transcriptional and replicative mutational strand asymmetries in cancer sequencing datasets. Note that currently AsymTools is only compatible with data aligned to hg19.

Installation

Preqs

Install CApy

git clone [email protected]:getzlab/CApy.git
cd CApy
pip install -e .

Then install AsymTools

git clone [email protected]:getzlab/AsymTools2.git
cd AsymTools2
pip install -e .

Example usage

from asymtools.annot import *
from asymtools.plotting import *

# Load and annotate maf file
# An example lung cancer maf can be downloaded from https://gdc.cancer.gov/about-data/publications/luad_2014
m = preprocess_maf('test/AN_TCGA_LUAD_PAIR_capture_freeze_FINAL_230.aggregated.capture.tcga.uuid.curated.somatic.maf')

# Plot asymmetries of mutation counts
twin_bar_txplot(m)
twin_bar_repplot(m)

# Plot with correction of genomic content in mutations/Mb
# Choose 'exome' or 'genome' as appropriate
twin_bar_txplot(m,normalization='exome')
twin_bar_repplot(m,normalization='exome')

# In addition to the matplotlib axes, the plotting functions can also return a dataframe with the plotted values
# The columns summarize for each mutation type the total counts (n1,n2), normalized rates if using (r1,r2), and ratio of complementary mutations (ratio)
ax,res = twin_bar_repplot(m,normalization='exome')
print(res[1].head())


plt.show()

Citation

If you use AsymTools in your work, please cite the original publication:

Mutational Strand Asymmetries in Cancer Genomes Reveal Mechanisms of DNA Damage and Repair

Haradhvala N.J., Polak P. et al., Cell 2016 Jan 21. doi: 10.1016/j.cell.2015.12.050

Legacy MATLAB version

The original version of Asymtools written in MATLAB can be found in legacy/Asymtools-1.0.3

asymtools2's People

Contributors

njharlen avatar

Stargazers

Cameron Cordero avatar

Watchers

 avatar Chip Stewart avatar David Heiman avatar  avatar François Aguet avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.