Empty demes in 2D stepping stone models #2251
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hm - this is confusing. But let's see - from your image, there is a difference between the samples in the tree, so if you compute diversity with Said another way: the total number of mutations separating two samples is Poisson with mean equal to Does this agree with what you're seeing? |
Beta Was this translation helpful? Give feedback.
-
Ah, I was forgetting to set mode="branch" on the tree sequence diversity measure! I was expecting that behavior without setting the option. When I do it, I get a reasonable number for one of them (2522). And I do get a low expected number of mutations (2.5ish), so this makes sense. I'm calculating the per-individual pi in scikit-allel using additional filtering steps to match empirical data as well, so there is a good chance that these get washed out. I guess when using the multiple merger coalescent, G = N^2, so the more recent coalescent times get pushed back at low population sizes, increasing the numebr of mutations. Thanks a ton! |
Beta Was this translation helpful? Give feedback.
Hm - this is confusing. But let's see - from your image, there is a difference between the samples in the tree, so if you compute diversity with
mode="branch"
, then you should get non-zero diversity (right?). If so, then does zero diversity just mean that those samples happen to not have any mutations on the branches betwen them? You can check this by counting number of mutations usingts.diversity(..., mode='site', span_normalise=False)
.Said another way: the total number of mutations separating two samples is Poisson with mean equal to
mut_rate * ts.diversity(..., mode='branch', span_normalise=False)
; if that is not a large number, then there's some reasonable chance the number of mutat…