A Cython wrapper over uShuffle - a useful tool for shuffling biological sequences while preserving the k-let counts.
Project description
A Cython wrapper around uShuffle - a useful tool for shuffling biological sequences while preserving the k-let counts
This is just a bundle of files downloaded from ushuffle and wrapped in Cython for easy installation and use.
Installation
git clone https://github.com/guma44/ushuffle.git
cd ushuffle
python setup.py install [ --user ]
or
pip install [--user] ushuffle
Usage
The library exposes a shuffling function shuffle and a Shuffler object used to make shuffling many times eg.:
from ushuffle import shuffle, Shuffler
seq = "ababcdcdabdcabvababab"
shuffler = Shuffler(seq, 2)
for i in range(10):
seqres = shuffler.shuffle()
print("results:", seqres)
print shuffle(seq, 2)
References
If you use this tool please refer to the original paper and authors: Minghui Jiang, James Anderson, Joel Gillespie, and Martin Mayne. uShuffle: a useful tool for shuffling biological sequences while preserving the k-let counts. BMC Bioinformatics, 9:#192, 2008.
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 ushuffle-1.0.9.tar.gz
.
File metadata
- Download URL: ushuffle-1.0.9.tar.gz
- Upload date:
- Size: 32.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b27ec4cfb632a4ab27b108c427b50f7aaea1d36048d8b64a0065e5feb37f9366 |
|
MD5 | c9beb48a4244940a41f1cc31898e725e |
|
BLAKE2b-256 | 3e1279d8dc4b39594246bbf2cf4bb69ac6dc6f9e57ebbc099492375415d8078e |