Open Magetutor opened 2 years ago
@Magetutor Your data have negative values. You should use the normalized data without negative values.
@sqjin Many thanks for your quick reply!I got it!
@Magetutor Would you mind sharing the code you used to select normalized data without negative values if you are using analysis from Seurat?
Hello @sqjin! My data were batch-corrected by fastMNN, and therefore contained many negative values. Batch correction is quite important in my case as the two datasets I integrated had very different cell-type compositions.
Can you give me advice on how to make the input matrix suitable for CellChat? Thanks!
@RoseString While I have not extensively tested the batch-corrected data, I think people usually set the negative values to zero when using it for downstream analysis such as gene scoring analysis and gene expression analysis. What is your strategy when using these corrected data? I think you can try it in this way.
@RoseString You can simply get this normalized data via GetAssayData(object = pbmc_small, slot = "data",assay = "RNA")
Thank you very much for providing cellchat! When I run the function computeCommunProb on my data, I met below error
and my data in object@data.project and object@data.signaling as below
Thanks for your beautiful work! Looking forward for your reply and help!