-
Notifications
You must be signed in to change notification settings - Fork 86
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
Save information about sweep in SweepGenicSelection model #2243
Comments
Yes. I agree, option 2 is the way to go. There shouldn't be much in the way of doing this apart from defining a new |
I'm a bit unclear as to what the node type should represent to be honest, but then my understanding of the structured coalescent is pretty hazy. Let's see if others have thoughts. |
If I understand what folks have been asking for, they wish to know if a node is in the FAVORED "deme" (the one carrying the beneficial allele) or the UNFAVORED "deme" (the wild-type). One could imagine setting a node flag to 1 to represent FAVORED when alleles move into that "deme" and to 0 when they move out of it? |
if i follow, don't we already have this info in the segment label? |
You are right @andrewkern we keep track of that information during the simulation but this is not stored in the tree sequence/tables. |
okay neat. many of the structured coalescent models are time inhomogenous, e.g. a beneficial allele arises at some point, structuring the population past that point forward in time), so the idea of adding unary nodes suggested above is appealing to me to mark potential beginning and end of such phases. maybe the distinction to be made would be between structured coalescent that is induced by mutation (e.g. selective backgrounds, inversions, duplications) versus by migration among demes? |
A few different people have been asking about how we keep more information about sweeps in the SweepGenicSelection. It's not entirely clear to me how we do this, but here are some basic options:
Option 2 seems like the only viable approach to me, and fits in reasonably well with the
additional_nodes
APIs that are just about to drop in v 1.3. So, I guess we'd add aNodeType.LABEL_MIGRANT
or something to keep track of this?The text was updated successfully, but these errors were encountered: