.. _singer_demo:

======================================
Demo: Running SINGER on Simulated Data
======================================

   *Running mini_singer on simulated genomic data.*

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

   **SINGER demo on msprime-simulated data.** Panel A: True marginal trees along a 50 kb region. Panel B: SINGER emission probabilities for match/mismatch allele patterns as a function of branch length. Panel C: PSMC-like transition density for different source times. Panel D: Tree height vs total branch length for the true marginal trees.

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