sqjin/CellChat

error in netVisual_bubble plotting

Zhasha95 opened this issue · 4 comments

Hi @sqjin ,

Thank you for the nice package. I have problems when I use the following code

gg1 <- netVisual_bubble(cellchat, sources.use = 3, targets.use = c(1:26), comparison = c(1, 2), max.dataset = 2, title.name = "Increased signaling in wt", angle.x = 45, remove.isolate = T)

Error in if (!(df.i.j$dataset[idx.max] %in% dataset.name[max.dataset])) { : 
  the condition has length > 1

But I cannot find the "df.i.j" in my dataset. And when the sources.use = 1 or 2, there is no error and I could get the figure. But when sources.use is 3 or bigger numbers, it gave me the error above.

Do you have any thoughts on this?

Thank you so much in advance.

sqjin commented

@Zhasha95 This issue has been fixed and will be updated in https://github.com/jinworks/CellChat

Thank you so much. I found it. Do I need to uninstall and then reinstall a latest version of cellchat?

sqjin commented

@Zhasha95 You can simply reinstall it.

@sqjin Thank you. Have a good night.