torchcell.datamodels.schema.SOTerm

class SOTerm(*, so_id: str, name: str)[source]

Bases: ModelStrict

A Sequence Ontology term: a SO:NNNNNNN id paired with its name.

classmethod validate_so_id(v: str) → str[source]

Enforce the SO:NNNNNNN id shape.

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

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