Replies: 4 comments 7 replies
-
I can imagine wanting to be able to keep a simulation where the simulation length has finished but the mutation is still segregating, so that it's incomplete in the sample. Perhaps criteria for a minimum frequency of the selected mutation (in a given deme) at the end of the simulation? Otherwise, flexibility in checking which demes the mutation is fixed in (or meets whatever stopping/restarting criteria) in multipopulation settings would be very nice. |
Beta Was this translation helpful? Give feedback.
-
Personally, I would say keep the simulation running unless the mutation has disappeared. I don't see a good reason to impose that a sweep is complete. I do want to avoid the situation where the beneficial mutation appears and then is immediately lost, but that does not require imposing fixation. |
Beta Was this translation helpful? Give feedback.
-
Quick follow up: I've made a lot of progress over in #828. I've run into a couple tricky issues, as this feature is bringing some undocumented options into heavier use, meaning I'm finding some bugs in these murkier corners. |
Beta Was this translation helpful? Give feedback.
-
@sgravel, @apragsdale, @BCFZzw -- I just release 0.17.0 alpha 0, which has the draft of this new API. Please give it a spin and leave comments in #854. |
Beta Was this translation helpful? Give feedback.
-
PR #828 is adding a new function,
fwdpy11.selective_sweep
. I'm opening the floor here to discuss what features interested parties would like it to have. In the long run, we have to balance API simplicity with generality, but we can definitely discuss options right now.There's no timeline in mind for merging #828. There are issues related to "unwinding" data structures when mutations are lost, and so a lot of testing will be needed prior to a merge.
cc @apragsdale @sgravel @BCFZzw
Beta Was this translation helpful? Give feedback.
All reactions