-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add delete_sites table function #364
Conversation
Do we also want this as a tree sequence function? I.e. do we want to be able to do |
e3f890c
to
6be1475
Compare
Codecov Report
@@ Coverage Diff @@
## master #364 +/- ##
==========================================
+ Coverage 86.5% 86.52% +0.01%
==========================================
Files 20 20
Lines 14049 14069 +20
Branches 2747 2749 +2
==========================================
+ Hits 12153 12173 +20
Misses 977 977
Partials 919 919
Continue to review full report at Codecov.
|
I've updated this to simplify the interface (it's just adding complexity for no real gain supporting boolean selector arrays) and to add some tests. The existing tests were weak. There's a bug to be fixed when we have multiple mutations. |
Right
Do you want me to do this? |
Yes, if you want the PR merged. |
This should pass once #366 or equivalent is merged |
Good fix, can you rebase please. |
d57104b
to
ae96151
Compare
Rebased. I think the fact that I got the parent mutations mixed up (I assumed they contained node IDs, not mutation IDs) is a good argument for merging this, rather than relying on people to cook up their own, potentially buggy, equivalent. |
ae96151
to
621ea8f
Compare
OK, I think this is ready to merge. I've added some clarifications on the ordering requirements for IDs (there are none) and what happens when we have duplicate IDs. |
This is great! We will have use for this. :yay: |
@petrelharp - great. I think some of the code in keep_intervals / delete_intervals might be simplified by calling this function too, if we want to reduce code duplication. |
Fixes #363