-
Notifications
You must be signed in to change notification settings - Fork 140
Error with netClustering(cellchat, type = "functional") #174
Comments
@YitengDang This was an interesting issue. I reinstalled the package from my github, but I did not find any issue. However, you are not the first people mentioned this issue recently. You can try the method in the |
@sqjin I am also having this issue when running the vignette! Getting the following error:
|
So this issue is persisting for me, even after reinstalling the package and running the tutorial. Exactly the same error also arises when I apply the function to my own data. However, interestingly, if I knit the tutorial (using knitr) to create an html file, it does not give any problems and actually outputs a plot. However, if I knit my own data then it still gives the same error. Altogether, this is very puzzling. |
@YitengDang @ColeKeenum Can you guys share your cellchat object so that I can replicate the error? |
@sqjin I am inviting you to a private repo which contains my own data in the file "./CellChat/cellchat_Cell-ECM_out_run2.Rds". Let me know if you can access the data. |
This has been solved in one of the updates of CellChat somewhere between 1.0.0 and 1.1.3. After pulling the latest version from GitHub (1.1.3), I was able to run the functional clustering part. |
Hello, actually I have the same questions and errors as yours, but the version of my CellChat is 1.1.3. So I wonder to know which update do you think is the key to the question. Thank you so much! |
Sorry to reopen this issue, but after some reinstallations and updates I'm encountering the same problem again. There seem to be two separate issues here:
Altogether, the following temporary patch solves the issue by removing the pathways that have NaNs:
This filters out the clusters with NaN values for the UMAPs.
@sqjin: hopefully this helps in solving these recurrent issues that many users seem to face! This is not a final solution since we just filter out a few pathways that don't work well, but it would be better to directly patch either the UMAP (so it doesn't produce NaNs) or the K-means clustering (so it can deal with NaNs without throwing an error). If I have time I'll try to look into how to solve this. |
Thanks for your guidance! Actually,I have solved my question by running it on the server or re running it again!
…---- 回复的原邮件 ----
| 发件人 | Yiteng ***@***.***> |
| 日期 | 2022年03月02日 22:25 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.******@***.***> |
| 主题 | Re: [sqjin/CellChat] Error with netClustering(cellchat, type = "functional") (#174) |
Reopened #174.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hi,
And I wonder if there is a problem with my It may not give a really bad effect, but I do want to solve this problem. Thanks a lot! |
Same problem here, I used [YitengDang] code modification to netClustering() and it worked. However, while using netVisual_embedding(cellchat, type = "functional", label.size = 3.5, pathway.remove = cellchat@options$pathways.ignore) And also I obtain NULL while typing cellchat@options$pathways.ignore Could you please help with this? Thank you very much. |
@sofiapuvogelvittini It is so sad to know that this issue has not been well addressed. I am wondering if you would like to share your cellchat object with me and I can test it. Do you have the same issue when running the data in trhe turorial "./tutorial/cellchat_humanSkin_LS.rds" |
Dear sqjin, thank you very much for offering help. I would be happy to share the cellchat object with you so you can test. netVisual_embedding(cellchat, type = "functional", label.size = 3.5, pathway.remove = cellchat@options$pathways.ignore) i still have the error: and I also obtain NULL in cellchat@options$pathways.ignore. |
@YitengDang Hi, may I know if you have solved your problem now? I also met the same issue.
when I changed the code, it still appeared.
Interesting, only by this code it worked. And the following "identifyOverExpressedGenes" ran well. But, if workers more than 1, error appeared again:
but it reported: when I modified "kmeans(data.frame(data.use),kRange[x],nstart=10)$cluster", So, could you help me to solve these problems? Thank you very much! |
@AIYang1210 I suggest you to set |
Mentioned in sqjin#174
I was facing the same types of error (as in having NaNs). I just changed the UMAP background package to Best, |
I have the same error reported, but it appears in the computeCommunProb function. Is there an exact solution?"
|
Hi, I'm simply trying to run the tutorial script in Rstudio, but am running into the following problem. When running
|
Hi, I'm simply trying to run the tutorial script in Rstudio, but am running into the following problem.
When running
cellchat <- netClustering(cellchat, type = "functional")
,I get the error message:
Initially I thought it might be due to UMAP which wasn't installed, but I installed UMAP and verified that it works. Could you please help me solve this issue? Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: