.. _dadi_demo:

====================================
Demo: Running dadi on Simulated Data
====================================

   *Running mini_dadi on simulated genomic data.*

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

   **dadi demo on msprime-simulated data.** Panel A: Observed SFS from msprime vs dadi's diffusion approximation prediction. Panel B: Allele frequency density evolution under the Crank-Nicolson PDE solver. Panel C: SFS predictions under three demographic models. Panel D: Residuals between observed and predicted SFS entries.

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