Alternation of Generations Model - trouble with subpopulations #192
-
Hi again, I am using an alternation of generations model in SLiM, which passes individuals between two subpopulations (p0 and p1 in my case). In generation 1 diploid sporophytes live in p1 and produce haploid gametophytes directly into p0, then the sporophytes die. In generation 2 the gametophytes then reproduce and place new diploid sporophytes back into p1 then the gametophytes die. This seems to cause problems at the recapitation step in pyslim, because half the nodes are assigned to Population 0 and half are assigned to Population 1, but they really should all be treated as the same population by msprime. Any suggestions for how to proceed would be greatly appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Good question! Let's see - I imagine you're doing something like is described here: |
Beta Was this translation helpful? Give feedback.
Good question! Let's see - I imagine you're doing something like is described here:
https://tskit.dev/pyslim/docs/latest/tutorial.html#recapitation-with-more-than-one-population
... is that right? I'd like to see what code you're running to get those errors. And, it sounds like what you'd actually like to do is to merge the two populations into one for the recapitation step, which we could do with an msprime
population_split
- I'd be happy to suggest how to do this, but it'd help to see what you're doing, first?