.. _tsdate_demo:

======================================
Demo: Running tsdate on Simulated Data
======================================

   *Running mini_tsdate on simulated genomic data.*

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

   **tsdate demo on msprime-simulated data.** Panel A: True vs inferred node times -- gamma posterior means compared to true coalescence times. Panel B: Coalescent prior distributions by descendant count. Panel C: Mutation likelihood functions for different mutation counts. Panel D: Tree span vs number of mutations across the tree sequence.

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