Skip to content

About

a force-directed graph layout package for R

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

springPlot

Spring force-directed layouts for Seurat objects, stored as a spring dimensional reduction.

Install

install.packages("remotes")
remotes::install_github("mrenstrom/springPlot")

Needs a C++ toolchain (Xcode command line tools on macOS, Rtools on Windows) and Seurat.

Use

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 dataset
  • springPlotCD34(obj) – CD34+ datasets with Azimuth bone marrow labels, arranged to a common template
  • springReference(ref), springPlotRef(obj, ref) – place a dataset in a reference layout
  • runSpring(obj) – continue any layout
  • springStages, springAssignStages, springStageTable – maturation stages on the reference
  • springFlow, springTrunkDivisions, springSimulate – cell flow through the trunk stages
  • cellTypeScoring(obj) – cell type module scores (Stem.Score roots springStages)

Development

After changing // [[Rcpp::export]] functions in src/, run Rcpp::compileAttributes(). Install from a local checkout with R CMD INSTALL .

About

a force-directed graph layout package for R

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages