-
Notifications
You must be signed in to change notification settings - Fork 28
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
Overlap point segment patch #183 #184
Overlap point segment patch #183 #184
Conversation
this may break desired behavior of subtract-- let's try to write the subtract tests and see if they pass. If they do not, the place to think about modifying the code may be with the searchsorted for points: https://github.com/open2c/bioframe/blob/424d3a1609f960612591bcf04a2e3a983874d99c/bioframe/core/arrops.py#L333C1-L338C85 |
expected behavior of subtract is contained and extra test cases added for subtraction operation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems legit to me! It's a nice solution, hacky but not too much.
There would still be no overlap between ('chr1', 1, 2) and ('chr1, 2, 2), right? (maybe worth adding a small test, since our intervals are explicitly semi-open?)
functionality added:
tests for overlap added:
tests for subtract added:
closes #183 |
This PR addresses Issue. Overlap operations between point and segment is fixed.
Result :