LieberInstitute / spatialLIBD

Code for the spatialLIBD R/Bioconductor package and shiny app
http://LieberInstitute.github.io/spatialLIBD/
80 stars 16 forks source link

Side by side #19

Closed lcolladotor closed 2 years ago

lcolladotor commented 2 years ago

Under cluster (static) add option to see image and clusters side by side. Same for gene (static).

lcolladotor commented 2 years ago

Hi @kmaynard12 what do you think about these versions? One with and one without spots.

With spots

Screen Shot 2021-11-08 at 4 35 41 PM

I added the spots in "black" although, well, if we have the "detected" image from SpaceRanger, then I could likely simply drop them (actually, I did that further below). Note that here I have to choose a color, black in this case, which well, might not work for every image. Although well, I could add an option for the user to choose the spot border color.

Screen Shot 2021-11-08 at 4 38 25 PM

Without spots

Here's the versions without spots at all.

Screen Shot 2021-11-08 at 4 40 44 PM Screen Shot 2021-11-08 at 4 41 38 PM

Clusters legend

Something that affects both versions is that the one on the left is "wider" in the sense that cluster legend doesn't take space. I can remove it as shown below.

Screen Shot 2021-11-08 at 4 49 30 PM

The user can show them superimposed which well, then shows the legend again.

Screen Shot 2021-11-08 at 4 51 27 PM

Questions

So it comes down to:

Best, Leo

lcolladotor commented 2 years ago

spatialLIBD_static_gene_sum_umi_lymph_2021-11-08_17:04:26.pdf

Example PDF output with the gene panel

lcolladotor commented 2 years ago

For now the answers are no and no, so the current implementation resolves this.