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

error in netVisual_bubble plotting #751

Open
Zhasha95 opened this issue Jan 22, 2024 · 4 comments
Open

error in netVisual_bubble plotting #751

Zhasha95 opened this issue Jan 22, 2024 · 4 comments

Comments

@Zhasha95
Copy link

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
Copy link
Owner

sqjin commented Jan 22, 2024

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

@Zhasha95
Copy link
Author

Zhasha95 commented Jan 22, 2024

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

@sqjin
Copy link
Owner

sqjin commented Jan 22, 2024

@Zhasha95 You can simply reinstall it.

@Zhasha95
Copy link
Author

@sqjin Thank you. Have a good night.

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