Repository navigation
Replies: 7 comments
|
Gil has suggested a couple of ways forward:
With (2), we can also take into account the fact that during the ancestor building process we have information (i) about likely breakpoints (each time we detect a conflict and evict a sample from the building algorithm) and (ii) about the likelihood of this being a real ancestral fragment from which copying could occur (this probability will extend over longer regions, rather than being localised to a single recombination hotspot, and should be is lower to the extreme ends of the fragment) Both of these rely on #154 |
|
Just to document here that the current L&S algorithm doesn't take account of anything apart from haplotype compatibility - not even length between variant sites. |
|
For reference, one implementation of the HK algorithm is at https://github.com/RILAB/rmin_cut |
|
Here's an updated way to draw this pathological case in a Jupyter notebook using the new SVG drawing routines: giving something like the following: |
|
I think this paper might show how to use a pBWT approach to identify the possible breakpoint regions, which we could feed to the recombination map: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7008532/ |
|
Perhaps a better approach here would be to record both the leftmost and rightmost possible breakpoint positions from the HMM. We could commit to using a particular breakpoint for the purposes of creating a tree sequence for compressing the likelihoods, but gradually narrow down the breakpoint if we get an overlapping one with identical parents within the same region. This is a fairly complex algorithm, and it would be good to sketch it out both on a board and possibly templated with pseudocode or e.g. using Duncan's lshmm. |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Tsinfer often creates too many breakpoints, even in genomic regions where there should be no conflict. A simple test case can be generated like this:
Here's what the trees look like, true trees on the left, inferred on the right:
I'm using this issue to collect thoughts & discussion on how to solve the problem.
All reactions