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

run: Run

Last run that created or updated the record.

id

Internal id, valid only in one DB instance.

uid

A universal id (hash of selected field).

name

Name of the cell type.

ontology_id

Ontology ID of the cell type.

abbr

A unique abbreviation of cell type.

synonyms

Bar-separated (|) synonyms that correspond to this cell type.

description

Description of the cell type.

public_source

PublicSource this cell type associates with.

previous_runs: Run

Sequence of runs that created or updated the record.

parents

Parent cell type records.

artifacts

Artifacts linked to the cell type.

created_at: datetime

Time of creation of record.

created_by: User

Creator of record.

updated_at: datetime

Time of last update to record.

Methods