bionty.CellType#

class bionty.CellType(name: str, ontology_id: Optional[str], abbr: Optional[str], synonyms: Optional[str], description: Optional[str], parents: List[CellType], public_source: Optional[PublicSource])#
class bionty.CellType(*db_args)

Bases: BioRegistry

Cell types - Cell Ontology.

Notes

For more info, see tutorial Manage biological registries

Bulk create CellType records via from_values.

Examples

>>> record = bionty.CellType.from_public(name="T cell")

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 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.

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.

artifacts ManyToManyField

Artifacts linked to the cell type.

collections ManyToManyField

Collections linked to the cell type.

Methods