bionty.Disease¶
- class bionty.Disease(name: str, ontology_id: str | None, abbr: str | None, synonyms: str | None, description: str | None, parents: list[Disease], source: Source | None)¶
Bases:
BioRecord
,TracksRun
,TracksUpdates
Diseases - Mondo, Human Disease.
Notes
Bulk create Disease records via
from_values
.For more info, see tutorials: Disease.
Examples
>>> record = bionty.Disease.from_public(name="Alzheimer disease")
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 disease.
- ontology_id¶
Ontology ID of the disease.
- abbr¶
A unique abbreviation of disease.
- synonyms¶
Bar-separated (|) synonyms that correspond to this disease.
- description¶
Description of the disease.
- previous_runs: Run¶
Sequence of runs that created or updated the record.
- parents¶
Parent disease records.
- artifacts¶
Artifacts linked to the disease.
- created_at: datetime¶
Time of creation of record.
- created_by: User¶
Creator of record.
- updated_at: datetime¶
Time of last update to record.
Methods¶