GithubHelp home page GithubHelp logo

jondeen / spatalk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zjufanlab/spatalk

0.0 0.0 0.0 10.08 MB

Knowledge-graph-based cell-cell communication inference for spatially resolved transcriptomic data

Home Page: https://github.com/multitalk/awesome-cell-cell-communication

License: GNU General Public License v3.0

Shell 5.16% R 94.84%

spatalk's Introduction

SpaTalk

R >4.0 DOI jupyter DOI

A cell-cell communication inference approach for spatially resolved transcriptomic data

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

  • install dependent packages devtools and NNLM
> 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/SpaTalk-main.zip")

Usage

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 and tutorial

  • Cell-type decomposition to reconstruct single-cell ST atlas with known cell types

# st_data: A matrix containing counts of st data
# st_meta: A data.frame containing x and y
# 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

> obj <- createSpaTalk(st_data, st_meta, species)
> 
> obj
An object of class SpaTalk 
996 genes across 509 spots (0 lrpair)
> 
> obj <- dec_celltype(obj, sc_data, sc_celltype)
  • Inference of cell-cell communication and ligand-receptor-target network in space

# obj: SpaTalk object containg ST and scRNA-seq data
# lrpairs: A data.frame of the system data containing ligand-receptor pairs
# pathways: A data.frame of the system data containing gene-gene interactions and pathways
# celltype_sender
# celltype_receiver

> obj <- find_lr_path(object = obj, lrpairs = lrpairs, pathways = pathways)

> obj <- dec_cci(obj, celltype_sender, celltype_receiver)

OR

> obj <- dec_cci_all(object)

Note

CellTalkDB v1.0 KEGG pathway Reactome pathway AnimalTFDB v3.0

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:

Please refer to the tutorial vignette with demo data processing steps. Detailed functions see the document

News

  • Fix the bug in dec_celltype() when using other deconvolution methods, see issue 11
  • Fix the bug in dec_celltype() when using dec_result, see issue 30
  • Fix the bug in dec_cci() and dec_cci_all(), see issue 10
  • Fix the bug in performing parallel functions, e.g., invalid character indexing see issue 30 and issue 10
  • Allow to retain genes consistent with reference sc_data for reconstructed single-cell ST data (wiki)

About

SpaTalk was developed by Xin Shao. Should you have any questions, please contact Xin Shao at [email protected]

Please cite us as "Shao, X., et al. Knowledge-graph-based cell-cell communication inference for spatially resolved transcriptomic data with SpaTalk. Nat Commun 13, 4429 (2022). https://doi.org/10.1038/s41467-022-32111-8"

spatalk's People

Contributors

multitalk avatar zjufanlab avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.