# Seurat-Local - Install

**Pages:** 1

---

## Installation Instructions for Seurat • Seurat

**URL:** http://127.0.0.1:9173/seurat/articles/install/index.html

**Contents:**
- Installation Instructions for Seurat
- Seurat 5: Install from GitHub
- Install from CRAN
- Install previous versions of Seurat
  - Install any version 3 release
  - Install the last version 2 release (2.3.4)
  - Older versions of Seurat
- Install the development version of Seurat
- Docker
- Contents

To install Seurat, R version 4.0 or greater is required. We also recommend installing R Studio.

Copy the code below to install Seurat v5:

The following packages are not required but are used in many Seurat v5 vignettes:

Seurat v5 utilizes BPCells to support analysis of extremely large datasets:

For more information on BPCells installation, please see the installation instructions. For macOS users, the following GitHub issues concerning M1 chip installation and compiler compatibility may be of use.

Seurat is available on CRAN for all platforms. To install, run:

If you see the warning message below, enter y:

Any of the Seurat version 3 releases can be installed with the following command:

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:

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:

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.

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:

Developed by Paul Hoffman, Satija Lab and Collaborators.

Site built with pkgdown 2.0.7.

**Examples:**

Example 1 (unknown):
```unknown
vignettes/install.Rmd
```

Example 2 (unknown):
```unknown
install.Rmd
```

Example 3 (unknown):
```unknown
remotes::install_github("satijalab/seurat", "seurat5", quiet = TRUE)
```

Example 4 (r):
```r
remotes::install_github("satijalab/seurat", "seurat5", quiet = TRUE)
```

Example 5 (r):
```r
remotes::install_github("satijalab/seurat", "seurat5", quiet = TRUE)
```

Example 6 (unknown):
```unknown
remotes::install_github("satijalab/seurat-data", "seurat5", quiet = TRUE)
remotes::install_github("satijalab/azimuth", "seurat5", quiet = TRUE)
remotes::install_github("satijalab/seurat-wrappers", "seurat5", quiet = TRUE)
remotes::install_github("stuart-lab/signac", "seurat5", quiet = TRUE)
```

Example 7 (r):
```r
remotes::install_github("satijalab/seurat-data", "seurat5", quiet = TRUE)
remotes::install_github("satijalab/azimuth", "seurat5", quiet = TRUE)
remotes::install_github("satijalab/seurat-wrappers", "seurat5", quiet = TRUE)
remotes::install_github("stuart-lab/signac", "seurat5", quiet = TRUE)
```

Example 8 (r):
```r
remotes::install_github("satijalab/seurat-data", "seurat5", quiet = TRUE)
remotes::install_github("satijalab/azimuth", "seurat5", quiet = TRUE)
remotes::install_github("satijalab/seurat-wrappers", "seurat5", quiet = TRUE)
remotes::install_github("stuart-lab/signac", "seurat5", quiet = TRUE)
```

Example 9 (unknown):
```unknown
remotes::install_github("bnprks/BPCells/r")
```

Example 10 (r):
```r
remotes::install_github("bnprks/BPCells/r")
```

Example 11 (r):
```r
remotes::install_github("bnprks/BPCells/r")
```

Example 12 (unknown):
```unknown
# Enter commands in R (or R studio, if installed)
install.packages('Seurat')
library(Seurat)
```

Example 13 (r):
```r
# Enter commands in R (or R studio, if installed)
install.packages('Seurat')
library(Seurat)
```

Example 14 (r):
```r
# Enter commands in R (or R studio, if installed)
install.packages('Seurat')
library(Seurat)
```

Example 15 (python):
```python
package which is only available in source form, and may need compilation of C/C++/Fortran: 'Seurat'
Do you want to attempt to install these from sources?
y/n:
```

Example 16 (r):
```r
package which is only available in source form, and may need compilation of C/C++/Fortran: 'Seurat'
Do you want to attempt to install these from sources?
y/n:
```

Example 17 (r):
```r
package which is only available in source form, and may need compilation of C/C++/Fortran: 'Seurat'
Do you want to attempt to install these from sources?
y/n:
```

Example 18 (unknown):
```unknown
remotes::install_version("Seurat", version = "3.X.X")
```

Example 19 (r):
```r
remotes::install_version("Seurat", version = "3.X.X")
```

Example 20 (r):
```r
remotes::install_version("Seurat", version = "3.X.X")
```

Example 21 (unknown):
```unknown
source("https://z.umn.edu/archived-seurat")
```

Example 22 (r):
```r
source("https://z.umn.edu/archived-seurat")
```

Example 23 (r):
```r
source("https://z.umn.edu/archived-seurat")
```

Example 24 (unknown):
```unknown
# 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)
```

Example 25 (r):
```r
# 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)
```

Example 26 (r):
```r
# 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)
```

Example 27 (unknown):
```unknown
# 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)
```

Example 28 (r):
```r
# 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)
```

Example 29 (r):
```r
# 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)
```

Example 30 (unknown):
```unknown
docker pull satijalab/seurat:latest
```

Example 31 (unknown):
```unknown
docker pull satijalab/seurat:latest
```

Example 32 (bash):
```bash
docker pull satijalab/seurat:latest
```

Example 33 (unknown):
```unknown
FROM satijalab/seurat:latest
```

Example 34 (unknown):
```unknown
FROM satijalab/seurat:latest
```

Example 35 (bash):
```bash
FROM satijalab/seurat:latest
```

---
