Replies: 2 comments 1 reply
-
There's some code to efficiently get expected and observed mutational density in all inter-node intervals in tsdate (lacking an API: https://github.com/tskit-dev/tsdate/blob/3c08becf500dac3a422376126e70314064c360fe/tsdate/rescaling.py#L242). But, that's assuming mutations are all equivalent. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to look at mutation rates over time, e.g. rates at different time slices, perhaps broken down by the different mutation types (transversions vs transitions, or triplet contexts).
I think the way to do this is to assign a mutational density to each edge (number of mutations on the edge divided by edge area), and then average the density of all edges that intersect a give timeslice, weighted by the proportion of the edge that exists in the slice.
This is a bit like the coalescence_rate calculation, I think. Has anyone done this before, and is there code to do so?
Beta Was this translation helpful? Give feedback.
All reactions