This tutorial will assist users with analyzing scRNAseq data using CellChat. R is required for this analysis. Rather than using miniconda, this tutorial uses the uwot
UMAP method.
The data required for the analysis done in this tutorial is included in the data
folder of this directory.
-
Before performing any analysis users must make sure cellchat and all dependencies are installed:
devtools::install_github("sqjin/CellChat")
Other dependencies:
- Install NMF (>= 0.23.0) using
install.packages('NMF')
. - Install circlize (>= 0.4.12) using
devtools::install_github("jokergoo/circlize")
. - Install ComplexHeatmap using
devtools::install_github("jokergoo/ComplexHeatmap")
.
- Install NMF (>= 0.23.0) using
-
It is recommended to run
cellchat.rmd
chunk-by-chunk to ensure all dependencies are properly installed.
This workflow was written using the old way of implementing parallel processing, causing an issue when the software package version was updated. To check the netClustering function follow these steps:
- Type the function name and R will print out the source code of the function.
- You can find if the parallel function was enabled by default
- Set the parameter to false in the netClustering function so the use of the parallel processing package is skipped.
do.parallel = FALSE
Running cellchat.rmd
will generate an HTML file. This file will contain the following figures:
- Pie charts
- Circle plots
- Heat maps
- Chord diagrams
- Bubble plots
- Violin/ dot plots
- Scatter plots
- River plots