Simulate an alignment from a known tree
simulate_alignmentSimulate sequences along a specified tree to create a benchmark alignment with known true topology, enabling validation of phylogenetic inference.
Instructions
Generate sequences along a tree you specify, so the true answer is known.
This is the positive control for everything else here: infer a tree from the
output and compare it back with compare_trees. If inference cannot recover
a topology you generated from, the problem is the data or the settings, not
the biology.
Args:
newick: The true tree, with a branch length on every edge.
model: Substitution model to simulate under. A protein model ("LG",
"WAG", ...) simulates protein; pass the output to infer_tree with
sequence_type="protein". alignment.moltype says which it is.
length: Number of sites.
seed: Fixes the simulation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| model | No | JC | |
| length | No | ||
| newick | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | ||
| fasta | Yes | ||
| model | Yes | ||
| warnings | Yes | ||
| alignment | Yes | ||
| true_newick | Yes |