Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

msasim-2024.5.2720-cp312-cp312-musllinux_1_1_x86_64.whl (957.7 kB view details)

Uploaded CPython 3.12musllinux: musl 1.1+ x86-64

msasim-2024.5.2720-cp311-cp311-musllinux_1_1_x86_64.whl (960.4 kB view details)

Uploaded CPython 3.11musllinux: musl 1.1+ x86-64

msasim-2024.5.2720-cp310-cp310-musllinux_1_1_x86_64.whl (959.3 kB view details)

Uploaded CPython 3.10musllinux: musl 1.1+ x86-64

msasim-2024.5.2720-cp39-cp39-musllinux_1_1_x86_64.whl (959.4 kB view details)

Uploaded CPython 3.9musllinux: musl 1.1+ x86-64

File details

Details for the file msasim-2024.5.2720-cp312-cp312-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.2720-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 4961115b2f70619a45e9ad4671f5c7abe569460009396c10e99623d920beaad6
MD5 beb872a909a07646a0439ee735987154
BLAKE2b-256 1159991255d50f5764cb293d43f88087e86f017f049acb296cfa5d9146e2a44b

See more details on using hashes here.

File details

Details for the file msasim-2024.5.2720-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.2720-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 de598033a55e9c6c01e9a64928a7821d5f148c20e5b12e0f0c49b0e10de3e5cf
MD5 d7c25331d8cb8070d460bc49df3fa9d1
BLAKE2b-256 dd8d7da11b357d8e3b1ea71309befb24ac1335e91aab4cb96c0f8da6a48c494f

See more details on using hashes here.

File details

Details for the file msasim-2024.5.2720-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.2720-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 690566c7dbcc6d6d3d567c001d476418118e48ee87b511481957e0edfefb5c3b
MD5 282ce4109f24ac758da41ba46b9c9c29
BLAKE2b-256 0d17b2a78a78c50118686ba89f2da8bf3787ee920d7cd3b03d018b9bd060f210

See more details on using hashes here.

File details

Details for the file msasim-2024.5.2720-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.2720-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 b28e3ddc7e16ecb2ef2e4c2501d573d66c5ed062865a6d5ba33f58f7e9103be7
MD5 07067b01e92944008e1fb5ee42f911d9
BLAKE2b-256 b6ec91089d23a90e6324bff7afd771089ec0ae56a90747ea97f3cf4628d7037f

See more details on using hashes here.

Supported by

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