Skip to content

Commit 942891c

Browse files
committed
[fix] Extract the data slot from Seurat object using a Seurat function
1 parent 3532ef6 commit 942891c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/shiny-app.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ write_shiny_app.Seurat <- function(object,
495495
height_ratio = 0.6,
496496
qualpalr_colorspace = "pretty") {
497497
write_shiny_app(
498-
object = object@assays[[assay_name]]@data,
498+
object = Seurat::GetAssayData(object, assay = assay_name, layer = "data"),
499499
metadata = object@meta.data,
500500
clustassess_object = clustassess_object,
501501
project_folder = project_folder,

0 commit comments

Comments
 (0)