Cellestial 1.0 is the first stable release. It finishes the v1 API review, so
most code written for 0.62 needs a few renames. See the
migration guide and the
full list in CHANGELOG.md.
- Datasets.
cl.datasets.pbmc3k()used to load bone marrow cells (the scanpy clustering tutorial data). That loader is nowcl.datasets.bone_marrow(), with the same cells and labels.cl.datasets.pbmc3k()now loads the real 10x Genomics PBMC 3k (2,638 cells, labels incell_type). - Stored-result keys.
ranking_key(waskey) inmarkers,volcano(s),marker_genes(_dict); the heatmap family takesmarkers: boolplusranking_key.embedding_key(wasuse_key) in the dimensional family. - Renames.
dotplot(expression_threshold=)(wasthreshold), columnspercent_expressedandmean_expression(werepct_exp,avg_exp);spatial(grayscale=)(wasgreyscale);variable_keysremoved in favor ofadd_keys;saveis a thin wrapper overggsave. - Signatures.
groupsis keyword-only inmarkers,marker_genesandmarker_genes_dict. - Errors. Errors now come from
cellestial.errors, and every class subclassesCellestialErrorand the matching builtin (KeyNotFoundErroris aKeyError). A renamed parameter raisesUnknownParameterErrornaming the new one. - Frames.
build_framereturns categorical metadata aspl.Enumin the source category order. The AnnData-specific frame builders andDeferredLayerare no longer public.
highlightworks on plots filled by a key (violin,boxplot, ...).annotated_heatmapgainsvariable_group_by,key_labels,group_labelsandannotation_legends.outline=Trueon the dimensional plots (umap,tsne,pca,expression, ...).volcano(s)takemin_fraction_expressed.
- Clearer errors throughout: every error says what was wrong, where, and
suggests a close match for typos (
'leidn': did you mean'leiden'?). - pandas 3 is supported on Python 3.12 and later.
- The bundled datasets download from one Hugging Face repo,
datavil/cellestial-datasets. - Many fixes across heatmaps, volcano plots, spatial polygons (holes are drawn
as holes) and plural grids; see
CHANGELOG.md.
pip install --upgrade cellestial
pip install --upgrade "cellestial[spatial]" # for SpatialData