CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

Error in obj2 - obj1 : non-conformable arrays

Open galaxyeee opened this issue 2 years ago • 1 comments
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 image

cellchat.B image

Thank you. EUNHA

galaxyeee avatar Nov 06 '23 08:11 galaxyeee