Add vessels mask skeletonization rule using overlap-aware chunked processing#166
Merged
Conversation
Agent-Logs-Url: https://github.com/khanlab/SPIMquant/sessions/4bb61617-d7f6-436f-b21d-da096c18d330 Co-authored-by: akhanf <11492701+akhanf@users.noreply.github.com>
Agent-Logs-Url: https://github.com/khanlab/SPIMquant/sessions/4bb61617-d7f6-436f-b21d-da096c18d330 Co-authored-by: akhanf <11492701+akhanf@users.noreply.github.com>
Agent-Logs-Url: https://github.com/khanlab/SPIMquant/sessions/4bb61617-d7f6-436f-b21d-da096c18d330 Co-authored-by: akhanf <11492701+akhanf@users.noreply.github.com>
Agent-Logs-Url: https://github.com/khanlab/SPIMquant/sessions/4bb61617-d7f6-436f-b21d-da096c18d330 Co-authored-by: akhanf <11492701+akhanf@users.noreply.github.com>
Agent-Logs-Url: https://github.com/khanlab/SPIMquant/sessions/4bb61617-d7f6-436f-b21d-da096c18d330 Co-authored-by: akhanf <11492701+akhanf@users.noreply.github.com>
Agent-Logs-Url: https://github.com/khanlab/SPIMquant/sessions/4bb61617-d7f6-436f-b21d-da096c18d330 Co-authored-by: akhanf <11492701+akhanf@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
akhanf
May 14, 2026 21:02
View session
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.
This adds a vessels workflow step to generate a skeletonized
.ozxmask from the vessel mask, using the same overlap-aware chunking pattern as signed distance transform. The implementation usesdask.map_overlapwith scikit-image skeletonization to avoid chunk-boundary artifacts.Workflow integration (vessels rule)
skeletonize_vessels_maskinspimquant/workflow/rules/vessels.smk.datatype=vessels,suffix=mask.ozx,desc={desc}.datatype=vessels,suffix=mask.ozx,desc={desc}+skeleton.Skeletonization implementation (new script)
spimquant/workflow/scripts/skeletonize_vessels_mask.py.ZarrNii, applies per-channel skeletonization in chunked blocks viada.map_overlap, and writes OME-Zarr output.foreground=100) in output voxels.Robustness guardrails
(c, z, y, x)layout before processing.