sqjin / CellChat

R toolkit for inference, visualization and analysis of cell-cell communication from single-cell data
GNU General Public License v3.0
613 stars 140 forks source link

How to properly remove all distance constraints in CellChat for spatial imaging data #543

Open jessielam415 opened 1 year ago

jessielam415 commented 1 year ago

I am working with 10x visium spatial transcriptomics data. When reading the function documentation for computeCommunProb, I noticed that there are a few parameters that seem to affect whether distance affects the communication probability, namely distance.use, interaction.length, and scale.distance. How do I set these parameters such that distance does not play a role in the prediction of communication probability? I am working with data where there would be anticipated long-distance cell-cell communication events, so I do not want long distances to affect calculated communication probability.

sqjin commented 1 year ago

@jessielam415 One option is to set a larger interaction length so that it will not affect whether the two cell group can communicate. Another option is to treat the data as scRNA-seq data.