Changelog#

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.5.0#

πŸš€ Features#

  • pt.md.Cytokine provides the cytokine response signatures of the Human Cytokine Dictionary for 90 cytokines in 24 PBMC cell types, as gene sets that the Enrichment tests take as targets (#1186) @Jenniliu12, @Zethson

  • Statsmodels fits linear mixed models when the design contains a random intercept such as ~condition + (1 | donor), by REML with Satterthwaite t-tests like lmerTest, so single cells can be tested while accounting for the samples they come from; the kernel is shared with Dialogue and the (1 | variable) syntax with Milo (#1147) @Sizerta, @Zethson

  • assign_mixture_model also writes the binary cell-by-guide assignment to adata.layers[output_layer], since the per-cell string in .obs caps and joins the assigned guides (#1173) @Zethson

⚑ Performance#

  • Augur scores each cross-validation fold in one pass over the forest instead of six scorer passes, skips scikit-learn’s per-tree parameter validation and no longer ships the fitted trees back from the workers, with identical metrics and importances on seeded runs (#1178) @Zethson

  • Dialogue runs the PMD iterations in a numba kernel (20x per fit) and solves the iterative NNLS on the normal equations, replacing the sparsecca dependency; whole runs take 3 to 13 s on 5k to 27k cells, about 2x faster than before with up to half the peak memory, where R needs 2 to 16 minutes (#1177) @Zethson

  • assign_mixture_model fits each guide on its distinct count values, 20x faster on Papalexi (2.9 s to 0.14 s) and with a third of the peak memory at 100k cells x 500 guides (#1172) @Zethson

⚠️ Changed results#

  • Dialogue reproduces the R reference end to end: REML mixed models with Satterthwaite t-tests like lmerTest, R’s PMD penalty, permutation test and cell-type pruning, Pearson pre-selection of signature genes, one-sided gene p-values, and test_phenotype_association now follows DIALOGUE.pheno (first level or True as the indicator, pooled All row, no Fisher combination) (#1177) @Zethson

  • Dialogue orders the shared samples like R’s ICU collation, since that order decides the signs of the PMD initialization and with them the programs found (#1177) @Zethson

  • Augur is reproducible by default: unseeded estimators and folds are seeded by the subsample index like R Augur, and predict_differential_prioritization draws its permuted means without replacement from a seeded generator, as R does (#1178) @Zethson

  • Dialogue’s min_cells_per_sample defaults to R’s 15 and only gates the ANOVA feature filter, which now raises below five retained features instead of keeping all of them; n_permutations counts the observed fit, so values below 11 cannot pass the default empirical_alpha (#1177) @Zethson

  • assign_mixture_model fits the Poisson-Gaussian mixture by multi-start EM instead of 500 Adam steps from one start, which left thresholds unconverged, swapped the components on high-MOI guides and dropped small guides; thresholds now match crispat run to convergence on 105 of 106 Papalexi guides, learning_rate is deprecated and n_iter caps the EM iterations (#1172) @Zethson

πŸ› Bug Fixes#

  • Augur encodes the condition labels after filtering to two conditions, so binary precision, recall and F1 are no longer NaN when the kept labels were not the first two; those metrics now take the first condition as the positive class like R Augur, min_cells defaults to subsample_size and applies per condition like R, data sets with fewer than 1000 features skip feature selection like R, per-cell augur_score is assigned by exact cell type match, and regressors use unstratified folds (#1178) @Zethson

  • Dialogue treated signed log10 p-value z-scores as normal z-scores in phase 3, which inflated strong genes, lost the up/down direction and dropped underflowing genes from the Fisher combination (#1177) @Zethson

  • Mixscape’s plot_barplot no longer fails when the number of target genes is not a multiple of five, and Mixscape takes the control, perturbed and non-perturbed class labels from control, perturbation_type and the new non_perturbed_label instead of hardcoding NT, KO and NP; plot_heatmap and plot_perturbscore use the mixscape_class and pert_key columns they are given, plot_perturbscore keeps a custom palette with before_mixscape=True, and plot_barplot takes a palette (#1191) @kkkklck, @Zethson

  • Mixscape takes the minimum number of cells left in a perturbed class from the new min_cells instead of min_de_genes, as Seurat does, which changes results only for a non-default min_de_genes (#1189) @kkkklck, @Zethson

  • Milo’s plot_nhood_counts_by_cond raised with pandas 3.1, which kept the sample column’s name on the per-sample index (#1181) @Zethson

  • Guide assignment: assign_by_threshold and assign_to_max_guide accept CSC and sparse-array input, explicitly stored zeros no longer enter the mixture fit, plot_heatmap saves a reusable cell order and only_return_results=True no longer writes to adata.var (#1172) @Zethson

🧰 Maintenance#

  • Require Python 3.13 (#1172) @Zethson

  • Build the docs with the shared scverse theme and configuration from scverse-doc, with the logo blue as its accent for links and highlights (#1179) @Zethson

  • The docs take their accents from the scverse-doc registry and colour the sidebar captions in the logo red (#1182) @Zethson

  • Group the docs sidebar into Getting started, Guides, Reference and Project like the other scverse core packages, with a new quickstart that replaces the background page and a new glossary (#1180) @Zethson

  • Skip the network tests when a download fails with a URLError (#1184) @Zethson

  • Keep R from loading the system libpython in the tutorial notebooks on Ubuntu 26.04 (#1185) @Zethson

  • Skip PyQt6’s stubs in mypy, whose invalid syntax made mypy abort (#1190) @Zethson

  • Require LLM usage disclosure in the pull request template (#1165) @Zethson

v1.4.0#

πŸš€ Features#

⚑ Performance#

Hot loops across all tools were vectorized or moved into numba kernels, with results verified against the previous implementation or the reference library on real data.

  • Distances: DistanceTest 35x, ks_test 27x, pairwise with t_test/sym_kldiv 9-13x, MMD without n x n kernel matrices, numba KDE for mean_var_distribution, exact NB2 fits for nb_ll (#1118, #1134, #1135) @Zethson

  • Differential expression: Statsmodels contrasts 11-20x and batched OLS fits, sparse Wilcoxon and t-test kernels, vectorized PermutationTest statistic (#1124, #1136) @Zethson

  • Milo: batched neighbourhood refinement and pydeseq2 likelihood-ratio fits (3-7x), numba GLMM fits (~34x) (#1125, #1137) @Zethson

  • Dialogue: numba random-intercept fits (test_celltype_pairs 119 s to 0.9 s at 30k cells) (#1124, #1133) @Zethson

  • Mixscape and Mixscale: sparse signature assembly, numba EM, one DE call per reference (mixscale 11x, mixscape 6x) (#1140, #1143) @Zethson

  • Perturbation spaces, enrichment and metadata: Enrichment.score 88x, label_transfer 19x, CellLine.correlate 6x, chunked MLP training, parallel PubChem lookups (#1139, #1142) @Zethson

  • scCODA: make_arviz no longer simulates a discarded N x N counts tensor (minutes to under a second) (#1138) @Zethson

  • Guide assignment 120x on sparse input and faster CINEMA-OT without N x N intermediates (#1140) @Zethson

⚠️ Changed results#

  • Mixscape holds the control variance fixed during EM as Seurat does; about 0.4% of KO/NP calls change on Papalexi 2021 (#1144) @Zethson

  • Euclidean e-distance and mean pairwise distance average over all n^2 cell pairs, so Distance.__call__, pairwise and DistanceTest agree (#1151) @Zethson

  • Distance.bootstrap resamples the second group with its own size (#1152) @Zethson

  • scGen batch_removal applies its latent correction, which was previously discarded (#1119) @Zethson

  • Dialogue p-values move slightly because the mixed-model fit converges where statsmodels’ BFGS stopped early (#1133) @Zethson

  • nb_ll fits the overdispersed genes that statsmodels silently dropped (#1135) @Zethson

  • Wilcoxon, t-test, e-distance and MMD statistics on float32 input are accumulated in float64 (#1134, #1136) @Zethson

  • CellLine.correlate computes every pair instead of mirroring the asymmetric matrix (#1121) @Zethson

  • evaluate_clustering computes ASW on the cells instead of on rows of the distance matrix (#1120) @Zethson

  • Adjusted p-values of the simple DE tests are kept when some variables have NaN p-values (#1122) @Zethson

πŸ› Bug Fixes#

  • Keep scCODA and tascCODA working under numpyro 0.22 (#1104) @Zethson

  • Use regression-appropriate scorers for Augur regressor estimators (#1105) @Sizerta

  • Dialogue: use additional_covariates, handle degenerate genes and unused categorical levels (#1132, #1156) @Zethson

  • Mixscape and Mixscale: scale=False on sparse layers, epsilon for every split, control labels with spaces, duplicate obs_names (#1129, #1130, #1131, #1145, #1149, #1155) @Zethson

  • Distances: sparse MMD in pairwise, bounded memory, symmetric-matrix assumption, one-cell t-test groups (#1150, #1154) @Zethson

  • Perturbation spaces: sparse .X, pseudobulks keep obs columns that are NaN for some groups (#1146, #1158) @Zethson

  • CellLine.annotate_from_prism matches drug names case-insensitively (#1127) @Zethson

  • Scgen.plot_reg_var_plot on sparse X, scCODA tree plots after save=, deterministic from_scanpy column order (#1160, #1161, #1162) @Zethson

  • Make the PubChem compound annotation test robust to outages (#1111) @Zethson

🧰 Maintenance#

v1.3.0#

πŸš€ Features#

  • Make JAX optional and reimplement scGen without scvi-tools (#1084) @Zethson

πŸ› Bug Fixes#

  • Raise a clear error when a da_nhoods design has no residual degrees of freedom (#1077) @Zethson

  • Drop empty annotation rows from plot_da_beeswarm() (#1078) @Zethson

  • Keep permutation p-values aligned with their group labels in DistanceTest (#1079) @Zethson

  • Ensure right fit object is in R scope (#1073) @sagar87, @Zethson

🧰 Maintenance#

  • Read the Lightning intersphinx inventory from Read the Docs (#1083) @Zethson

v1.2.0#

πŸš€ Features#

πŸ› Bug Fixes#

  • scGen: vendor JAX backend to support scvi-tools 1.5.0 (#1042) @Zethson,

  • scGen: make the JAX implementation reproduce the PyTorch one (#1028) @Zethson

  • Fix import of removed scanpy _get_obs_rep/_set_obs_rep (#1050) @Zethson

  • pseudobulk: only transfer constant obs columns (#1061) @Zethson

  • Correct the version of the Milo deprecations (#1064) @Zethson

🧰 Maintenance#

v1.1.1#

πŸš€ Features#

πŸ› Bug Fixes#

🧰 Maintenance#

  • perturbation_space: cleanup, safer defaults, kill stale-state bugs (#994) @Zethson

  • Resolve test-suite warnings (#1018) @Zethson

  • docs: refresh DE docstring pseudobulk examples (#996) @Zethson

  • ci: bump codecov-action to v6 and fail CI on upload error (#1009) @timtreis

v1.1.0#

πŸš€ Features#

  • milo: speed up pydeseq2 da_nhoods ~100x via poscounts size factors (#992) @Zethson

  • Guide RNA assignment: crispat-matching JAX MAP fit (10–30Γ— faster) (#987) @Zethson

  • DIALOGUE: from-scratch port of the R reference (PMD + HLM + iterative NNLS) (#988) @Zethson

  • PyDESeq2: optional apeGLM LFC shrinkage (#985) @Zethson

  • Add layout option to coda plot_boxplots (#718) (#932) @emekaokoli19

πŸ› Bug Fixes#

  • scCODA: fix run_hmc TypeError; clarify log2-fold-change sign (#993) @Zethson

  • scCODA/tascCODA: make make_arviz stateless (#991) @Zethson

  • scCODA: unify covariate index format across get_effect_df / summary / credible_effects (#989) @Zethson

  • Reject all-zero contrasts in test_contrasts (#981) @Zethson

  • Fix PseudobulkSpace.compute losing X with anndata main (#979) @Zethson

  • Fix plot_effects_umap KeyError on Sccoda output (#780) (#971) @LiudengZhang

  • Fix marker positions: calculate marker positions from DataFrame, not rendered labels (#970) @kimjune01

  • Fix plot_multicomparison_fc ValueError with default figsize (#965) @kimjune01

  • Fix minor bugs (#960) @Zethson

  • Fix add and subtract (#959) @Zethson

🧰 Maintenance#

v1.0.6#

πŸš€ Features#

πŸ› Bug Fixes#

🧰 Maintenance#

v1.0.5#

πŸ› Bug Fixes#

🧰 Maintenance#

v1.0.4#

πŸš€ Features#

πŸ› Bug Fixes#

🧰 Maintenance#

v1.0.3#

πŸš€ Features#

  • Move from figshare to scverse AWS S3 (#848) @Zethson

  • Rename label_transfer column parameter to target_column (#848) @Zethson

  • Rename mixscape labels parameter to pert_key (#848) @Zethson

v1.0.2#

πŸ› Bug Fixes#

v1.0.1#

πŸš€ Features#

πŸ› Bug Fixes#

v1.0.0#

πŸš€ Features#

v0.11.5#

πŸš€ Features#

πŸ› Bug Fixes#

v0.11.4#

🧰 Maintenance#

v0.11.3#

πŸš€ Features#

v0.11.2#

πŸš€ Features#

v0.11.1#

πŸ› Bug Fixes#

  • Restructure documentation & fix scCODA not requiring tcoda extra (#762) @Zethson

v0.11.0#

πŸš€ Features#

πŸ› Bug Fixes#

🧰 Maintenance#

v0.10.0#

πŸš€ Features#

πŸ› Bug Fixes#

v0.9.x#

πŸš€ Features#

πŸ› Bug Fixes#

🧰 Maintenance#

v0.8.0#

πŸš€ Features#

πŸ› Bug Fixes#

v0.7.0#

Due to a lack of release notes for 0.6.0, this release may contain the some of the changes of 0.6.0 as well.

Note that the syntax for plotting for most tools changed. We removed the pt.pl modules in favor of moving all plots with plot_ prefixes to the respective tools. We hope that this will make the documentation easier to navigate.

πŸš€ Features#

πŸ› Bug Fixes#

v0.5.0#

πŸš€ Features#

πŸ› Bug Fixes#

v0.4.0#

πŸš€ Features#

πŸ› Bug Fixes#

v0.3.0#

πŸš€ Features#

πŸ› Bug Fixes#

🧰 Maintenance#

v0.2.0#

πŸš€ Features#

πŸ› Bug Fixes#

🧰 Maintenance#

v0.1.0#

πŸš€ Features#

πŸ› Bug Fixes#

  • add inits for plots, fix error messages and output, tutorial version (#144) @antschum

🧰 Maintenance#