bionty.Ethnicity

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

Bases: BioRecord, TracksRun, TracksUpdates

Ethnicity - Human Ancestry Ontology.

Notes

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

Bulk create Ethnicity records via from_values().

Examples

>>> record = bionty.Ethnicity.from_source(name="European")
>>> record.save()

Simple fields

uid: str

A universal id (hash of selected field).

name: str

Name of the ethnicity.

ontology_id: str | None

Ontology ID of the ethnicity.

abbr: str | None

A unique abbreviation of ethnicity.

synonyms: str | None

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

description: str | None

Description of the ethnicity.

created_at: datetime

Time of creation of record.

updated_at: datetime

Time of last update to record.

Methods