Replies: 2 comments 3 replies
-
|
I believe this is supported — The approach would be making two separate Since both layers render at the same coordinates, you'd probably want to adjust |
Beta Was this translation helpful? Give feedback.
-
|
I think what may be happening is this we can see here that there are two lists of spotLayers, each containing only one element (corresponding to the first Instead, can may need to use a single vc.link_views_by_dict(
[spatial_view, layer_ctrl],
{
"spotLayer": CL([
{
"obsType": "spot",
"spatialSpotRadius": 200,
"obsColorEncoding": "geneSelection",
"spatialLayerVisible": True,
"spatialLayerOpacity": 1.0,
},
{
"obsType": "clone",
"spatialSpotRadius": 200,
"obsColorEncoding": "cellSetSelection",
"spatialLayerVisible": True,
"spatialLayerOpacity": 1.0,
}
])
} # omit scope_prefix
)However, there is a second issue that may also prevent the correct behavior - currently |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Vitessce team,
First, thank's for this amazing framework.
I'm trying to configure a
spatialBetaview with two superimposed spot layers in a single view:obsColorEncoding: "geneSelection")obsColorEncoding: "cellSetSelection")My goal is to have both layers visible simultaneously, each with its own independent entry and slider in the
layerControllerBeta.I've tried several approaches and the closest I got is this config (produced by
to_dict()):But in all cases, the
layerControllerBetaonly shows a single entry for both layers, and switching the color encoding on that entry affects both layers simultaneously — I can't have them visible at the same time.My question: is it currently possible to have two independent
spotLayerentries inlayerControllerBeta, each with a fixedobsColorEncoding? If yes, what would the correct config look like?For context, I noticed that the old
spatial+layerControllercomponents handle this naturally for different layer types (e.g.spatialPointLayer+spatialSegmentationLayer), but those don't supportobsSpots.Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions