MCPcopy
hub / github.com/google-deepmind/alphagenome / overlaps

Method overlaps

src/alphagenome/data/genome.py:448–454  ·  view source on GitHub ↗

Checks if this interval overlaps with another interval.

(self, interval: Self)

Source from the content-addressed store, hash-verified

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."""

Callers 15

intersectMethod · 0.95
coverageMethod · 0.95
overlap_rangesMethod · 0.95
_get_placement_heightsFunction · 0.80
plot_axMethod · 0.80
plot_axMethod · 0.80
reference_overlapsMethod · 0.80
alternate_overlapsMethod · 0.80
_get_utrMethod · 0.80
__post_init__Method · 0.80

Calls

no outgoing calls