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.
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mpg-0.1.0.tar.gz
.
File metadata
- Download URL: mpg-0.1.0.tar.gz
- Upload date:
- Size: 48.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb77e46e70538f6f94582e714ffb19da3954490e036c062379b5742fa04519e7 |
|
MD5 | c94cb3a45ccfd0c657c645bd84cece8b |
|
BLAKE2b-256 | 85b55870cfc2a817b8983652231eff75aed47648a386470705fd2c404f0b6272 |