Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

MPG: Markov Process Generator of DNA sequences

Project description

Generates DNA sequences using a Markov Chain, learned from some reference sequence(s).

Many thanks to Ben Kaehler for a proof of concept and mathematical assistance.

Disclaimer: This is unstable software at the moment. Use with caution.

https://travis-ci.org/kdmurray91/mpg.svg?branch=master

Installation

pip install cython numpy nose
pip install -U -e 'git+https://github.com/kdmurray91/mpg#egg=mpg'

Usage

The script mpg should have been installed. This learns the transition probablitlies from sequences (in Fasta format) and generates random sequences from this Markov chain.

To learn transition probablities for a 5th-order Markov chain from the Arabidopsis genome and store them in a file (ath.yml):

mpg -k 5 -d ath.yml TAIR_10.fasta

To use these transition probablitlies to generate a sequence of 1000bp:

mpg -l 1000 -r ath.yml

To do the above operations at once:

mpg -l 1000 -k 5 TAIR_10.fasta

Project details


Release history Release notifications

History Node

0.2.1

This version
History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mpg-0.1.0.tar.gz (48.6 kB) Copy SHA256 hash SHA256 Source None Mar 5, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page