Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Error in createCellChat object #108

@lyuguol

Description

@lyuguol

Dear CellChat developers,

I am following your tutorial to do cell-cell communication analysis with my Seurat(V3) data. However, I encountered an error at the first step, and did not figure out why and how to solve it.

Here is how I prepare the data:

data.input <- GetAssayData(scRNA, assay = "RNA", slot = "data")
labels <- Idents(scRNA)
meta <- data.frame(group = labels, row.names = names(labels))
cellchat <- createCellChat(object = data.input, meta = meta, group.by = "labels")

Create a CellChat object from a data matrix
Error in createCellChat(object = data.input, meta = meta, group.by = "labels") :
The 'group.by' is not a column name in the meta, which will be used for cell grouping.

Could you show me how to fix this problem?

Many thanks and best,

Guoliang

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions