BodenmillerGroup / cytomapper

R package for visualization of highly multiplexed imaging data
https://bodenmillergroup.github.io/cytomapper/
31 stars 9 forks source link

extend vignette section 8.1 Subsetting the SingleCellExperiment object #25

Closed toobiwankenobi closed 4 years ago

toobiwankenobi commented 4 years ago

If the user wants to visualize the occurrence of a variable with a large number of unique elements, the image legend contains all possible elements (which appears very messy with more than ~15 elements) from the said variable. This is true even if an image contains only a fraction of all elements. The subsetting of the 'sce' object allows to display only the elements relevant for an image.

The following images show an example of how subsetting the sce object can help to improve the interpretability of images and the corresponding legend. Here, chemokine clusters are shown. Subsetting of the sce object retains only clusters relevant for the current image.

The vignette could be extended to illustrate such cases and help the user understand why subsetting an sce object can be helpful and sometimes necessary.

Without subsetting 000003

With subsetting 000052

nilseling commented 4 years ago

Done!