--
You received this message because you are subscribed to the Google Groups "msprime-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msprime-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/msprime-users/ef89e806-82f6-4a9c-a1a2-79aa9beb9231n%40googlegroups.com.
Hi Peter,
I am still very much a msprime novice and your suggestion to compute mean individual heterozygosity has confused me somewhat. I gather from reading issue #166 that you originally proposed a method for allowing people to deal with (diploid) individuals.
Thus in your post to https://github.com/tskit-dev/tskit/issues/166 you have a code snippet that says
def mean_heterozygosity(ts):
ind_nodes = []
for ind in ts.individuals():
ind_nodes.append(ind.nodes)
If I get a ts object returned from msprime.simulate, then ts.individuals is basically null. So, I guess I must be missing a step, in which I will create some diploid individuals from my haploid samples. Is this correct? I probably have missed the discussion proper about getting this feature implemented. Any help will be kindly received.
Cheers,
Richard