lnschema_bionty.Disease#
- class lnschema_bionty.Disease(name: str, ontology_id: Optional[str], abbr: Optional[str], synonyms: Optional[str], description: Optional[str], parents: List[Disease], bionty_source: Optional[BiontySource])#
Bases:
BioRegistry
Diseases - Mondo, Human Disease.
Notes
For more info, see tutorial Manage biological registries
Bulk create Disease records via
from_values
.Examples
>>> record = lb.Disease.from_bionty(name="Alzheimer disease")
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 disease.
- ontology_id CharField
Ontology ID of the disease.
- abbr CharField
A unique abbreviation of disease.
- synonyms TextField
Bar-separated (|) synonyms that correspond to this disease.
- description TextField
Description of the disease.
- bionty_source ForeignKey
BiontySource
this disease 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 disease records.
- files ManyToManyField
Files linked to the disease.
- datasets ManyToManyField
Datasets linked to the disease.
Methods