class lnschema_bionty.CellType(name: str, ontology_id: Optional[str], abbr: Optional[str], synonyms: Optional[str], description: Optional[str], parents: List[CellType], bionty_source: Optional[BiontySource])#

Bases: BioRegistry

Cell types - Cell Ontology.


For more info, see tutorial Manage biological registries

Bulk create CellType records via from_values.


>>> record = lb.CellType.from_bionty(name="T cell")


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.

bionty_source ForeignKey

BiontySource this cell type 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 cell type records.

files ManyToManyField

Files linked to the cell type.

datasets ManyToManyField

Datasets linked to the cell type.