Install & Compatibility
Where this runs
tested against v1.7.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 29.4s · import 0.000s · 794MB
847MB installed
● package 847MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CellTypist
✓ from celltypist import CellTypist
✗ import celltypist
Proper class instantiation requires importing the class.
Load a pre-trained model and predict cell types from an AnnData file. Replace the file path with your own data.
from celltypist import CellTypist
from celltypist import models
# Download model if not present (first time)
model = models.Model.load(model='Immune_All_Low.pkl')
# Predict cell types
transcriptome_data = 'path/to/your/data.h5ad' # replace with your file
predictions = CellTypist().predict(transcriptome_data, model=model)
print(predictions.cell_type.value_counts())
celltypist --version
Upgrade
Version history
1.7.1latest on PyPI · released Jun 25, 2025
Audit
Dependencies
scipyrequiredUsed for model computations
numpyrequiredArray operations
pandasrequiredData handling
scikit-learnrequiredLogistic regression and utilities
matplotliboptionalHeatmap and plotting