Repository navigation
Read existing SpatialData stores in the workflow - #31
Merged
Merged
Conversation
Add a `spatialdata` catalog type, recognised by name (`*.zarr.zip`, `*.zarr`), so a store another program wrote is a dataset of its own. Discovery gains `detect.name`, which lets a file be a candidate; the web app's catalog matcher honours it too. The importer gains `selection` (points are left out and not unpacked) and `table` (the table to open on, exposed as the workflow's `--table` through the new `reader_params_from`), converts a data-frame `obsm['spatial']` to an array, and stitches region-local coordinates of a multi-region table into `obsm['spatial_<system>']` when the data shows they are local. A reload restores the sidecar's first table, since spatialdata reads tables back sorted by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Add a
spatialdatadata type so the workflow takes a store another program wrote (an instrument's own.zarr.zipexport, spatialdata-io output) and publishes it as a checkpoint the viewer opens. Nothing is specific to one vendor; the motivating case is an Element Cytos export whose points are 72 GB of a 111 GB zip, whose cell table does not sort first, whoseobsm['spatial']is anX/Ydata frame, and whose wells each carry their own coordinate origin.The catalog's
detectgainsname, so a file can be a dataset;cirro-studio/src/data/discover.tsreads the same catalog and has to honour it, or every folder matches the new type. The importer gainsselectionandtable, and stitches region-local coordinates intoobsm['spatial_<system>']only when they fit their regions as local ones and not as world ones.Other:
cli.pypasses the input under the reader's own path param (storefor the importer, notpath).test_cli.pybuilds its own store for the new path, so it runs without fixtures.test_e2e.pypasses locally, with the Xenium-backed flows (includingzarr-import) skipped for want of their fixtures.🤖 Generated with Claude Code