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
The OverlapDetector has an issue that its intervaltree must be indexed before any overlaps can be checked, however the cgranges object it is based on will only index once (it checks if it's already indexed and skips a second call).
This results in a bug where adding new intervals to the tree does not result in them being returned for overlap checks.
I can confirm that superintervals does not have this problem. IntervalSet (supposedly, see below) must be re-indexed when new intervals are added, but pybedlite OverlapDetector already does this. superintervals.IntervalSet actually performs the reindex. It looks like a relatively easy fix to replace cgranges:
IntervalSet add intervals with a start, end, and value, and the value could be set to the index in refname_to_intervals. Then the logic is very similar.
IntervalSet uses closed intervals, so I think we'd want to add 1 to start in order to maintain backwards compatibility
The OverlapDetector has an issue that its intervaltree must be indexed before any overlaps can be checked, however the
cgranges
object it is based on will only index once (it checks if it's already indexed and skips a second call).This results in a bug where adding new intervals to the tree does not result in them being returned for overlap checks.
The text was updated successfully, but these errors were encountered: