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])#
class lnschema_bionty.CellType(*db_args)

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")
>>> record.save()


id CharField

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

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.