.. _msprime_demo:

=======================================
Demo: Running msprime on Simulated Data
=======================================

   *Running mini_msprime on simulated genomic data.*

.. figure:: /_static/figures/fig_demo_msprime.png
   :width: 100%
   :align: center

   **msprime demo.** Panel A: Simulated TMRCA distributions under different effective population sizes, matching the expected exponential scaling. Panel B: Site frequency spectrum from coalescent simulation vs the classic neutral expectation. Panel C: Genotype matrix visualization from a simulated tree sequence. Panel D: Fenwick tree performance scaling demonstrating the logarithmic query time.

This figure was generated by running the ``mini_msprime`` implementation
on data simulated with ``msprime``. The script is at
``figures/fig_demo_msprime.py``.
