vitessce-python icon indicating copy to clipboard operation
vitessce-python copied to clipboard

Support a Napari-like API

Open keller-mark opened this issue 10 months ago • 1 comments

User question:

  1. Is it possible to overlay points on top of an image programmatically? If so, can we manage multiple layers of points that can be toggled on and off? These points might correspond to cluster IDs.

Vitessce can be configured programatically, although using a different API compared to Napari. While all of the visual properties like colors can be modified, it is currently difficult to modify the datasets part of the config programmatically.

  • https://github.com/vitessce/vitessce-python/blob/main/docs/notebooks/widget_modify_config.ipynb

We should explore supporting a more Napari-like imperative API. This could sit on top of the declarative API, for example.

  • https://github.com/vitessce/vitessce/issues/1953

This would also fit nicely with a more core integration of data structures like AnnData/MuData/SpatialData in Vitessce (JS)

keller-mark avatar Feb 04 '25 14:02 keller-mark

Hi, great idea! Tagging @melonora. @keller-mark do you think we could work on implementing the this with the same language to for the APIs to build a view configuration in https://github.com/keller-mark/spatialdata-vis-interop?

LucaMarconato avatar Feb 04 '25 18:02 LucaMarconato