Labels

class of dascore.core.coords source

Labels(
    id: str ,
    count: int ,
    offset: int = 0,
    stride: int = 1,
)-> None

One window into a stored array of labels.

The array itself lives in its coordinate’s sources, under the id it was hashed with on the way in. A slice, a stride, a reversal or a move to another coordinate only moves the window, so however far the labels travel they are copied once and hashed once.

Methods

Name Description
window The window of the samples first, first + stride, … within this one.