problem of IntervalNode

Issue #3 invalid
Nini Zhou
created an issue

from bx.intervals.intersection import IntervalNode, Interval

tree = IntervalNode(Interval(0, 10, -1))

tree.insert(Interval(5, 15))

IntervalNode(5, 15)

tree.insert(Interval(5, 15))

IntervalNode(5, 15)

tree.insert(Interval(15, 25))

IntervalNode(15, 25)

tree.insert(Interval(25, 35))

IntervalNode(0, 10)

for node in tree.find(0, 30):

... print node

Interval(0, 10, strand=-1)

Interval(25, 35)

The result should be 5 intervals added to the tree. It outputs only two of them. ?

Comments (1)

  1. Log in to comment