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

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

msasim-2024.5.221251-cp312-cp312-macosx_11_0_arm64.whl (347.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

msasim-2024.5.221251-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (433.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

msasim-2024.5.221251-cp311-cp311-macosx_11_0_arm64.whl (347.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

msasim-2024.5.221251-cp37-cp37m-win_amd64.whl (235.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

msasim-2024.5.221251-cp37-cp37m-macosx_10_9_x86_64.whl (376.7 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file msasim-2024.5.221251-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221251-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2fb1629c3b438c947b171a0078392d17ab3662153dcf779c345f7f6bdc1018b0
MD5 f0c46c97649e0d5b93500f0cf3dd16d8
BLAKE2b-256 6811d8ae0b96c1278765bf94939ca4944fe1bd89fe107a9ab3eefe3b7bc424bd

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221251-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221251-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23e731ac4c0a75ebc25b821fb05771959cd732993692b2af14fef7a09ead4f65
MD5 50c4e2929317b715065357eae8f87700
BLAKE2b-256 6594d244cd1e684dc201d6ce8920cde85f4d7c0a9c8f6c364965e8fe340405fe

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221251-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221251-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7370309cd5720cdab01f6fd7ab705ce560225e102d2719677b407fc5d669a6ba
MD5 b4ceacd71d14b21c2f933cb8078e1d38
BLAKE2b-256 bfc552321f6bca982a4116fcf94b9029ddce4a05c8748e167f547b5f30726801

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221251-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221251-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8162ca6342df74e0f6a3e747e1f058cd78eb89c50338399ff2224c18a4015b99
MD5 417c4a3ffd31b96ff49fc4e6bbc6eff2
BLAKE2b-256 fc9f5f522a8b33a3eb55956e420a73bdb6678af1b0c9fda847d6acdbfe8fec62

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221251-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221251-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 7eed79aba30dcf77282be783b961f6dfd40eb604c7a0f261523c82560798372d
MD5 5078b4d4c18c34c54b25f274eb012549
BLAKE2b-256 dc00bd96faedac3e1525ac347a8a9eee35df1e1f5b96b0ffafaade75c02a3ac9

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221251-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221251-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c3a2de6460bf6fe4ce36f97e8c19ee3748838097a5cea7b78300e65a7a03320d
MD5 df4d860395393b550b12082f2d5efd63
BLAKE2b-256 1fb7302d7adce4fbae643f0a67947be4f608f3db9bb050776a28a6749a3866b2

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