Repository navigation
Conversation
📖 279 files modified
Preview · build overview · Squidpy · built Dec. 6, 2026, 9:30 a.m. UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1372 +/- ##
==========================================
+ Coverage 79.10% 79.12% +0.01%
==========================================
Files 63 63
Lines 9435 9442 +7
Branches 1574 1576 +2
==========================================
+ Hits 7464 7471 +7
Misses 1460 1460
Partials 511 511
🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
Addresses #1241.
Hii
I added an optional gaussian_sigma to spatial_neighbors_radius(). Say two cells are 5 µm and 15 µm away. With a 30 µm radius, both are neighbors. If you also set gaussian_sigma=10 the closer cell gets a weight of about 0.88 and the farther one about 0.32.
The tests check the weights including for two distinct cells at the same coordinates and confirm that the distance matrix stays the same. All 62 spatial-neighbor tests passed on Linux with Python 3.13.