lnschema_bionty.Ethnicity#
- class lnschema_bionty.Ethnicity(name: str, ontology_id: Optional[str], abbr: Optional[str], synonyms: Optional[str], description: Optional[str], parents: List[Ethnicity], bionty_source: Optional[BiontySource])#
Bases:
BioRegistry
Ethnicity - Human Ancestry Ontology.
Notes
For more info, see tutorial Manage biological registries
Bulk create Ethnicity records via
from_values
.Examples
>>> record = lb.Ethnicity.from_bionty(name="European") >>> record.save()
Fields
- id AutoField
Internal id, valid only in one DB instance.
- uid CharField
A universal id (hash of selected field).
- name CharField
Name of the ethnicity.
- ontology_id CharField
Ontology ID of the ethnicity.
- abbr CharField
A unique abbreviation of ethnicity.
- synonyms TextField
Bar-separated (|) synonyms that correspond to this ethnicity.
- description TextField
Description of the ethnicity.
- bionty_source ForeignKey
BiontySource
this ethnicity associates with.
- created_at DateTimeField
Time of creation of record.
- updated_at DateTimeField
Time of last update to record.
- created_by ForeignKey
Creator of record, a
User
.
- parents ManyToManyField
Parent ethnicity records.
- files ManyToManyField
Files linked to the ethnicity.
- datasets ManyToManyField
Datasets linked to the ethnicity.
Methods