遇到问题解决问题
CellChat之no slot of name "images" for this object of class "CellChat"
cpp
# 下载地址:
#cellchat.NL:https://ndownloader.figshare.com/files/25954199
#cellchat.LS:https://ndownloader.figshare.com/files/25956518
cellchat.NL <- readRDS("data/cellchat_humanSkin_NL.rds")
cellchat.LS <- readRDS("data/cellchat_humanSkin_LS.rds")
(1)报错界面
kotlin
no slot of name "images" for this object of class
(2)原因
这是因为cellchat版本不同导致的,可以先使用updateCellChat函数将之前对象更新后再执行mergeCellChat合并的操作
(3)解决方法
cs
cellchat.NL <- updateCellChat(cellchat.NL)
cellchat.LS <- updateCellChat(cellchat.LS)
object.list <- list(NL = cellchat.NL, LS = cellchat.LS)
cellchat <- mergeCellChat(object.list, add.names = names(object.list))
cellchat