Checks if this interval completely contains another interval.
(self, interval: Self)
| 454 | ) |
| 455 | |
| 456 | def contains(self, interval: Self) -> bool: |
| 457 | """Checks if this interval completely contains another interval.""" |
| 458 | return ( |
| 459 | self.chromosome == interval.chromosome |
| 460 | and self.start <= interval.start |
| 461 | and self.end >= interval.end |
| 462 | ) |
| 463 | |
| 464 | def intersect(self, interval: Self) -> Self | None: |
| 465 | """Returns the intersection of this interval with another interval.""" |
no outgoing calls