Skip to content

Blockwise assign to organelles#61

Merged
davidackerman merged 2 commits into
mainfrom
blockwise-assign-to-organelles
Apr 16, 2026
Merged

Blockwise assign to organelles#61
davidackerman merged 2 commits into
mainfrom
blockwise-assign-to-organelles

Conversation

@davidackerman
Copy link
Copy Markdown
Collaborator

mostly to make assign-to-organelles work blockwise instead of loading all data in in one go

Rewrite assign_to_organelles to process data blockwise instead of
loading the entire organelle volume into memory. Groups COMs by chunk,
loads only blocks that contain COMs (with padding for n-nearest
queries), and uses a margin check to guarantee correctness without
block-edge artifacts. Supports dask parallelism via ComputeConfigMixin.

Also add N5ArrayMetadata fallback in zarr_io.open_dataset for zarr 3.x
which dropped native N5 support.
zarr.open_array in zarr 3.x defaults to v3 format even inside v2
containers, creating mixed-format containers that Neuroglancer can't
read (it inherits the format from the root group). Now prepare_ds
passes zarr_format=root.metadata.zarr_format so arrays match their
container.
@davidackerman davidackerman merged commit eae6e70 into main Apr 16, 2026
2 checks passed
@davidackerman davidackerman deleted the blockwise-assign-to-organelles branch April 16, 2026 01:25
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

❌ Patch coverage is 85.41667% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.27%. Comparing base (89bb70b) to head (c1dd57b).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/cellmap_analyze/util/zarr_io.py 27.27% 16 Missing ⚠️
...rc/cellmap_analyze/analyze/assign_to_organelles.py 92.94% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
+ Coverage   82.22%   82.27%   +0.05%     
==========================================
  Files          26       26              
  Lines        3341     3475     +134     
==========================================
+ Hits         2747     2859     +112     
- Misses        594      616      +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant