-
Notifications
You must be signed in to change notification settings - Fork 16
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
Warning: Error in GetAssayData: GetAssayData doesn't work for multiple layers in v5 assay. #31
Comments
Yes we definitely plan to support Seurat v5 objects. |
Hello, |
Hi @mass-a, I still get an error with UCell 2.6.2 and Seurat 5.0.1: obj <- AddModuleScore_UCell(obj, features = list('module_name' = my_genes)) Error in `GetAssayData()` at SeuratObject/R/seurat.R:1901:3:
! GetAssayData doesn't work for multiple layers in v5 assay. It does work only after I join the layers: |
Thanks @bepoli! I think running UCell on joined layers (or before you split them out) is the best approach for now; we'll work on a solution for objects split on multiple layers. |
Do you have a timeline for this feature to be implemented? Thanks for the amazing job you are doing. |
I *think* the latest version on GitHub (2.7.3) should take care of Seurat in multiple layers. |
The object has 160 samples for a total of
|
This works for me with UCell 2.7.3: library(UCell)
data(sample.matrix)
obj <- Seurat::CreateSeuratObject(sample.matrix)
obj$Tag <- "tag1"
obj$Tag[1:300] <- "tag2"
obj[["RNA"]] <- split(obj[["RNA"]], f = obj$Tag)
#obj now has two layers
obj
gene.sets <- list(Tcell = c("CD2","CD3E","CD3D"),
Myeloid = c("SPI1","FCER1G","CSF1R"))
obj <- AddModuleScore_UCell(obj,features = gene.sets) Can you confirm? |
Your code was not working, but a full restart of the R session did the trick. |
Hi, Thanks for this wonderful package. I was wondering if it is possible to run this analysis on integrated objects. I have been running an analysis on a Seurat object that has been integrated but when I run AddModuleScore_UCell
I get an error stating
However, when I define the assay as SCT, the function works. Is this an issue with the naming convention used after integration?
Thanks so much for the help. |
Hello, |
Thanks so much for the quick reply! That makes sense. I appreciate it. |
Would you plan to make AddModuleScore_UCell function compatible with Seurat V5 in near future ? Thanks!
The text was updated successfully, but these errors were encountered: