Help with Error in cellchat
0
0
Entering edit mode
25 days ago
Chris ▴ 360

Hi Biostar,

I have two large cellchat objects, 16Gb and 21Gb. I try to merge them to run rankNet(). However, I got the error below. Would you please have a suggestion in this case. Thank you so much!

ob.list <- list(Con1 = cellchat_condition1, Con2 = cellchat_condition2)
cellchat <- mergeCellChat(list(Con1 = cellchat_condition1, Con2 = cellchat_condition2), add.names = names(ob.list))
Error in cbind.Matrix(x, y, deparse.level = 0L) :
p[length(p)] cannot exceed 2^31-1
cellchat • 19k views
ADD COMMENT
1
Entering edit mode

The error suggests you are hitting the vector size limit of R (2^31-1). Additionally, the CellChat repository has been archived, and it will no longer be possible to open a new issue. Take a look at the following issue, which includes a fix for a similar problem.

https://github.com/sqjin/CellChat/issues/348

ADD REPLY
2
Entering edit mode

CellChat is here https://github.com/jinworks/CellChat

Beyond that, I personally found that https://cyrillagger.github.io/scDiffCom/ works with much less of a PITA (at least for me) than CellChat, maybe try that.

ADD REPLY
0
Entering edit mode

Thank you so much for your reply! Very nice paper. May I know what is PITA?

ADD REPLY
1
Entering edit mode

pain in the a**

ADD REPLY
0
Entering edit mode

Hi Arup, thank you for the link. I checked it but couldn't find the resolution.

ADD REPLY
1
Entering edit mode

The mergeCellChat is more complex than projectOnNetwork, and with a large number of cells, multiple operations in the function can reach the 2^31-1 limit, so I don't think this fix will be of much help.

https://github.com/sqjin/CellChat/pull/349/commits/4e8733d1121b345cf29c1a9d90b38d82bee75070

ADD REPLY
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 3768 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6