Conversation
…to feature/add_cpmeasure
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…to feature/add_cpmeasure
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
Note to self:
|
|
Tried it out and it worked very well! One quality of life feature would be the ability to specify channels that should be measured. Often times there are channels that are not informative / used only for segmentation and those slow down the calculations. |
|
Ah I noticed another thing. For the created morphology table .uns["spatialdata_attrs"] needs to be set, otherwise this runs into problem when querying the Spatialdata afterwards. |
- Resolved dependency conflicts (updated to zarr>=3) - Moved exp module to experimental to align with main - Integrated CellProfiler features into experimental module - Added centrosome and cp_measure dependencies
for more information, see https://pre-commit.ci
Moved calculate_image_features from experimental._feature to experimental.im._feature to follow the existing module structure. Now accessible as squidpy.experimental.im.calculate_image_features
- Test basic feature calculation with shapes - Test copy vs inplace behavior - Test error cases for invalid keys - Uses sdata_hne fixture with skimage:label for fast execution
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #982 +/- ##
==========================================
- Coverage 74.05% 72.87% -1.19%
==========================================
Files 39 41 +2
Lines 6495 7037 +542
Branches 1122 1249 +127
==========================================
+ Hits 4810 5128 +318
- Misses 1230 1417 +187
- Partials 455 492 +37
🚀 New features to boost your workflow:
|
|
Looking forward to this PR 👀🥸 |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Introduces _tiling.py with build_tile_specs() and extract_tile() that split a label image into overlapping tiles where each cell is assigned to exactly one tile by centroid. Non-owned cells are zeroed out so downstream processing never double-counts. Includes 31 tests: deterministic brick-pattern grid (touching and non-touching), coverage verification, and visual regression tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
for more information, see https://pre-commit.ci
|
Refactoring in anticipation of afermg/cp_measure#38 being merged so we can upstream behaviour. |
Associated notebook: https://github.com/scverse/squidpy_notebooks/blob/add_cpmeasure_notebook/tutorials/tutorial_cpmeasure.ipynb