tskit-dev / pyslim

Tools for dealing with tree sequences coming to and from SLiM.
MIT License
27 stars 23 forks source link

allow annotation of non-zero population #251

Closed petrelharp closed 2 years ago

petrelharp commented 2 years ago

When setting up certain situations, e.g., initial diversity for a multispecies simulation, it's necessary to assign individuals to not the default population. There should be an easy way to do this! Perhaps even just a individual_subpopulation argument to annotate_defaults? See https://github.com/MesserLab/SLiM/issues/311.

petrelharp commented 2 years ago

I don't think this isn't necessary (or, don't know the use case) - if you're doing an msprime simulation, all indivdiuals are already assigned to populations. Then on reading in the tree sequence, you can remap them to whatever subpop you want.