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

Error in obj2 - obj1 : non-conformable arrays #724

Open
galaxyeee opened this issue Nov 6, 2023 · 1 comment
Open

Error in obj2 - obj1 : non-conformable arrays #724

galaxyeee opened this issue Nov 6, 2023 · 1 comment

Comments

@galaxyeee
Copy link

galaxyeee commented Nov 6, 2023

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

@JiahaoWongg
Copy link

@galaxyeee see my issue: #708

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants