Learn R Programming

⚠️There's a newer version (5.0.3) of this package.Take me there.

Seurat v2.2

Seurat is an R toolkit for single cell genomics, developed and maintained by the Satija Lab at NYGC.

Instructions, documentation, and tutorials can be found at:

Seurat is also hosted on GitHub, you can view and clone the repository at

Seurat has been successfully installed on Mac OS X, Linux, and Windows, using the devtools package to install directly from GitHub

Improvements and new features will be added on a regular basis, please contact seuratpackage@gmail.com with any questions or if you would like to contribute

Version History

January 10, 2018

  • Version 2.2
  • Changes:
    • Support for multiple-dataset alignment with RunMultiCCA and AlignSubspace
    • New methods for evaluating alignment performance

October 12, 2017

  • Version 2.1
  • Changes:
    • Support for using MAST and DESeq2 packages for differential expression testing in FindMarkers
    • Support for multi-modal single-cell data via @assay slot

July 26, 2017

  • Version 2.0
  • Changes:
    • Preprint released for integrated analysis of scRNA-seq across conditions, technologies and species
    • Significant restructuring of code to support clarity and dataset exploration
    • Methods for scoring gene expression and cell-cycle phase

October 4, 2016

  • Version 1.4 released
  • Changes:
    • Improved tools for cluster evaluation/visualizations
    • Methods for combining and adding to datasets

August 22, 2016:

  • Version 1.3 released
  • Changes :
    • Improved clustering approach - see FAQ for details
    • All functions support sparse matrices
    • Methods for removing unwanted sources of variation
    • Consistent function names
    • Updated visualizations

May 21, 2015:

  • Drop-Seq manuscript published. Version 1.2 released
  • Changes :
    • Added support for spectral t-SNE and density clustering
    • New visualizations - including pcHeatmap, dot.plot, and feature.plot
    • Expanded package documentation, reduced import package burden
    • Seurat code is now hosted on GitHub, enables easy install through devtools
    • Small bug fixes

April 13, 2015:

  • Spatial mapping manuscript published. Version 1.1 released (initial release)

Copy Link

Version

Install

install.packages('Seurat')

Monthly Downloads

44,926

Version

2.2.0

License

GPL-3 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 10th, 2018

Functions in Seurat (2.2.0)

AddSmoothedScore

Calculate smoothed expression values
AlignSubspace

Align subspaces using dynamic time warping (DTW)
AddImputedScore

Calculate imputed expression values
AddMetaData

Add Metadata
AddModuleScore

Calculate module scores for gene expression programs in single cells
AddSamples

Add samples into existing Seurat object.
AverageDetectionRate

Probability of detection by identity class
AverageExpression

Averaged gene expression by identity class
AssessNodes

Assess Internal Nodes
AssessSplit

Assess Cluster Split
BuildSNN

SNN Graph Construction
CalcAlignmentMetric

Calculate an alignment score
AveragePCA

Average PCA scores by identity class
BlackAndWhite

A black and white color palette
ColorTSNESplit

Color tSNE Plot Based on Split
CreateSeuratObject

Initialize and setup the Seurat object
CalcVarExpRatio

Calculate the ratio of variance explained by ICA or PCA to CCA
CaseMatch

Match the case of character vectors
CustomDistance

Run a custom distance function on an input data matrix
BuildRFClassifier

Build Random Forest Classifier
DBClustDimension

Perform spectral density clustering on single cells
DoHeatmap

Gene expression heatmap
DoKMeans

K-Means Clustering
ExpVar

Calculate the variance of logged values
ExpMean

Calculate the mean of logged values
ExpSD

Calculate the standard deviation of logged values
FindClusters

Cluster Determination
BuildClusterTree

Phylogenetic Analysis of Identity Classes
ExtractField

Extract delimiter information from a string.
FetchData

Access cellular data
FilterCells

Return a subset of the Seurat object
DESeq2DETest

Differential expression using DESeq2
DimHeatmap

Dimensional reduction heatmap
DimPlot

Dimensional reduction plot
CellCycleScoring

Score cell cycle phases
CellPlot

Cell-cell scatter plot
DMEmbed

Diffusion Maps Cell Embeddings Accessor Function
DMPlot

Plot Diffusion map
FastWhichCells

FastWhichCells Identify cells matching certain criteria (limited to character values)
FeatureHeatmap

Vizualization of multiple features
FindAllMarkers

Gene expression markers for all identity classes
CustomPalette

Create a custom color palette
DimTopCells

Find cells with highest scores for a given dimensional reduction technique
DimTopGenes

Find genes with highest scores for a given dimensional reduction technique
GetAssayData

Accessor function for multimodal data
GetCellEmbeddings

Dimensional Reduction Cell Embeddings Accessor Function
ICTopGenes

Find genes with highest ICA scores
InitialMapping

Infer spatial origins for single cells
MarkerTest

ROC-based marker discovery
MatrixRowShuffle

Independently shuffle values within each row of a matrix
NormalizeData

Normalize Assay Data
NumberClusters

Convert the cluster labels to a numeric representation
PoissonDETest

Poisson test for UMI-count based data
PrintAlignSubspaceParams

Print AlignSubspace Calculation Parameters
FindConservedMarkers

Finds markers that are conserved between the two groups
GetDimReduction

Dimensional Reduction Accessor Function
GetGeneLoadings

Dimensional Reduction Gene Loadings Accessor Function
ICHeatmap

Independent component heatmap
ICTopCells

Find cells with highest ICA scores
NegBinomDETest

Negative binomial test for UMI-count based data
GetCentroids

Get cell centroids
GetClusters

Get Cluster Assignments
KClustDimension

Perform spectral k-means clustering on single cells
KMeansHeatmap

Plot k-means clusters
LogNormalize

Normalize raw data
LogVMR

Calculate the variance to mean ratio of logged values
DarkTheme

Dark Theme
DiffExpTest

Likelihood ratio test for zero-inflated data
FeatureLocator

Feature Locator
FeaturePlot

Visualize 'features' on a dimensional reduction plot
FindVariableGenes

Identify variable genes
FitGeneK

Build mixture models of gene expression
GenePlot

Scatter plot of single cell data
GenesInCluster

GenesInCluster
ClassifyCells

Classify New Data
CollapseSpeciesExpressionMatrix

Slim down a multi-species expression matrix, when only one species is primarily of interenst.
DiffTTest

Differential expression testing using Student's t-test
DimElbowPlot

Quickly Pick Relevant Dimensions
PCTopGenes

Find genes with highest PCA scores
PlotClusterTree

Plot phylogenetic tree
RenameIdent

Rename one identity class to another
ReorderIdent

Reorder identity classes
VizICA

Visualize ICA genes
DotPlot

Dot plot visualization
DotPlotOld

Old Dot plot visualization (pre-ggplot implementation) Intuitive way of visualizing how gene expression changes across different identity classes (clusters). The size of the dot encodes the percentage of cells within a class, while the color encodes the AverageExpression level of 'expressing' cells (green is high).
FindMarkers

Gene expression markers of identity classes
FindMarkersNode

Gene expression markers of identity classes defined by a phylogenetic clade
NegBinomRegDETest

Negative binomial test for UMI-count based data (regularized version)
ProjectDim

Project Dimensional reduction onto full dataset
ProjectPCA

Project Principal Components Analysis onto full dataset
MergeNode

Merge childen of a node
MergeSeurat

Merge Seurat Objects
PCASigGenes

Significant genes from a PCA
HoverLocator

Hover Locator
ICAEmbed

ICA Cell Embeddings Accessor Function
JackStraw

Determine statistical significance of PCA scores.
JackStrawPlot

JackStraw Plot
MetageneBicorPlot

Plot CC bicor saturation plot
MinMax

Apply a ceiling and floor to all values in a matrix
PCALoad

PCA Gene Loadings Accessor Function
PCAPlot

Plot PCA map
PCHeatmap

Principal component heatmap
PCTopCells

Find cells with highest PCA scores
PrintPCA

Print the results of a PCA analysis
PrintPCAParams

Print PCA Calculation Parameters
RunDiffusion

Run diffusion map
RunICA

Run Independent Component Analysis on gene expression
RunMultiCCA

Perform Canonical Correlation Analysis with more than two groups
RunPCA

Run Principal Component Analysis on gene expression using IRLBA
VizPCA

Visualize PCA genes
PCElbowPlot

Quickly Pick Relevant PCs
PrintCCAParams

Print CCA Calculation Parameters
PrintCalcParams

Print the calculation
PrintICA

Print the results of a ICA analysis
PrintICAParams

Print ICA Calculation Parameters
SetDimReduction

Dimensional Reduction Mutator Function
SetIdent

Set identity class information
TobitTest

Differential expression testing using Tobit models
UpdateSeuratObject

Update old Seurat object to accomodate new features
ICALoad

ICA Gene Loadings Accessor Function
ICAPlot

Plot ICA map
MASTDETest

Differential expression using MAST
MakeSparse

Make object sparse
FindAllMarkersNode

Find all markers for a node
PrintDim

Print the results of a dimensional reduction analysis
PrintFindClustersParams

Print FindClusters Calculation Parameters
RefinedMapping

Quantitative refinement of spatial inferences
RemoveFromTable

Remove data from a table
RunTSNE

Run t-distributed Stochastic Neighbor Embedding
SampleUMI

Sample UMI
SplitDotPlotGG

Split Dot plot visualization
OldDoHeatmap

Gene expression heatmap
PCAEmbed

PCA Cell Embeddings Accessor Function
PrintCalcVarExpRatioParams

Print Parameters Associated with CalcVarExpRatio
RidgePlot

Single cell ridge plot
RunCCA

Perform Canonical Correlation Analysis
SaveClusters

Save cluster assignments to a TSV file
SetAssayData

Assay Data Mutator Function
SetClusters

Set Cluster Assignments
SubsetRow

Return a subset of rows for a matrix or data frame
PrintDMParams

Print Diffusion Map Calculation Parameters
PrintSNNParams

Print SNN Construction Calculation Parameters
PrintTSNEParams

Print TSNE Calculation Parameters
PurpleAndYellow

A purple and yellow color palette
Read10X

Load in data from 10X
ScaleDataR

Old R based implementation of ScaleData. Scales and centers the data
SetAllIdent

Switch identity class definition to another variable
Seurat-deprecated

Deprecated function(s) in the Seurat package
Shuffle

Shuffle a vector
show

show method for seurat
ScaleData

Scale and center the data.
SubsetColumn

Return a subset of columns for a matrix or data frame
SubsetData

Return a subset of the Seurat object
TSNEPlot

Plot tSNE map
ValidateClusters

Cluster Validation
ValidateSpecificClusters

Specific Cluster Validation
VlnPlot

Single cell violin plot
WhichCells

Identify cells matching certain criteria
pbmc_small

A small example version of the PBMC dataset
StashIdent

Set identity class information
VariableGenePlot

View variable genes
VizDimReduction

Visualize Dimensional Reduction genes
WilcoxDETest

Differential expression using Wilcoxon Rank Sum
cc.genes

Cell cycle genes
seurat

The Seurat Class