Skip to content

Error: ! The slot argument of GetAssayData() was deprecated in SeuratObject 5.0.0 and is now defunct #408

@jiahaoliu-ai1

Description

@jiahaoliu-ai1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions