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.221253-cp310-cp310-win_amd64.whl (235.6 kB view details)

Uploaded CPython 3.10Windows x86-64

msasim-2024.5.221253-cp310-cp310-macosx_10_9_x86_64.whl (378.7 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

msasim-2024.5.221253-cp37-cp37m-musllinux_1_1_x86_64.whl (952.3 kB view details)

Uploaded CPython 3.7mmusllinux: musl 1.1+ x86-64

msasim-2024.5.221253-cp36-cp36m-musllinux_1_1_x86_64.whl (952.2 kB view details)

Uploaded CPython 3.6mmusllinux: musl 1.1+ x86-64

File details

Details for the file msasim-2024.5.221253-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221253-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e8e26015fd2ca03cd772fda90a838ff70be60a6a4550779ac626e2086ca2abcb
MD5 b2726e6ab403f9e76ef8f9a366d13a54
BLAKE2b-256 423afe6258eb1ddfea8f76a567e9b65136fe47de9c958d121437a215e0e24860

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221253-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221253-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6c518c5ab3ea616bad2f67adec3622d3919b0073aa66fc57592e353e3f1e5325
MD5 2d0efb3210c7e50255ea10e80328dda1
BLAKE2b-256 cce7f17c9e61416b2d499435d213cb54069096da41d2d5bf9548c30efd73c7e5

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221253-cp37-cp37m-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221253-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 89d25c6f45d03a85b6ae0c08e62bb283e50b324db7eb0e13a3026a47508270ff
MD5 de935622c7bd4b362f5b3590a4b0a50f
BLAKE2b-256 a4884494ede48c1c7731ff0c434150716ae7b6d04d595ada31cb8108fe26f445

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221253-cp36-cp36m-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221253-cp36-cp36m-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 c8c4a359d61c617e376598d17714224e901142ddcad38bbf9d50bd49a43830d2
MD5 b24ce025ecff21e2c4e63fb8c156f3ea
BLAKE2b-256 7ede073637a0bb1a7541b4402fdfbc61a7223f636f31c586c6f3e5092f760d4b

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