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

Method contains

src/alphagenome/data/genome.py:456–462  ·  view source on GitHub ↗

Checks if this interval completely contains another interval.

(self, interval: Self)

Source from the content-addressed store, hash-verified

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

Callers 14

ism_matrixFunction · 0.95
plot_axMethod · 0.80
slice_by_intervalMethod · 0.80
__post_init__Method · 0.80
drop_versionFunction · 0.80

Calls

no outgoing calls