Hi,
I have performed a demographic model simulation in msprime, annotated the tree sequence using pyslim and loaded the sequence back into SLiM. The SLiM simulation works fine with hermaphrodites, but the issue arises when I implement the separate sex in msprime (as described in SLiM document). After loading the tree sequence in SLiM, I can see that there are 5 populations with a sex ratio close to 0.5, which means the sex assignment by pyslim was correct. After the first generation of evolution, SLiM gives an error that the population is unisexual.
Further, in Pyslim individual metadata, I observe that both parents are assigned a value of -1. I wonder whether SLiM is considering no information on parents or selfing when after loading the tree sequence.
I have attached the msprime and SliM code for your reference.
Thanks
Devashish