MCPcopy Create free account
hub / github.com/chaimleib/intervaltree / remove_envelop

Method remove_envelop

intervaltree/intervaltree.py:483–494  ·  view source on GitHub ↗

Removes all intervals completely enveloped in the given range. Completes in O((r+m)*log n) time, where: * n = size of the tree * m = number of matches * r = size of the search range

(self, begin, end)

Source from the content-addressed store, hash-verified

481 self.remove(iv)
482
483 def remove_envelop(self, begin, end):
484 """
485 Removes all intervals completely enveloped in the given range.
486
487 Completes in O((r+m)*log n) time, where:
488 * n = size of the tree
489 * m = number of matches
490 * r = size of the search range
491 """
492 hitlist = self.envelop(begin, end)
493 for iv in hitlist:
494 self.remove(iv)
495
496 def chop(self, begin, end, datafunc=None):
497 """

Callers 1

chopMethod · 0.95

Calls 2

envelopMethod · 0.95
removeMethod · 0.95

Tested by

no test coverage detected