Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makeShinyFiles error: cannot get a slot ("data") from an object of type "NULL" #56

Open
sarah-chapin opened this issue Sep 13, 2022 · 1 comment

Comments

@sarah-chapin
Copy link

Hello,

I am trying to create a shiny cell app for my single cell data. I am using R 4.1.1. I am running the following code:

library(Seurat)
library(ShinyCell)

seu <- readRDS("seurat_object.rds")
scConf1 = createConfig(seu)
makeShinyFiles(seu, scConf1, shiny.prefix = "sc1",
               shiny.dir = "shinyApp/")

I receive the following error:

Error in slot(obj@assays[[gex.assay[1]]], gex.slot[1]) :
cannot get a slot ("data") from an object of type "NULL"

Do you know what could be causing this error?

@FerrenaAlexander
Copy link

FerrenaAlexander commented Feb 16, 2024

I have the same error currently - any fix for this?

EDIT - I was able to fix this, for me this was because I had to adjust the gex.assay argument. Instead of the default "RNA" assay in my Seurat object, I am using data integrated with RISC and I created an assay called "RISC" with a slot/layer called "data". Adjusting gex.assay to RISC fixed the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants