bionty.CellType¶
- class bionty.CellType(name: str, ontology_id: str | None, abbr: str | None, synonyms: str | None, description: str | None, parents: list[CellType], public_source: PublicSource | None)¶
Bases:
BioRegistry
,TracksRun
,TracksUpdates
Cell types - Cell Ontology.
Notes
For more info, see tutorials Manage biological registries and CellType.
Bulk create CellType records via
from_values
.Examples
>>> record = bionty.CellType.from_public(name="T cell")
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 cell type.
- ontology_id CharField
Ontology ID of the cell type.
- abbr CharField
A unique abbreviation of cell type.
- synonyms TextField
Bar-separated (|) synonyms that correspond to this cell type.
- description TextField
Description of the cell type.
- public_source ForeignKey
PublicSource
this cell type associates with.
- previous_runs ManyToManyField
Sequence of runs that created or updated the record.
- parents ManyToManyField
Parent cell type records.
- artifacts ManyToManyField
Artifacts linked to the cell type.
Methods