When I run the code:
seurat_obj <- MetacellsByGroups(
seurat_obj = seurat_obj,assay="RNA",slot="counts",layer="counts",
group.by = c("celltype", "orig.ident"), # specify the columns in [email protected] to group by
reduction = 'pca', # select the dimensionality reduction to perform KNN on
k = 25, # nearest-neighbors parameter
max_shared = 10, # maximum number of shared cells between two metacells
ident.group = 'celltype' # set the Idents of the metacell seurat object
)
It tells me the error:
Error:
! The slot argument of GetAssayData() was deprecated in SeuratObject 5.0.0 and is now defunct.
ℹ Please use the layer argument instead.
Run rlang::last_trace() to see where the error occurred.
I've tried to join layers but useless. I saw a post here:satijalab/seurat#10250
What should I do currently to proceed?