torchcell.datamodels.strain_background.ByGenotype
- class ByGenotype(*, mating_type: MatingType, ploidy: Literal['haploid', 'diploid'], parents: list[str], alleles: dict[str, Zygosity])[source]
Bases:
ModelStrictA standard BY strain as mating type, ploidy and allele -> zygosity.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].