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_public(name="Arachnodactyly")
>>> record.save()

Fields

run: Run

Last run that created or updated the record.

id

Internal id, valid only in one DB instance.

uid

A universal id (hash of selected field).

name

Name of the phenotype.

ontology_id

Ontology ID of the phenotype.

abbr

A unique abbreviation of phenotype.

synonyms

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

description

Description of the phenotype.

source

Source this phenotype associates with.

previous_runs: Run

Sequence of runs that created or updated the record.

parents

Parent phenotype records.

artifacts

Artifacts linked to the phenotype.

created_at: datetime

Time of creation of record.

created_by: User

Creator of record.

updated_at: datetime

Time of last update to record.

Methods