Sailfish — Manual
← Back to app
Sailfish simulates the evolution of a sequence down a phylogenetic tree.
Starting from a root sequence, it applies substitutions and, optionally,
insertions and deletions along each branch, producing a multiple sequence
alignment (MSA) of the resulting leaf (and optionally internal) sequences.
1. Tree input
Paste a Newick-format tree string into the topbar field, or click the
📁 button to load one from a local file. Click Parse to
validate and load it. Once parsed, taxon count and branch length stats
appear at the top of the output panel, and the Run button becomes active.
2. Substitution model
Configured in the right-hand panel:
- Model — the substitution model (e.g. JTT, WAG for protein; HKY, GTR, NucJC for DNA).
- Sequence length — length of the root sequence, if not set explicitly below.
- Random seed — controls reproducibility; same seed + settings = same result.
- Root sequence — optionally provide the exact starting sequence instead of a random one. Its length overrides the Sequence length field. Must match the selected model's alphabet (DNA or protein).
- Model parameters — shown only for models that need them (e.g. HKY needs base frequencies + kappa, GTR needs frequencies + six rate parameters).
- Rate variation — optional gamma-distributed rate heterogeneity across sites, with an optional proportion of invariant sites.
3. Indels
Enable to allow insertions and deletions along branches, in addition to
substitutions. For each direction (insertion/deletion) you can set:
- Rate — probability of an indel event per site per branch length unit.
- Length distribution — Geometric or Zipf, controlling how long each indel event tends to be.
- Max indel length — shared cap on event length for both insertions and deletions.
4. Output
- Include root in MSA — adds the root sequence as an extra row in the alignment.
- Include all internal nodes — adds every internal ancestor's sequence, not just the root and leaves. This implies the root is included too.
- Runs (topbar) — number of independent replicates to simulate. With more than one run, results stream directly to a downloaded FASTA file rather than displaying inline.
For large alignments (over 1000 sites or 100 sequences), rows aren't printed inline —
use the Download button and open the FASTA file in a text editor instead.
5. Continuing in Python
The Export Python button in the topbar generates a script that
reproduces your current model, indel, and output settings using the
msasim Python package, so you can continue iterating or run
larger batches outside the browser. Fill in your tree (newick string,
file path, or Tree object) at the top of the generated script.
6. How to cite
A manuscript describing Sailfish is in preparation:
Sailfish: A sequence evolution simulator Python package and web app.
(manuscript in preparation — citation details to follow)
Source code and Python package documentation:
github.com/elyawy/Sailfish