You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting. I agree, that except (StopIteration, ValueError): is the likely culprit. That's part of a fix for a Cython idiosyncrasy (that was really tricky to pin down at the time) and I hesitate to change it without extensive testing.
Maybe as an alternative, BedTool.filter could wrap the incoming function, and the wrapper could replace any exceptions with FilterFunctionError that wouldn't get trapped by IntervalIterator.__next__?
Here's an example that demonstrates the issue:
As you can see, when using
filter
the exception is ignored somewhere along the way. I believe that the reason is that you're catchingValueError
here: https://github.com/daler/pybedtools/blob/master/pybedtools/cbedtools.pyx#L760The text was updated successfully, but these errors were encountered: