Learn R Programming

SPADE: Spanning Tree Progression of Density Normalized Events

SPADE is a visualization and analysis tool for high-dimensional flow cytometry data. SPADE is implemented as an R package and can be installed via R's packaging facilities. Additionally a GUI is provided, as a Cytoscape plugin, for setting-up and interactively visualizing the results of SPADE analyses. Please see the project homepage at cytospade.org or the wiki for the primary documentation.

User Setup

Please refer to the wiki pages, especially the Getting Started page.

Developer Setup

Prerequisites

  1. Latest version of R
  2. igraph
  3. flowCore

Building and Installing

The SPADE package has a C++ core that must be built before use. SPADE successfully builds on Linux, OSX and Windows (with Rtools), although Windows users will not be able to take advantage of the OpenMP parallelization used within SPADE. SPADE can be installed from the command line via

$ R CMD INSTALL <SPADE PATH>

On Windows, you will need to install the Rtools that matches your R distribution. (Important note: if you're using R 2.14, you should use Rtools 2.15. Even though Rtools 2.14 is listed as compatible, it requires extra work to make g++ work. Rtools 2.15 works out of the box.) After installation make sure that your PATH contains the neccessary Rtools binary directories, e.g.:

  1. Open Control Panel -> System

  2. Click on Advanced Tab and then on Environment Variables

  3. Highlight PATH and click Edit

  4. In the character string in Variable Value, make sure the following appear (before other/older compilers):

    c:\Rtools\bin;c:\Rtools\perl\bin;c:\Rtools\gcc-4.6.3\bin;c:\Rtools\MinGW\bin;c:\Program Files\R<your R version>\bin;

Building Packages

Source packages can be built with

$ R CMD build <SPADE PATH>

and binary packages with

$ R CMD build --no-vignettes --binary <SPADE PATH>

Tips and Resources


Citations

SPADE was developed in the Plevritis and Nolan Labs at Stanford University, and is described in the following publications:

Copy Link

Version

Version

1.20.0

License

GPL-2

Maintainer

Zach Bjornson

Last Published

February 15th, 2017

Functions in spade (1.20.0)

SPADE.FCSToTree

Cluster and build minimum spanning tree from data in FCS files
SPADE.addDensityToFCS

Annotate FCS file with local density of each observation
SPADE.installPlugin

Install CytoSPADE Cytoscape plugin
SPADE.addClusterToFCS

Annotate observations in FCS file with cluster assignment
SPADE.write.graph

Writing the graph to a file in some format
SPADE.plot.trees

Plot trees with annotated vertices
SPADE.markerMedians

Compute marker medians, coefficient of variations and counts for clusters
SPADE.annotateGraph

Add attributes to graph
SPADE.driver

SPADE workflow driver
SPADE.flattenAnnotations

Flatten list of annotations to matrix
SPADE.downsampleFCS

Downsample observcations in a FCS file according to density parameter
SPADE.read.FCS

Read an FCS File
SPADE.layout.arch

Generate coordinates for plotting graphs