torchcell.datamodels.schema.HaplotypeBlock

class HaplotypeBlock(*, chromosome: str, start: int, end: int, parent: Literal[1, 2], posterior: float = 1.0, n_markers: int)[source]

Bases: ModelStrict

One run of consecutive markers called to the same parent on one chromosome.

start/end are the reference-coordinate positions of the FIRST and LAST marker of the run (as the marker names carry them); the crossover lies somewhere in the unassigned gap between two adjacent blocks and is deliberately not resolved. posterior is the assignment probability in [0, 1] (1.0 for a released hard call); n_markers is the number of markers the run spans.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].