bionty.Phenotype

class bionty.Phenotype(name: str, ontology_id: str | None, abbr: str | None, synonyms: str | None, description: str | None, parents: list[Phenotype], source: Source | None)

Bases: BioRecord, TracksRun, TracksUpdates

Phenotypes - Human Phenotype, Phecodes, Mammalian Phenotype, Zebrafish Phenotype.

Notes

For more info, see tutorials Manage biological registries and Phenotype.

Bulk create Phenotype records via from_values().

Examples

>>> record = bionty.Phenotype.from_source(name="Arachnodactyly")
>>> record.save()

Simple fields

uid: str

A universal id (hash of selected field).

name: str

Name of the phenotype.

ontology_id: str | None

Ontology ID of the phenotype.

abbr: str | None

A unique abbreviation of phenotype.

synonyms: str | None

Bar-separated (|) synonyms that correspond to this phenotype.

description: str | None

Description of the phenotype.

created_at: datetime

Time of creation of record.

updated_at: datetime

Time of last update to record.

Methods