Code Monkey home page Code Monkey logo

signature-estimation-py's Introduction

Signature Estimation in Python

Adapting the Signature Estimation R package for Python. Currently, this package only implements the quadratic programming (QP) algorithm. See [1] for details.

Set up

SignatureEstimationPy requires Python 3. We recommend using Anaconda to install dependencies.

Once you have Anaconda installed, you can create an environment with all the dependencies installed, and activate it, with the following commands:

conda env create -f environment.yml
source activate signature-estimation-py-env

Usage

The input to the signature_estimation.py script is a mutation count table and a mutation signatures table, and an (optional) list of signatures. To get the full list of parameters, run:

python signature_estimation.py -h

Example

We provide scripts in example/ to run SignatureEstimation on the COSMIC mutation signatures and mutation data from the Alexandrov, et al. (Nature 2013) paper.

Within the example/ directory, you can run a full example on the 397 melanoma samples from the Alexandrov, et al. data using the provided Snakefile with the command:

snakemake all

This will download and process the COSMIC signatures and melanoma mutation data, and compute their exposures using the SignatureEstimation quadratic program. The pipeline will produce a plot of exposures per signature, as automatically produced via continuous-integration below.

Acknowledgements

We gratefully acknowledge Xiaoqing Huang for her help developing and testing this code.

References

Xiaoqing Huang, Damian Wojttowicz, and Teresa M Przytycka. Detecting presence of mutational signatures in cancer with confidence. Bioinformatics(Oxford, England), 2017. doi: 10.1093/bioinformatics/btx604.

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.