-
Notifications
You must be signed in to change notification settings - Fork 3
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
add in multiple merger coalescence events #23
Comments
Having thought about this a bit more, there are quite a few separate issues.
|
Yes, I am interested in implementing a multiple-merger coalescent model. To be more specific, I am thinking of a 'continuous' version of the sweeps in time model, where the time between sweeps at a coding site is exponentially distributed. Then, for a focal neutral locus on the same chromosome I would (somehow) integrate over all coding sites and their recombination distances from that locus. This should yield a multi-merger coalescent where the rate of k lineages merging would depend on the distribution of recombination distances from coding sites, the rate of beneficial mutations, and the selection coefficient of those mutations. A similar coalescent model has been described by Durrett and Schweinsberg (2005) with beneficial mutations distributed uniformly across an infinitely long chromosome. Having said all that, all agemo would need is a general multiple-merger event class, where the user provides a probability distribution for k of n lineages coalescing. This could be a beta distribution, a uniform distribution, or whatever. Happy to chat more about this |
Cool, sounds interesting. You want to model recurrent sweeps happening at some rate and resulting in a multi-merger. The time in between these phases should be governed by a regular coalescent I assume. We should probably try and make sure that the fully custom case can be simplified to for example the beta-coalescent. Like in the coalescent model described by Durrett and Schweinsberg, most (non-haploid) multi-merger coalescents will allow for multiple simultaneous multi-merger events. This is very similar to the Yule-process-based way of modelling the effect of a sweep. Let's see if we can coordinate with @DerekSetter and find where there is overlap between the discrete sweep we want to get into agemo as well. |
We can add an argument that specifies the number of lineages that can coalesce. Regular coalescence events would have a parameter equalling 2.
The text was updated successfully, but these errors were encountered: