The sim.mutationFrequencies did not produce the output I expected. In the mutations property of genomes, it is returning each mutation when it originates. Some of these mutations are in the same position, so this should be considered when the allele frequencies are calculated. However, the sim.mutationFrequencies appears to be calculate the frequency for every element in genome.mutations (meaning that mutations at the same position are treated separately for allele frequency calculation if they arose at different times in the simulation). This didn’t make sense to me. I should think that allele frequency calculation should be based on position and when the mutation arose is irrelevant. Am I missing something?
The reason I worry is that on page 119 of the users manual, these frequencies are used in an example for calculating FST. But this calculates FST for each independent mutation, even though some of these arose independently at the same position. In "real" data, we would calculate FST based on the observed alleles at each position, and wouldn't know whether or not those arose independently.
Also, I think there is an error in the FST calculation on this page, I think it should be pq = p1_p * (1 - p1_p) * 0.5 + p2_p * (1 - p2_p) * 0.5;
--
SLiM forward genetic simulation: http://messerlab.org/slim/
---
You received this message because you are subscribed to the Google Groups "slim-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to slim-discuss...@googlegroups.com.
To post to this group, send email to slim-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/slim-discuss/f5481869-ce3b-49d2-ada1-93fa7737a2d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.