cellchat运行报错
Create a CellChat object from a data matrix
Set cell identities for the new CellChat object
Error in setIdent(object, ident.use = group.by) :
Cell labels cannot contain `0`!
查阅后发现,cellchat输入的数据cluster命名不能为0,这里我使用的解决方法是在每个群前+C
seurat_obj@meta.data$seurat_clusters=paste0("C",seurat_obj@meta.data$seurat_clusters)
重新运行即可解决。