One more script for today, this one gives the user a GUI where all classes can be turned off or on individually, or en mass, even if they are not listed on the Annotation tab.
When run, it defaults to turning off all classes, so that single classes can be selected in turn.
Clicking All will turn them all back on, if only certain classes need to be made invisible.
Here, I can quickly turn off the Negative and CK positive cells to get a better look at my more interesting cells.
With over 20 classes, this has been much easier to handle the output of the multiplex classifier. It also pairs up with with some of the other cluster analysis scripts I have been working on, as I can now look at heatmaps of distance to CK positive cells… without all of the annoying CK cells getting in the way.
Or I can quickly turn on only the CK positive cells, and look at the distance to the nearest CD8 positive cells with the channels turned back on.
Though I’ll need to invert a colormap for some of this nearest neighbor stuff (this one changes to pink when below the low threshold)!
Script is here.
I recommend copying via the Raw button on the right!