LieberInstitute / spatialLIBD

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

Can we increase the brightness? #21

Closed lcolladotor closed 2 years ago

lcolladotor commented 2 years ago

Is it possible to increase the brightness of the image?

I'm not sure we can do this with plotly or maybe with R directly.

lcolladotor commented 2 years ago

Hm..., using <<- doesn't work on shinyapps.io https://github.com/LieberInstitute/spatialLIBD/blob/bf469e3ebb9b6872042632759687a88aff8b79f4/R/app_server.R#L235

I'll have to think of another way of updating the spe object.

lcolladotor commented 2 years ago

Actually, the error has to do with SpatialExperiment:::.get_img_idx().

2021-11-11T05:55:05.057654+00:00 shinyapps[5096402]: Warning: Error in .get_img_idx: No 'imgData' entry(ies) matched the specified 'image_id = “Abeta_lowres”' and 'sample_id = “V10T31036_B1_Br3854”'

The code does work with lowres and other standard images.

lcolladotor commented 2 years ago

https://github.com/LieberInstitute/spatialLIBD/commit/9155d35f65304137eb67d1e01cb736ab8c7270f2 fixed the issue ^^