torchcell.sequence.DnaSelectionResult
- class DnaSelectionResult(*, id: str, chromosome: int, strand: str, start: int, end: int, seq: str)[source]
Bases:
ModelStrictA validated DNA region selection with coordinates, strand, and sequence.
- end_leq_start() DnaSelectionResult[source]
Validate that start is not greater than end.
Runs after field validation, so a payload missing
startorendis refused by pydantic’s own missing-field error naming the field.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].