.. _threads_demo:

=======================================
Demo: Running Threads on Simulated Data
=======================================

   *Running mini_threads on simulated genomic data.*

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

   **Threads demo on msprime-simulated data.** Panel A: Segment age estimates using recombination-only MLE on IBD-like segments extracted from the true tree sequence. Panel B: Bayesian age posteriors incorporating mutation information. Panel C: Full Bayesian estimates with both recombination and mutation evidence. Panel D: Piecewise-constant Bayesian estimates under a demographic model.

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