.. _relate_demo:

======================================
Demo: Running Relate on Simulated Data
======================================

   *Running mini_relate on simulated genomic data.*

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

   **Relate demo on msprime-simulated data.** Panel A: Input haplotype matrix from msprime (12 haplotypes, 200 kb) with the focal SNP marked. Panel B: Relate-inferred pairwise distance matrix from the asymmetric painting at the focal SNP. Panel C: True pairwise divergence matrix from the simulated tree sequence. Panel D: True vs inferred distances (normalized) with Pearson correlation.

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