torchcell.sequence.DnaWindowResult

class DnaWindowResult(*, id: str, chromosome: int, strand: str, start: int, end: int, seq: str, start_window: int, end_window: int)[source]

Bases: DnaSelectionResult

A DNA selection extended with the surrounding window coordinates.

classmethod check_window(v: int) → int[source]

Validate that the window coordinate is non-negative.

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

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