Draft
Conversation
Member
|
Looking good on a quick look through! Will have a proper look soon. |
Member
Author
|
No rush - I'm just pushing here to be able to refer to it and for discussion when we're interested. |
f907061 to
2a7a848
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #830 +/- ##
==========================================
- Coverage 86.44% 0.00% -86.45%
==========================================
Files 18 6 -12
Lines 5651 2637 -3014
Branches 896 640 -256
==========================================
- Hits 4885 0 -4885
- Misses 593 2637 +2044
+ Partials 173 0 -173
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Member
Author
|
I'm bringing this branch up to date now with the intention of merging in as soon as it's usable. |
a774ed3 to
679cd8c
Compare
from tree_sequence_builder and workign directly on the tree sequence instead. Initial dump of required HMM code First steps - isolated code works with shim Builder class Some more tests Remove TreeSequenceBuilder g Fake the sortedcontainers API for now Fully move to sorted lists of edges. Stuff Partial Abstract out the MatcherIndexes class Pull out stuff necessary for static match Compiling version without tree_sequence_builder Partway through getting C tests running add test dataq C code working and some tests Factor out the "output" struct in matcher Some basics for new Matcher infrastructure compiling with lwt interface partial update to use table collection Convert C code to use tables Roughly working Python-C infrastructure Add basic debug support to the MatcherIndexes Basic Python-C linkage works :hooray: Basic high-level infrastructure for matching Rename file Refactor the Matcher infrastructure Improve class infrastructure Add vestigial root automatically Fix up tests to remove hard-coded virtual root Work on making matcher work with edges not on site values Roughtly working version with edges on genome coords Python version looks like it's working Add sites_position storage and coordinate_t type Matching working in C (looks like) Infer start and end from haplotype Rough implementation of flank skipping Change python code to use coords in path Implement coordinate paths in C Implement some cludges to support initial zero site-paht Minor updates Sort-of working driver script Fiddle with some tricky issues Rename the test file to avoid collisions
16 tests across 4 hand-crafted tree topologies (star, binary, two-tree, deep chain) with exact path and mutation assertions from the current AncestorMatcher. These serve as regression tests when swapping to MatcherIndexes / AncestorMatcher2.
Update the AncestorMatcher2 Python wrapper so find_path accepts the same (h, start, end, match_out) arguments and returns the same (left, right, parent) tuple as the current AncestorMatcher. Remove Path, Match, find_match and zero_sites_path from matching.py. Move Path and Match to test_lshmm.py where they are used by the Python reference implementation.
679cd8c to
3cbd349
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just posting here for discussion, definitely not ready for merging any time soon.