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
Future warning when trying to find intersection between non overlapping ranges #345
Comments
I can have a look on Monday. Thanks. |
There is no risk here that the object passed in will be changed.
|
@endrebak thank you for looking into this. So what would be the most appropriate way to get rid of this warning? should I just suppress it? |
I am a bit surprised that it shows up. If you look at the code, you see that I turn off the warning. |
yes I have no idea why its still complaining. what pandas version are you using? |
2.0.1 |
@endrebak I see, and do you still get this warning too with the newer pandas version? |
I believe I am seeing this, also, though I'm not sure it is the same FutureWarning. x = pr.read_gtf('test_gtf.txt')
x.features.introns(by='transcript').intersect(x[x.Feature=='exon'],strandedness='same', how='containment') result:
pyranges version info:
|
m using pandas 1.5.0 & pyranges 0.0.127
this warning only arrises when there is no intersection between the two number intervals, for example the following code would trigger this warning:
The part of the implementation that is triggering this warning (inside the pyranges package) is the following segment:
I could suppress this warning however im wondering if I should actually not be ignoring it or if the codes behavior might change at some point in the future.
when I calculate the overlap between the same two ranges I do not get this warning.
can you please help me understand what this warning message would be and if there is a risk for it to mutate any of my ranges gr1 or gr2 in future? Thank you!
The text was updated successfully, but these errors were encountered: