Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1726c15
added changes from the bugfix in nhood profile (#1229)
shashkat Jul 13, 2026
add377a
adding sanitize_adata before updating table in case of sdata in calcu…
shashkat Jul 14, 2026
bd9e404
added some basic test cases for calculate_niche() before refactoring it
shashkat Jul 15, 2026
18b1a8b
updated the required, optional and unused params for different flavors
shashkat Jul 19, 2026
bd401e9
initial framework for the niche refactor
shashkat Jul 21, 2026
94df1a3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 21, 2026
a17b864
Merge branch 'scverse:main' into niche_refactor
shashkat Jul 21, 2026
1d707c2
functions and classes for niche refactor
shashkat Jul 23, 2026
c91873b
minor naming change in test_niche_calc_library_key_dummy_adata() as …
shashkat Jul 23, 2026
c46e9bf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 23, 2026
0e7ad67
reduced _calculate_neighborhood_profile arguments as it takes from cl…
shashkat Jul 24, 2026
fc7c748
Fix dummy adata test cases
shashkat Jul 26, 2026
23e561f
fix old test cases
shashkat Jul 26, 2026
a647cc7
fixed spatialleiden not available in test envs
shashkat Jul 26, 2026
9719346
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 26, 2026
2e59d54
Merge branch 'main' into niche_refactor
shashkat Jul 26, 2026
1c8c1ea
warn before adding new column in adata.obs
shashkat Jul 26, 2026
c1d6e23
efficient handling of inplace arg in calculate_niche_custom and calcu…
shashkat Jul 26, 2026
94f87f8
fixed some issues with spatialleiden flavor and added test case for s…
shashkat Jul 27, 2026
12417be
added docs for functions and classes
shashkat Jul 27, 2026
15c9e53
type-suggestions, sensible defaults of args and exports done
shashkat Jul 27, 2026
34c91d6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 27, 2026
b10c477
minor fixes
shashkat Jul 27, 2026
f1d489a
small change in MaskPostprocessor and added a test case for postproce…
shashkat Jul 28, 2026
bc685c9
minor documentation update
shashkat Jul 28, 2026
4484b56
added niche functions and classes imports
shashkat Jul 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ scripts.download = "python ./.scripts/ci/download_data.py {args}"

[envs.hatch-test]
dependency-groups = ["test"]
# to pass spatialleiden-using tests in test_niche.py
features = [
"leiden"
]
extra-dependencies = ["diff-cover"]
matrix = [
{ deps = ["stable"], python = ["3.12", "3.13", "3.14"] },
Expand Down
32 changes: 30 additions & 2 deletions src/squidpy/gr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,22 @@
interaction_matrix,
nhood_enrichment,
)
from squidpy.gr._niche import calculate_niche
from squidpy.gr._niche import (
CellcharterEmbedder,
GMMClusterer,
LeidenClusterer,
MaskPostprocessor,
MinNicheSizePostprocessor,
NhoodProfileEmbedder,
RenamePostprocessor,
UtagEmbedder,
calculate_niche,
calculate_niche_cellcharter,
calculate_niche_custom,
calculate_niche_neighborhood,
calculate_niche_spatialleiden,
calculate_niche_utag,
)
from squidpy.gr._ppatterns import co_occurrence, spatial_autocorr
from squidpy.gr._ripley import ripley
from squidpy.gr._sepal import sepal
Expand All @@ -38,11 +53,24 @@
"spatial_neighbors_radius",
"spatial_neighbors_delaunay",
"spatial_neighbors_grid",
"calculate_niche",
"calculate_niche_neighborhood",
"calculate_niche_utag",
"calculate_niche_cellcharter",
"calculate_niche_spatialleiden",
"calculate_niche_custom",
"NhoodProfileEmbedder",
"UtagEmbedder",
"CellcharterEmbedder",
"LeidenClusterer",
"GMMClusterer",
"MinNicheSizePostprocessor",
"MaskPostprocessor",
"RenamePostprocessor",
"ligrec",
"centrality_scores",
"interaction_matrix",
"nhood_enrichment",
"calculate_niche",
"co_occurrence",
"spatial_autocorr",
"ripley",
Expand Down
Loading
Loading