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.221254-cp312-cp312-win_amd64.whl (237.3 kB view details)

Uploaded CPython 3.12Windows x86-64

msasim-2024.5.221254-cp312-cp312-macosx_10_9_x86_64.whl (380.4 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

msasim-2024.5.221254-cp311-cp311-win_amd64.whl (236.7 kB view details)

Uploaded CPython 3.11Windows x86-64

msasim-2024.5.221254-cp311-cp311-macosx_10_9_x86_64.whl (379.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

msasim-2024.5.221254-cp39-cp39-musllinux_1_1_x86_64.whl (952.8 kB view details)

Uploaded CPython 3.9musllinux: musl 1.1+ x86-64

msasim-2024.5.221254-cp38-cp38-musllinux_1_1_x86_64.whl (952.7 kB view details)

Uploaded CPython 3.8musllinux: musl 1.1+ x86-64

File details

Details for the file msasim-2024.5.221254-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221254-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7356a24c62c7d0a35cff420a70a2c8217f6799ef19db2770acc7fb7f44bff25c
MD5 570e529f013db3525045ea3cf4376e91
BLAKE2b-256 27db0cbcc2f6c8519d004a32c730c0653240d172318ceb51db74d1cc37016240

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221254-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221254-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3c13d2c128d2e30b7766890a01943316b9a0f1609b37bd2691f67673633b3e92
MD5 ed19f5b697b316e73c5b4d4e5e215e9a
BLAKE2b-256 439c6a6e268dda87629cc04f2d97cb991008c3a1913d9fe3d137ca78ef2b7c1d

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221254-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221254-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d24fa27ac99919b90ec5b59b40b807183b6e5cad4fd9b168bcb5a5269ddceda2
MD5 a65cfab185aeb23186bc99ec769cfa6d
BLAKE2b-256 e2d4a7d0afb8eda4a5deeceb335e13351d047817ee63881796d074afec473fe0

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221254-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221254-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8482502988d15adc6ebe332c30fbab1b0ca22ebdf8290a36fd40223681df7e56
MD5 19d5454e6781582171baf124d8af9733
BLAKE2b-256 fe836f8f6d479ca707ae521241bd9e87a7c9060c9780bda116fd395dd4704fce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for msasim-2024.5.221254-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 91f270235d82ba9ee586827447448a7e0875867f81af13f8da81568f88b31de9
MD5 b1d1d8d4182bc03c3959fbefda6fee1a
BLAKE2b-256 7a9c362d1f4133f9a254f77d2689016069e481626e8072ccedc7024ff529314a

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221254-cp38-cp38-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221254-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 0ac6ade443827d9dbafa333194842863845ca33e6778a314b8672b56e97ff4ae
MD5 287c9bb0b9dd06d8268b69ea5ad97a62
BLAKE2b-256 2f42d4edefe0c0f836f9edfdc8abf826e0f6c6097e9f31dd53113834b3263b92

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