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.221250-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (432.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

msasim-2024.5.221250-cp310-cp310-macosx_11_0_arm64.whl (346.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

msasim-2024.5.221250-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (432.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

msasim-2024.5.221250-cp39-cp39-macosx_11_0_arm64.whl (346.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

msasim-2024.5.221250-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (432.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

msasim-2024.5.221250-cp36-cp36m-win_amd64.whl (236.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

msasim-2024.5.221250-cp36-cp36m-macosx_10_9_x86_64.whl (376.6 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file msasim-2024.5.221250-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221250-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 117704980c39a53da6fc8db7d293083144dc665dd07aa790163856af873c7d63
MD5 e1eff7b1559f488034dd63e401ce1f51
BLAKE2b-256 15c4a9e70e591ad47bca56fe8c0d53e71ebf9b8f4b4441f0ed054bfc971e2fae

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221250-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221250-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1112969d8ca13e69273e97fda72a09a32e3e878b8de268c82030d987002af7f3
MD5 5ae7a021594fdf71e8c7e984781975e1
BLAKE2b-256 b9aa6037c852deffb67875f335c0fc96093cddcd9115db969a662a11c946f9b9

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221250-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221250-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3384baf7ed6e1c941e37ae53b9927921f5e017d28a7876f2cb10be7d89303647
MD5 152a15b6056170df8f9085dbcb74cc33
BLAKE2b-256 0cf5e1d092712e662d6b4e252b602709b8fa706dd0d67e0f43628c315b29133e

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221250-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221250-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9bd09b6c0f20819e2703fd4a9d4bba11cb8ebb63156117687e6d64c42a62a59
MD5 d39be47ba1ad6a187d520a4b96cda7e1
BLAKE2b-256 271fadaa407514a27363cd7308e5f05ea441dce772da821dcda41426cccbfb19

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221250-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221250-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dd217cf42a7ba3c1ffa5d2b1c3657453ef33ed0f48608932f678c44860e96e0f
MD5 8d0a6955d22b5dcf9967b0a239a62382
BLAKE2b-256 3c4db6a75999340946200325e18ca195d6e67068558717a38a85a8ec74182f53

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221250-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221250-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 0aee200a20dcc6059b46799e8f186be668255a0be316c80a956fe699a294012f
MD5 012eeb6f99f7c12274e54f4aa698e1bb
BLAKE2b-256 734743adf791ff4956c5dbbdee59859889463569120826febc0f8d0be1e58816

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221250-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221250-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8c2b5e1495462af7c7351ef62fbe5aad53a7a5f0d7b992275516f04c6fd3d796
MD5 3ab087829469f77d13bd5f924d4e913d
BLAKE2b-256 9f509912b75b3f32cf77fadb359a90af9ff998e66be224d0fbb50b84923b9469

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