A Cython wrapper over uShuffle - a useful tool for shuffling biological sequences while preserving the k-let counts.
Project description
uShuffle
========
.. image:: https://img.shields.io/pypi/v/ushuffle.svg
:target: https://pypi.python.org/pypi/ushuffle
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](http://digital.cs.usu.edu/~mjiang/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(self.seq, len(self.seq), 2)
for i in range(10):
seqres = shuffler.shuffle()
print("results:", seqres)
print shuffle(a, 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.](http://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-9-192) BMC Bioinformatics, 9:#192, 2008.
========
.. image:: https://img.shields.io/pypi/v/ushuffle.svg
:target: https://pypi.python.org/pypi/ushuffle
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](http://digital.cs.usu.edu/~mjiang/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(self.seq, len(self.seq), 2)
for i in range(10):
seqres = shuffler.shuffle()
print("results:", seqres)
print shuffle(a, 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.](http://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-9-192) 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
ushuffle-1.0.1.tar.gz
(29.3 kB
view details)
File details
Details for the file ushuffle-1.0.1.tar.gz
.
File metadata
- Download URL: ushuffle-1.0.1.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21dc2a491d95c5d00fcfb1b85b13329711d4e721da4b340b4f28bafc4a9ef7e5 |
|
MD5 | 9d5dd6abd41c972cc5dde31027b774dd |
|
BLAKE2b-256 | d96719002ff9edca6566d8053b807beaac71e4b299279456b6f96bfc8de56046 |