Skip to main content

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

mutalyzer-mutator-0.0.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page