Spring force-directed layouts for Seurat objects, stored as a spring dimensional reduction.
install.packages("remotes")
remotes::install_github("mrenstrom/springPlot")Needs a C++ toolchain (Xcode command line tools on macOS, Rtools on Windows) and Seurat.
library(springPlot) # also attaches Seurat
obj <- FindNeighbors(obj) # SNN graph; a 'pca' reduction gives the starting layout
obj <- springPlot(obj)
DimPlot(obj, reduction = "spring")springPlot(obj)– standard layout for any datasetspringPlotCD34(obj)– CD34+ datasets with Azimuth bone marrow labels, arranged to a common templatespringReference(ref),springPlotRef(obj, ref)– place a dataset in a reference layoutrunSpring(obj)– continue any layoutspringStages,springAssignStages,springStageTable– maturation stages on the referencespringFlow,springTrunkDivisions,springSimulate– cell flow through the trunk stagescellTypeScoring(obj)– cell type module scores (Stem.ScorerootsspringStages)
After changing // [[Rcpp::export]] functions in src/, run Rcpp::compileAttributes().
Install from a local checkout with R CMD INSTALL .