Spatially resolved transcriptomics (ST) provides the informative details of genes and retained the crucial spatial information, which have enabled the uncovering of spatial architecture in intact organs, shedding light on the spatially resolved cell-cell communications mediating tissue homeostasis, development and disease. However, inference of cell-cell communications for ST data remains a great challenge. Here, we present SpaTalk, a spatially resolved cell-cell communication inference method relying on the graph network and knowledge graph to model ligand-receptor-target signaling network between the spatially proximal cells, which were decomposed from the ST data through the non-negative linear model and spatial mapping between single-cell RNA-seq and ST data. SpaTalk is a reliable method that can help scientists uncover the spatially resolved cell-cell communications for either single-cell or spot-based ST data universally, providing new insights into the understanding of spatial cellular dynamics in tissues.
- install dependent packages
devtools
andNNLM
install.packages(pkgs = 'devtools')
devtools::install_github('linxihui/NNLM')
- then install SpaTalk
devtools::install_github('ZJUFanLab/SpaTalk')
# or download the repository as ZIP
devtools::install_local("/path/to/miRTalk-main.zip")
SpaTalk method consists of two components, wherein the first is to dissect the cell-type composition of ST data and the second is to infer the spatially resolved cell-cell communications over the decomposed single-cell ST data. Classification and description of SpaTalk functions are shown in the wiki page
# object: SpaTalk object containg ST data
# sc_data: A matrix containing counts of scRNA-seq data as the reference
# sc_celltype: A character containing the cell types for scRNA-seq data
dec_celltype(object, sc_data, sc_celltype)
# object: SpaTalk object containg ST and scRNA-seq data
# celltype_sender
# celltype_receiver
dec_cci(object, celltype_sender, celltype_receiver)
OR
dec_cci_all(object)
SpaTalk uses the ligand-receptor interactions (LRIs) from CellTalkDB
, pathways from KEGG
and Reactome
, and transcrptional factors (TFs) from AnimalTFDB
by default. In the current version:
- SpaTalk can be applied to either single-cell (vignette) or spot-based (vignette) ST data
- SpaTalk allows to use custom LRIs(wiki), pathways, and TFs database (wiki)
- SpaTalk allows to use the parallel processing for
dec_celltype()
,dec_cci()
, anddec_cci_all()
- SpaTalk allows to use other deconvolution methods followed by the inference of cell-cell communications
- RCTD, Seurat, SPOTlight, deconvSeq, stereoscope, cell2location, or other methods
- SpaTalk allows to directly infer cell-cell communications skiping deconvolution
- SpaTalk can visualize cell-type compositions (wiki) and cell-cell communications (wiki)
- LRIs and pathways can be download at
data/
- Demo data can be download at
inst/extdata/
Please refer to the tutorial vignette with demo data processing steps. Detailed functions see the document
- Fix the bug in
dec_celltype()
when using other deconvolution methods, see issue 11 - Fix the bug in
dec_cci()
anddec_cci_all()
, see issue 10 - Fix the bug in performing parallel functions
- Allow to retain genes consistent with reference
sc_data
for reconstructed single-cell ST data (wiki)
SpaTalk was developed by Xin Shao. Should you have any questions, please contact Xin Shao at [email protected]