Skip to content
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

Open
GertjanBisschop opened this issue Jan 6, 2024 · 3 comments
Open

add in multiple merger coalescence events #23

GertjanBisschop opened this issue Jan 6, 2024 · 3 comments

Comments

@GertjanBisschop
Copy link
Member

We can add an argument that specifies the number of lineages that can coalesce. Regular coalescence events would have a parameter equalling 2.

@GertjanBisschop
Copy link
Member Author

Having thought about this a bit more, there are quite a few separate issues.

  1. the ability to merge multiple lineages in a single step, this should not be exposed to the user.
  2. modelling multiple merger coalescences: for each step 2 up to infinity lineage can coalesce. Each of these events will have their own rate (see beta -coalescent for example). Is this what you where thinking of @A-J-F-Mackintosh?
  3. A single discrete multi-merger event (this is akin to the sweep scenario).

@A-J-F-Mackintosh
Copy link

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

@GertjanBisschop
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants