RCSL is an R toolkit for single-cell clustering and
trajectory analysis using single-cell RNA-seq data.
RCSL can be installed directly from GitHub with
‘devtools’.
Now we can load RCSL. We also load the
SingleCellExperiment, ggplot2 and
igraph package.
We illustrate the usage of RCSL on a human preimplantation embryos and embryonic stem cells(Yan et al., (2013)). The yan data is distributed together with the RCSL package, with 90 cells and 20,214 genes:
## cell_type1
## Oocyte..1.RPKM. zygote
## Oocyte..2.RPKM. zygote
## Oocyte..3.RPKM. zygote
## Zygote..1.RPKM. zygote
## Zygote..2.RPKM. zygote
## Zygote..3.RPKM. zygote
## Oocyte..1.RPKM. Oocyte..2.RPKM. Oocyte..3.RPKM.
## C9orf152 0.0 0.0 0.0
## RPS11 1219.9 1021.1 931.6
## ELMO2 7.0 12.2 9.3
In practice, we find it always beneficial to pre-process single-cell RNA-seq datasets, including: 1. Log transformation. 2. Gene filter
## Calculate the Spearman correlation
## Calculate the Nerighbor Representation
## Find neighbors by KNN(Euclidean)
## ======== Calculate maximal strongly connected components ========
## ======== Calculate maximal strongly connected components ========
## ======== Calculate maximal strongly connected components ========
DataName <- "Yan"
res_TrajecAnalysis <- TrajectoryAnalysis(gfData, resSimS$drData, resSimS$S,
clustRes = resBDSM$y, TrueLabel = label,
startPoint = 1, dataName = DataName)## Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
## ℹ Please use `linewidth` instead.
## ℹ The deprecated feature was likely used in the RCSL package.
## Please report the issue to the authors.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
## generated.