This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error :[[<- defined for objects of type "S4" only for subclasses of environment - Shiny App error

I have an application built in shiny that uses the Seurat package. I'm using one of their plotting functions (DimPlot) to view the tSNE and UMAP plots within the application. This app works perfectly fine on my local machine. But when i host it on shiny-server, the plots don't display and I'm getting this error

Error :[[<- defined for objects of type "S4" only for subclasses of environment

I've tried re-installing seurat, seuratdisk and ggplot2 packages. But I'm not sure what the issue is. Any ideas ?

shiny seurat single cell rnaseq

Is your Seurat data being properly loaded into the Shiny app on the remote system?

Yes it is. Because there are no issues displaying a FeaturePlot or a table of differentially expressed genes from the dataset.

1 answer

I'd updated seurat from 3.0.2 to the cran version (3.2.2) when I started having this issue. Uninstalling and reinstalling Seurat with all the dependencies didn't work either. Weirdly enough, updating uwot and installing the v4.0 beta fixed it.

Log in to answer this question.