gravelLab / tracts

A set of tools for modelling ancestry patterns along the genome.
GNU General Public License v2.0
22 stars 14 forks source link

Add demes support #13

Open sgravel opened 3 years ago

sgravel commented 3 years ago

Specifying demographic models is always a bit of a pain in tracts. It would be easier is we could specify demographic models using the demes specification. For this, we will need: -To port tracts.py to python 3 -To add a function translating a yaml file to a migration matrix. (this could be done in tracts or in demes) -Find a way to parameterize models in the yaml file (i.e., we want to build a function that takes in parameters and a yaml model and outputs a migration matrix. I think the we can draw inspiration from the demes support in moments.

sgravel commented 3 years ago

Demes-moments support is documented here