Skip to content

Select channels#365

Open
melonora wants to merge 29 commits intoscverse:refactor_list_widgetsfrom
melonora:select_channels
Open

Select channels#365
melonora wants to merge 29 commits intoscverse:refactor_list_widgetsfrom
melonora:select_channels

Conversation

@melonora
Copy link
Collaborator

@melonora melonora commented Jun 6, 2025

Users currently don't have the option to select to load individual channels. While the table widget is nice for when working with rasterizations that don't result in large images, for spatial proteomics data in which each channel is large, this is not a nice experience.
This PR presents a first way of improving this.

The channel element widget has the following characteristics:

It updates upon selection chance in the element widget
It has no issues with multiple spatialdata objects as it is based on current selected element
When adding a layer this way, there is a suffix _ch:channel_name.
In addition to that, this PR has removed the colorbar slider in order to make more space for the new widget.

Lastly, this PR fixes a bug of coordinate systems in the CoordinateSystemWidget not being de-duplicated in case of loading multiple SpatialData objects.

melonora and others added 29 commits March 28, 2024 09:05
Given that the code is private and we know which function is used for which widget I removed the overhead
that the wrapper creates
@LucaMarconato
Copy link
Member

I'll start by merging the components of this PR that are unrelated to the new ability of adding images in single layer.

Regarding that ability, while it is important to give this feature to users, I do not like the idea of having a new widget. This will complicate development and may not be a good choice for UX. I'll explore if I find a minimal way to integrate the new functionality the existing var widget, but if not, I'll close the PR and postpone this work after redesign. In the new work the internal code regarding async loading will still be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants