To install Seurat, R version 4.0 or greater is required. We also recommend installing R Studio.
Seurat is available on CRAN for all platforms. To install, run:
# Enter commands in R (or R studio, if installed)
install.packages('Seurat')
library(Seurat)
If you see the warning message below, enter y
:
Any of the Seurat version 3 releases can be installed with the following command:
remotes::install_version("Seurat", version = "3.X.X")
To facilitate easy re-installation of the last version 2 release, we are hosting the binaries on our website. These can be installed with the following command:
source("https://z.umn.edu/archived-seurat")
Old versions of Seurat, from Seurat v2.0.1 and up, are hosted in CRAN’s archive. To install an old version of Seurat, run:
# Enter commands in R (or R studio, if installed)
# Install the remotes package
install.packages('remotes')
# Replace '2.3.0' with your desired version
remotes::install_version(package = 'Seurat', version = package_version('2.3.0'))
library(Seurat)
For versions of Seurat older than those not hosted on CRAN (versions 1.3.0 and 1.4.0), please download the packaged source code from our releases page and install from the tarball.
Install the development version of Seurat - directly from GitHub.
# Enter commands in R (or R studio, if installed)
# Install the remotes package
install.packages('remotes')
remotes::install_github(repo = 'satijalab/seurat', ref = 'develop')
library(Seurat)
We provide docker images for Seurat via dockerhub.
To pull the latest image from the command line:
To use as a base image in a new Dockerfile: