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.221252-cp39-cp39-win_amd64.whl (235.7 kB view details)

Uploaded CPython 3.9Windows x86-64

msasim-2024.5.221252-cp39-cp39-macosx_10_9_x86_64.whl (378.7 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

msasim-2024.5.221252-cp38-cp38-win_amd64.whl (235.7 kB view details)

Uploaded CPython 3.8Windows x86-64

msasim-2024.5.221252-cp38-cp38-macosx_10_9_x86_64.whl (378.6 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

Details for the file msasim-2024.5.221252-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221252-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 709c7559552852edba2b819c19bf6ef3ff4619037ac7d5736d310986e9b95bc7
MD5 e4a30c85f3f312e4d8bbf5c00169d87c
BLAKE2b-256 6cdcf731044f77dadfe7f938e15f06ebce05fd7821d50c85683519a79a5a4702

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221252-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221252-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3106882c6ff4bd8310efcdd64c51b59831e535640e3684954917f7f7b18180ba
MD5 71e2223ed65218a8f66c19bf6be99498
BLAKE2b-256 b38300a3714c639081593a2d192bcb3eaaa94d4efe8f7ddf25db222501dab96f

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221252-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221252-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e942f0e15bc8a8534bc585e10039694d17a3e57f2f486e29d84f385cac90bf99
MD5 e884f0da010d506830210c85ff70c48d
BLAKE2b-256 823769296bb99861cd00a0d186e03f915251106034c93822db60eacde02f24ee

See more details on using hashes here.

File details

Details for the file msasim-2024.5.221252-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for msasim-2024.5.221252-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fe72c09fe2b0b9b484e2b8fd632e863efcfdbe5ceb1e2995bc49b60bd00176a2
MD5 7da069cb99f9ef069565eecf570dd02c
BLAKE2b-256 24290cd8e4e5af82699ab90f64479e20b41b3363bdb902cccb9a2c2c21bdf3ce

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