A fast MSA simulator
Project description
Sailfish
Sailfish is a performant multiple sequence alignment(MSA) simulator, written in C++ and Python, allowing for quick and easy generation of large simulated datasets.
Project goals
- Ease of use
- Speed
- Modularity
Installation
pip install msasim
Example
from msasim import sailfish as sim
from msasim.sailfish import MODEL_CODES, ZipfDistribution
ROOT_SEQUENCE_LENGTH = 100
sim_protocol = sim.SimProtocol("(A:0.5,B:0.5);",
deletion_rate=0.01,
insertion_rate=0.01,
deletion_dist=ZipfDistribution(1.08, 50),
insertion_dist=ZipfDistribution(1.08, 50),
seed=50)
sim_protocol.set_sequence_size(ROOT_SEQUENCE_LENGTH)
simulation = sim.Simulator(sim_protocol, simulation_type=sim.SIMULATION_TYPE.PROTEIN)
simulation.set_replacement_model(model=MODEL_CODES.WAG,
gamma_parameters_alpha=1.0,
gamma_parameters_catergories=4)
msa = simulation()
msa.print_msa()
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
msasim-2024.5.221247.tar.gz
(17.5 kB
view details)
File details
Details for the file msasim-2024.5.221247.tar.gz.
File metadata
- Download URL: msasim-2024.5.221247.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8abf9bec90db7a48fcd49c920c1f4027b74bc3bba84e2bd03ba46f5a08d1c6b6
|
|
| MD5 |
6ddcd2fb4de43bddcc4bb7dde55a9135
|
|
| BLAKE2b-256 |
2d2ee06f6a3421fd3ba26863a9f2101d7c666f8392c3fcc6181243e2b20691f4
|