-
Notifications
You must be signed in to change notification settings - Fork 23
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
Inconsistencies in overlap behavior? #14
Comments
Thanks for reporting. NCLS is not meant to be used with negative positions though. What is your use-case for that? I guess I should add a check to see that no negative numbers are used. |
Yeah, it seems that I don't actually have a use-case for negative numbers; I'm using NCLS for biological purposes, as it seems it was somewhat intended for. However, this inconsistency simply came up in my testing. I reported it because I thought it was rather strange. I would suggest that regardless of whether negative numbers are supported or not, |
I completely agree and I am happy you reported it. I actually only use the vectorized functions because they are so much faster. |
Huh, I guess maybe I should be using |
Yeah, if you have lots of queries represented with starts and ends in a
vector, that is faster :)
…On Wednesday, July 3, 2019, Rohan Vanheusden ***@***.***> wrote:
Huh, I guess maybe I should be using first_overlap_both and then just
checking for results in the interest of speed. Although, that doesn't lend
itself too well to readability.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#14>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEHURUTMKASSQUOTU5MCCLTP5TPWPANCNFSM4H4V22XQ>
.
|
Hi there,
I was doing some testing and it seems that there are some inconsistencies in how NCLS defines overlaps?
Given the following code snippet...
...the following results seem inconsistent:
As shown above, though
-1, 0
is reported as having an overlap (usinghas_overlap
), the same query interval fails to find an overlapping interval in the tree (usingfirst_overlap_both
).There also seems to be some inconsistencies regarding, perhaps, the treatment of intervals containing
0
?Given this snippet...
...it seems odd that
-1, 0
matches0, 10
(presumably) while19, 20
doesn't match20, 30
.The text was updated successfully, but these errors were encountered: