-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected behavior with -es and selection #41
Comments
Not sure i follow. In pastward time a split (-es) with a 0.1 chance On Tue, Jun 9, 2015 at 6:25 PM, BenjaminPeter notifications@github.com
I have no special talents. I am only passionately curious. |
OK, I try to spell out my expectation for the split (-es), to hopefully make things clear: Backward in time:Population 1 splits into two population X and Y. Forward in timePopulations X and Y merge into population 1, and population 1 is made up of 90% individuals from Y and 10% individuals from X. Now, at the split time, the frequency of the selected allele in X is Now, obviously these models for the frequency differ from each other, however as trajectories are simulated forward in time, I was expecting the mixing I described. Currently, the mixing proportion is |
When using the
es
flag to split a population, the allele frequencies of the trajectories are not averaged as I would expect. I.e for the command at the end,A
is fixed in population 2 and absent from population 1. Then A receives 1% of immigrants (-es
), and the allele frequency becomes ~0.5, when most people would probably expect a weighted mean, i.e an allele frequency of around 0.01Edit:
OK, I found that weighting is done using population sizes, not split proportions. So, using a split flag of
solves the issue, but the behavior is still somewhat surprising, and perhaps could be mentioned in the manual.
The text was updated successfully, but these errors were encountered: