Closed
Description
User story
We want to support loading SpatialData objects, including local SpatialData objects.
Preferred solution
To do this, we need an analog of the AnnDataWrapper class but for SpatialData. This wrapper class allows us to:
- know which parts/keys of the object should be used in the configuration, and how those keys should map to Vitessce concepts
- Serve the local Zarr directory on localhost so that the widget JS code can request the data via HTTP
Relevant code/documentation:
- https://github.com/vitessce/vitessce-python/blob/main/vitessce/wrappers.py
- Documentation for AnnDataWrapper class https://vitessce.github.io/vitessce-python/api_data.html#vitessce.wrappers.AnnDataWrapper
- Usage of AnnDataWrapper class in example notebook: https://vitessce.github.io/vitessce-python/notebooks/widget_brain.html#4.2.-Add-a-dataset-to-the-VitessceConfig-instance