msprime
Coalescent simulation with recombination and mutation (Baumdicker et al. 2022), running msprime in Python in your browser through Pyodide. Simulate a sample, then read its diversity, Tajima's D, the site frequency spectrum and the first marginal tree.
Starting…
Summary statistics
| Statistic | Value | Constant-size expectation |
|---|
Diversity and θW are per base pair. Expectations use θ = 4Neμ.
Site frequency spectrum (unfolded)
First marginal tree
Leaves are sample node IDs and internal labels are node IDs. Text drawing: branch lengths are approximate.