-
Notifications
You must be signed in to change notification settings - Fork 145
Running CellChat with a large dataset #244
Comments
@jad362 Thanks for pointing this issue. I think the reason is due to the calculation of mean value per cell group. Can you try the following
|
Hi @sqjin thanks for your quick reply. Thanks |
Also this is an unrelated question, but is there a method to group cells by a meta data variable not used for the analysis itself? For example create a summary plot of myeloid cell interactions as a whole with Endothelial cells when the analysis itself was run on more specific meta data variables? thanks! |
@jad362 Please check the tutorial on |
Thanks, that works! Thanks! |
@jad362 I am thinking it should be the total number of L-R pairs, which is similar to differential expression analysis, where you divide by the total number of genes. For your last question 'but setting nboot = 20 had it work right away, so thanks! Could you provide some insight on the drawbacks of decreasing that permutation parameter and how much confidence can I continue to have in the results?' I think the results will not change too much. If nboot = 100, then thresh = 0.05 means there are five permuations having larger communication probabilities. If nboot = 20, then thresh = 0.05 means there are one permutation having larger communication pprobabilities. |
|
@sqjin I am trying to do differential number of interactions for clusters A, B, C and D in two different conditions. I have a question on why you used "4" in the code group.cellType <- c(rep("FIB", 4), rep("DC", 4), rep("TC", 4))? I got following error when i used "4". My code : Error: Error in count[group.merged == i, group.merged == j] : However, when i used 1 or 2 instead of 4 in group.cellType <- c(rep("A", 1), rep("B",1), rep("C",1), rep("D",1)) or Would you please clarify on this? |
@sukks105 My data have four subclusters of FIB and thus group them into one cell type. |
Thanks a lot for the clarification! |
Hi @sqjin, can I keep nboot = 100 and process the computeCommunProb in parallel? |
@luonthang1908 Yes, you can. You can also perform subsampling before running cellchat |
Hi, I am trying to run CellChat with a large dataset ~100,000 cells but the 'computeCommunProb' step repeatedly runs into memory issues. The object is already downsampled by identity class within Seurat down from 500,000 cells so I would like to not have to downsample the object further.
Do any options exist within the pipeline to decrease the memory requirement and make the algorithm more scalable? I am running the analysis on 120 cores with 400 GB of memory available.
Thanks!
The text was updated successfully, but these errors were encountered: