.. _momi2_demo:

=====================================
Demo: Running momi2 on Simulated Data
=====================================

   *Running mini_momi2 on simulated genomic data.*

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

   **momi2 demo on msprime-simulated data.** Panel A: Observed SFS from msprime vs momi2's W-matrix prediction using coalescent expected sojourn times. Panel B: Visualization of the Polanski-Kimmel W-matrix. Panel C: Expected sojourn time with j lineages for different epoch durations. Panel D: Moran transition matrix structure.

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