Here we use CellChat (Jin et al. 2021) to infer spatially-proximal cell-cell communication directly on the Visium spots, using gene expression and spatial information with default parameters. The analysis is run separately on the PDAC sample dataset and the donor (GoL) sample dataset, restricted to the spatial domains of interest for each.
Code
suppressPackageStartupMessages({library(Seurat)library(CellChat)library(patchwork)library(qs)})dir.create("outputs/CCC", showWarnings = F, recursive = T)options(future.globals.maxSize =50*1024^3)spot.size <-65# Visium spot diameter in microns, used to compute spatial.factors belowmerged <-qread("outputs/Spatial_Clustering/tumor_tumoradj_GoL_samples_annotated_v2_lite.qs")Idents(merged) <- merged$main_annotation
2 PDAC Samples
We restrict the PDAC (tumor) samples to the spatial domains of interest and build a CellChat spatial object using the per-spot domain labels and per-sample spatial coordinates.
We then run the standard CellChat spatial pipeline: identify overexpressed genes and interactions, compute communication probabilities constrained by signaling range (250 µm) and contact range (100 µm), filter weakly supported interactions, and aggregate the network.
The two CellChat objects can be merged to compare the number and strength of inferred interactions between PDAC and donor tissue, and to identify the signaling pathways (e.g., WNT) that distinguish the two.
WNT pathway ligands, receptors, and downstream targets can be extracted directly from the CellChat ligand-receptor database for use in the WNT signaling figures.
Jin, Suoqin, Christian F Guerrero-Juarez, Lihua Zhang, et al. 2021. “Inference and Analysis of Cell-Cell Communication Using CellChat.”Nature Communications 12 (1): 1088.