# Create grouped features grouped_features <- list( "B_cell_markers" = c("MS4A1", "CD79A"), "T_cell_markers" = c("CD3D", "CD8A", "IL7R"), "Myeloid_markers" = c("CD14", "FCGR3A", "S100A8") )
DotPlot2(stRNA, features = grouped_features)
`Error in match.arg(arg = value, choices = Assays(object = object)): 'arg' should be “Spatial”
Traceback:
- feature_percent(seu, tp, group.by = calc_group.by)
DefaultAssay<-(*tmp*, value = DefaultAssay)
DefaultAssay<-.Seurat(*tmp*, value = DefaultAssay)
- match.arg(arg = value, choices = Assays(object = object))
- stop(sprintf(ngettext(length(chs <- unique(choices[nzchar(choices)])),
. "'arg' should be %s", "'arg' should be one of %s"), paste(dQuote(chs),
. collapse = ", ")), domain = NA)
- .handleSimpleError(function (cnd)
. {
. watcher$capture_plot_and_output()
. cnd <- sanitize_call(cnd)
. watcher$push(cnd)
. switch(on_error, continue = invokeRestart("eval_continue"),
. stop = invokeRestart("eval_stop"), error = NULL)
. }, "'arg' should be “Spatial”", base::quote(match.arg(arg = value,
. choices = Assays(object = object))))`
could you tell me how to solve this problem? thanks
# Create grouped features grouped_features <- list( "B_cell_markers" = c("MS4A1", "CD79A"), "T_cell_markers" = c("CD3D", "CD8A", "IL7R"), "Myeloid_markers" = c("CD14", "FCGR3A", "S100A8") )DotPlot2(stRNA, features = grouped_features)
`Error in match.arg(arg = value, choices = Assays(object = object)): 'arg' should be “Spatial”
Traceback:
DefaultAssay<-(*tmp*, value = DefaultAssay)DefaultAssay<-.Seurat(*tmp*, value = DefaultAssay). "'arg' should be %s", "'arg' should be one of %s"), paste(dQuote(chs),
. collapse = ", ")), domain = NA)
. {
. watcher$capture_plot_and_output()
. cnd <- sanitize_call(cnd)
. watcher$push(cnd)
. switch(on_error, continue = invokeRestart("eval_continue"),
. stop = invokeRestart("eval_stop"), error = NULL)
. }, "'arg' should be “Spatial”", base::quote(match.arg(arg = value,
. choices = Assays(object = object))))`
could you tell me how to solve this problem? thanks