Checks if this interval overlaps with another interval.
(self, interval: Self)
| 446 | assert self.width == width |
| 447 | |
| 448 | def overlaps(self, interval: Self) -> bool: |
| 449 | """Checks if this interval overlaps with another interval.""" |
| 450 | return ( |
| 451 | self.chromosome == interval.chromosome |
| 452 | and self.start < interval.end |
| 453 | and interval.start < self.end |
| 454 | ) |
| 455 | |
| 456 | def contains(self, interval: Self) -> bool: |
| 457 | """Checks if this interval completely contains another interval.""" |
no outgoing calls