Mutalyzer sequence mutator.
Project description
This library provides an interface to mutate a DNA reference sequence according to a list of variants.
Installation
The software is distributed via PyPI. It can be installed with pip
:
pip install mutalyzer-mutator
From source
To install the latest development version, use the following commands:
git clone https://github.com/mutalyzer/mutator.git
cd mutator
pip install .
Usage
from mutalyzer_mutator import mutate
sequences = {"reference": "AAGG", "other": "AATTAA"}
variants = [
{
"type": "deletion_insertion",
"source": "reference",
"location": {
"type": "range",
"start": {"type": "point", "position": 2},
"end": {"type": "point", "position": 2},
},
"inserted": [
{"sequence": "CC", "source": "description"},
{
"source": "other",
"location": {
"type": "range",
"start": {"type": "point", "position": 2},
"end": {"type": "point", "position": 4},
},
},
],
}
]
observed = mutate(sequences, variants) # observed = 'AACCTTGG'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mutalyzer_mutator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcd5adb7527c2fc29d7e568540aab041675d5e09b96f7cec5ef7ec57c1b4b7ee |
|
MD5 | 8f38d0199b34b31fadd4a840c4f5a418 |
|
BLAKE2b-256 | 1592ad8386b4221e955fae8ff5a75bc5bf0867974cae6ed16cff9798144d4183 |