Open apragsdale opened 2 months ago
I meant to say, I'm happy to dig into this and open a PR with a fix. I think it will be pretty simple.
I meant to say, I'm happy to dig into this and open a PR with a fix. I think it will be pretty simple.
Awesome! A nice way to deal with this would be to allow a time
specification for samples also, perhaps by allowing a SampleSet?
A population can have an activation time that is greater than zero -- for example, to sample ancient individuals. When using the demography debugger's
coalescence_rate_trajectory()
function, specifying lineages from that population has the unwanted behavior of allowing coalescence prior to the population's activation time. This means that the reported proportion of coalesced lineages can be less than 1 before the sampling time of that population.For a demography built from
demes
, the population size is set to zero prior to activation, which leads to unreasonable outputs. There also seems to be some strange behavior with cross-population coalescences that I haven't gotten to the bottom of yet.A short example:
This also shows some strange outputs when asking for cross-coalescence rates: