Region

class of dascore.core.annotations
inherits from: dascore.core.annotations._AnnotationModel, RichRepr, DascoreBaseModel, pydantic.main.BaseModel
source

Region(
    object_type: Literal[‘Region’] = Region,
    bounds: collections.abc.Mapping[str, tuple[Any, Any]] = ,
)-> None

Per-dimension bounds: where one annotation row is.

Each dimension the row states maps to a half-open (start, end) pair; equal values are a point, and a dimension the mapping omits is unconstrained.

Methods

Name Description
is_point Whether this region is a point, rather than a span, along a dimension.
model_copy Copy the model, dropping cached values the update invalidates.
new Create new instance with some attributed updated.