RunRecord

class of dascore.utils.gaps source

RunRecord(
    count: int ,
    min: Any ,
    max: Any ,
    step: Any = None,
    position: int | None[int, None] = None,
)-> None

One run of a coordinate’s labels, holding no hole.

A coordinate states its runs as these, and a spool index stores them as rows, so the gap questions below get one answer whichever is asked.

count samples span the labels min to max. step is the spacing the run keeps: the coordinate’s, or a grid run’s own where the coordinate has none; None where it keeps none. position is where the run’s first sample sits on the coordinate’s grid, its first sample being 0; None where the coordinate has no grid.