Repository navigation
V2.1.0 - #286
Merged
Merged
V2.1.0#286
Conversation
Documentation build overview
47 files changed ·
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #286 +/- ##
==========================================
+ Coverage 91.02% 91.05% +0.03%
==========================================
Files 79 79
Lines 4533 4526 -7
==========================================
- Hits 4126 4121 -5
+ Misses 407 405 -2
🚀 New features to boost your workflow:
|
Collaborator
Author
|
@AtheerAS can you please double check the changes. I believe all had to be done so I will merge.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
2.1.0 (31.10.2026)
Removed
li.mt.lric(pair_chunk=...)is removed, after being deprecated and ignored in 2.0.0.li.mt.lric(transform_fn=...)is removed. Its default, mean-normalising each gene to 1, was redundant: after introducing analytical normalisation for the area of interest, any per-gene rescaling cancels exactly in every LRIC ratio (g,g_expr). To weight by a nonlinear transform of expression, store it as a layer and pass it -- e.g.adata.layers["sqrt"] = np.sqrt(adata.X), thenli.mt.lric(..., layer="sqrt"). Unliketransform_fn, a layer goes through the non-negativity check.Changed
n_permsvalues that are0, negative or not integers with a clearValueError;Noneskips permutations.cellphonedb,cellchat,geometric_meanandrank_aggregatep-values are gathered and reduced a block of permutations at a time instead of as one(2, n_perms, n_interactions)tensor, so their peak memory no longer scales withn_perms(Bound the peak memory of the permutation statistics #282, by @pwwang). P-values are bit-identical for a given seed. Peak RSS / wall time,cellphonedb, MacBook Pro M3, 24 GB: 462k interactions, 1000 permutations 14.7 GB / 27 s -> 1.6 GB / 9 s; 4.2M interactions, 300 permutations 15.2 GB (memory-bound) / 510 s -> 3.7 GB / 35 s. Up to ~15% slower when the whole tensor fits in memory. Internally, the pipeline now owns the permutation test: a permutation-based method only declares how it combines ligand and receptor statistics (MethodMeta(combine=...)), plus an optional observed-only adjustment (observed_fn=, CellPhoneDB's zero mask), instead of each method re-implementing proximity weighting and p-value counting.setup-uv10.3.2,gh-action-pypi-publish1.14.3,codecov-action7.1.1) and pre-commit hooks (biome, pyproject-fmt, ruff, zizmor) (Bump the pre-commit group across 1 directory with 4 updates #278, Bump the actions-deps group across 1 directory with 2 updates #279, Bump the actions-deps group across 1 directory with 3 updates #285).Fixed
Xno longer count as expressing cells inligand_props/receptor_props(and thusexpr_prop).li.pp.zi_minmaxnow prunes its sub-cutoff zeros, so with it asx_transform/y_transformfar fewer interactions passexpr_prop.obs_namesdiffer from the intra-view's; views were paired by row position, so a reordered view gave silently wrong results.li.mt.lric/li.mt.cross_pcf: pairs exactly on a radius-tile edge (e.g. gridded spots withradius_stepequal to the spacing) no longer drift into the neighbouring tile; the number of annuli isfloor(max_radius / radius_step), so float steps no longer add a spurious annulus (e.g. 0.3 / 0.1) andmax_radius < radius_stepraises.li.mt.get_lric_aucnormalises by the radial width it actually integrates, so an empty interior bin no longer pulls the score toward 0.sphinx-autodoc-typehints>=3.17(thealias_typehintsshim is removed); README and decision-tree links point toliana.readthedocs.io(Update Decision Tree links to latest tutorial template #283).tutorialsextra requirespycrosstalker>=2.1.8(CrossTalkeR versioning issues for CI #271).