CANDELbio / mantis-viewer

Electron-based multiplexed imaging viewer
Apache License 2.0
22 stars 7 forks source link

Add option for pixel populations tooltip #60

Closed ngreenwald closed 2 years ago

ngreenwald commented 2 years ago

One really nice option when looking at segmented data is the tooltip that pops up at the top showing what population the moused-over cell belongs to:

image This is helpful when there are tons of different colors, because it makes it easy to identify the cell phenotype, rather than needing to mouse over each individual population until the right one lights up.

It would be nice to have this same option when mousing over individual pixel-level populations: image This would allow the user to quickly figure out the label of a pixel population of interest.

Some potential problems:

Definitely not a necessity, more of the nice-to-have category

rj3d commented 2 years ago

I think I understand. By individual pixel level populations do you mean populations that have been imported with a labeled tiff as a region or set of regions? If so I think this should be doable, and I like the idea.

I'm thinking we could display the data in the legend, but possibly as a separate list for moused over regions in addition to the list for moused over segments. That way there would be a distinction between regions and segment population membership for users who use regions to find populations of segments.

Also, it feels like the legend might be getting a little busy at this point. It might be good to break out most of the information into a little pane outside of the image.

ngreenwald commented 2 years ago

Yes exactly. We generate a tiff where each pixel has been assigned to a region, prior to segmentation. Then we look at those regions to see what the co-expression is with the markers in our panel to make sure everything lines up.

We have a second step where we load in a segmentation mask, along with a tiff containing regions. However, in this case we have defined the regions such that all of the pixels within each segmentation mask belong to the same region. This is the one that currently works great out of the box to allow us to identify cell populations.

rj3d commented 2 years ago

Makes sense, shouldn't be too hard to add! I'll throw it on the short list of features to add.

rj3d commented 2 years ago

Feature added in 1.2.2-rc.4.