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
Check for when to simplify should not skip the first generation? #624
Comments
Confirmed against current main/dev branches. Thanks @apragsdale -- will investigate further! |
What @apragsdale's example is seeing is due to the following:
The best thing to do is to fix the issue described in 3 above. The effect will be to shift simplification to 1 generation earlier with respect to pop.generation. This change has the potential to change output for some seeds because of the coupling of simplification and mutation recycling in infinitely-many sites models. |
With the changes in #627 and a change to the frequency tracker, I get the following:
|
Using the mutation tracker found here (https://github.com/molpopgen/fwdpy11_frequency_tracker, in the "efficiency" branch, and fwdpy11 version 0.11.0), and using the attached script to track both selected and neutral mutation frequencies, there is some strange behavior at the boundary of switching from burn-in generations to tracking generations. During burn-in, the simplification interval is 100, and then we switch it to 1 when tracking neutral mutations. However, we have to switch a few generations before burn-in is finished, because otherwise the longest neutral mutation trajectories are shorter than the longest selected mutation trajectories. We need to switch at least two generations ahead of time, it looks like.
selection_example.txt
Below, note the trajectory lengths for selected vs neutral mutations depending on that burnin buffer
The text was updated successfully, but these errors were encountered: