CellChat
CellChat copied to clipboard
Error in obj2 - obj1 : non-conformable arrays
trafficstars
Dear, Cellchat Developers.
Hi,
Thank you for developing useful tool.
I have a problem by merging two datasets.
When I use netVisual_diffInteraction(cellchat, weight.scale = T) function, it doesn't work.
I think maybe cellchat.A have 17 levels (celltype) and cellchat.B have 23 levels.
In this case, is there any solution for comparing two datasets?
object.list <- list(Con = cellchat.A, Pre = cellchat.B)
cellchat <- mergeCellChat(object.list, add.names = names(object.list))
gg1 <- compareInteractions(cellchat, show.legend = F, group = c(1,2))
gg2 <- compareInteractions(cellchat, show.legend = F, group = c(1,2), measure = "weight")
gg1 + gg2
netVisual_diffInteraction(cellchat, weight.scale = T)
Error in obj2 - obj1 : non-conformable arrays
cellchat.A
cellchat.B
Thank you. EUNHA