Special considerations for demes models#

Consider the following demographic model:

../_images/3c5cd5419670b88a614320a370bcfccea616dd4e21069686230b0697d0e22f49.png

This model has three demes. These demes will have integer labels 0, 1, and 2 according to the order that they are defined in the demes graph. This type of model is called a “split” – the ancestral deme splits into two derived.

This setup is convenient because nodes in the output will be labelled by the deme (0, 1, 2 in this case). However, you may need to think a bit harder when modeling effect sizes varying across demes. For example, if you want the effect sizes in derived1 to be identical to those in ancestor, but different from those in derived2, what do you do? The answer is to define a correlation matrix for three demes where demes 0 and 1 have perfectly-correlated effect sizes. See here for details.

An alternative is to define the model as a branch model involving only two demes:

../_images/ef3dfd20ae3ec74cc47f2cd670e78edb17e8d9cb4cce97080fd53a59801befc8.png

The branch model can be simpler to set up as you only need to consider how effect sizes vary between the ancestral and derived environments. The cost is that you lose information at the node level about which deme a mutation maps to, etc..

See here for more on split vs branch models using demes.