scverse / scverse/napari-spatialdata

Split Stack resets coordinates?

Open
#143 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
90
Forks
25
Avg merge
22m
Merged PRs (30d)
1

Description

I have a SpatialData with two images, a and b. Each image is mapped to two coordinate system: global and aligned, with the following mapping:

a -> global: identity
b -> global: identity
a -> aligned: identity
b -> aligned: affine

in the viewer, when I open the aligned images, things look good, but if I rightclick image b and use Split Stack to separate out the channels, then my aligned coordinated system seems to be ignored, and the channels all get reset to global. Mean (or other) projections don't seem to have this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the viewer with two images mapped to global and aligned, then use the Split Stack action on image b. Trace why the resulting channels use global instead of retaining the aligned coordinate system, and verify that splitting preserves the displayed alignment, as mean projections already appear to do.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.