bionty.Disease

class bionty.Disease(name: str, ontology_id: str | None, abbr: str | None, synonyms: str | None, description: str | None, parents: list[Disease], public_source: PublicSource | None)

Bases: BioRegistry, 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

created_at DateTimeField

Time of creation of record.

created_by ForeignKey

Creator of record, a User.

run ForeignKey

Last run that created or updated the record, a Run.

updated_at DateTimeField

Time of last update to record.

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.

public_source ForeignKey

PublicSource this disease associates with.

previous_runs ManyToManyField

Sequence of runs that created or updated the record.

parents ManyToManyField

Parent disease records.

artifacts ManyToManyField

Artifacts linked to the disease.

Methods