Learn R Programming

SeuratObject (version 5.2.0)

Data Structures for Single Cell Data

Description

Defines S4 classes for single-cell genomic data and associated information, such as dimensionality reduction embeddings, nearest-neighbor graphs, and spatially-resolved coordinates. Provides data access methods and R-native hooks to ensure the Seurat object is familiar to other R users. See Satija R, Farrell J, Gennert D, et al (2015) , Macosko E, Basu A, Satija R, et al (2015) , and Stuart T, Butler A, et al (2019) , Hao Y, Hao S, et al (2021) and Hao Y, et al (2023) for more details.

Copy Link

Version

Install

install.packages('SeuratObject')

Monthly Downloads

49,412

Version

5.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Paul Hoffman

Last Published

August 27th, 2025

Functions in SeuratObject (5.2.0)

CastAssay

Cast Assay Layers
CellsByImage

Get a vector of cell names associated with an image (or set of images)
Boundaries

Get, Set, and Query Segmentation Boundaries
CheckDots

Check the Use of Dots
CellsByIdentities

Get cell names grouped by identity class
Cells

Cell and Feature Names
Centroids-class

The Centroids Class
Centroids-methods

Centroids Methods
Cells-StdAssay

Cell and Feature Names
CastAssay-StdAssay

Cast Assay Layers
CreateCentroids

Create a Centroids Objects
ClassKey

Generate a Class Key
CreateAssayObject

Create an Assay object
CheckGC

Conditional Garbage Collection
CheckLayersName

Check layers names for the input list
Command

Get SeuratCommands
CreateAssay5Object

Create a v5 Assay object
CreateDimReducObject

Create a DimReduc object
CheckFeaturesNames

Check features names format
CheckMatrix

Check Matrix Validity
DefaultDimReduc

Find the default DimReduc
DefaultFOV

Get and Set the Default FOV
CreateSegmentation

Create a Segmentation Objects
DefaultAssay

Default Assay
Crop

Crop Coordinates
CreateMolecules

Create a Molecules Object
CreateFOV

Create Spatial Coordinates
DefaultAssay-StdAssay

Default Assay
CreateSeuratObject

Create a Seurat object
DefaultLayer-StdAssay

Default Layer
EmptyMatrix

Empty Matrices
FOV-class

The Field of View Object
DimReduc-validity

Dimensional Reduction Validity
DefaultLayer

Default Layer
FOV-methods

FOV Methods
DimReduc-class

The Dimensional Reduction Class
ExtractField

Extract delimiter information from a string.
FetchData

Access cellular data
Idents

Get, set, and manipulate an object's identity classes
Images

Pull spatial image names
Embeddings

Get Cell Embeddings
FOV-validity

FOV Validity
Distances

Get the Neighbor nearest neighbors distance matrix
Indices

Get Neighbor nearest neighbor index matrices
IsGlobal

Is an object global/persistent?
FilterObjects

Find Sub-objects of a Certain Class
GetTissueCoordinates

Get tissue coordinates
IsMatrixEmpty

Check if a matrix is empty
KeyMixin-class

A Mixin for Keyed objects
Key-validity

Key Validity
JackStrawData-class

The JackStrawData Class
IsNamedList

Check List Names
GetImage

Get image data
Key

Get and set object keys
Layers-StdAssay

Query and Manipulate Assay Layers
EmptyDF

Empty Data Frames
JS

Get and set JackStraw information
Loadings

Get and set feature loadings
Molecules-class

The Spatial Molecules Class
JackStrawData-methods

JackStrawData Methods
Graph-class

The Graph Class
Molecules-methods

Molecules Methods
LayerData

Query and Manipulate Assay Layers
IsSparse

Is a Matrix Sparse
Misc

Get and set miscellaneous data
Misc-StdAssay

Get and set miscellaneous data
Neighbor-class

The Neighbor class
Neighbor-methods

Neighbor Methods
RandomName

Generate a random name
Radius

Get the spot radius from an image
Index

Get Neighbor algorithm index
LogSeuratCommand

Log a command
MatchCells

Match Cells
Overlay

Overlay Spatial Objects Over One Another
LogMap-validity

Logical Map Validity
LogMap

A Logical Map
PackageCheck

Check the existence of a package
Project

Get and set project information
PolyVtx

Polygon Vertices
Assays

Query Specific Object Types
RowMergeSparseMatrices

Merge Sparse Matrices by Row
RenameAssays

Rename assays in a Seurat object
Segmentation-class

The Segmentation Class
RegisterSparseMatrix

Register Sparse Matrix Classes
RenameCells

Rename cells
RenameCells-StdAssay

Rename cells
Segmentation-validity

Segmentation Validity
SaveSeuratRds

Save and Load Seurat Objects from Rds files
Segmentation-methods

Segmentation Methods
Seurat-validity

Seurat Object Validity
SeuratCommand-class

The SeuratCommand Class
SpatialImage-methods

SpatialImage methods
SeuratObject-options

Seurat Options
SpatialImage-class

The SpatialImage class
JoinLayers

Split and Join Layers Together
Seurat-class

The Seurat Class
Simplify

Simplify Geometry
StdAssay-class

Core Assay Infrastructure
SparseEmptyMatrix

Generate empty dgC sparse matrix
Stdev

Get the standard deviations for an object
SeuratObject-package

SeuratObject: Data Structures for Single Cell Data
StitchMatrix

Stitch Matrices Together
Version

Get Version Information
Theta

Get the offset angle
HVFInfo

Highly Variable Features
StdAssay-validity

V5 Assay Validity
UpdateSlots

Update slots in an object
UpdateSeuratObject

Update old Seurat object to accommodate new features
Tool

Get and Set Additional Tool Data
VariableFeatures-StdAssay

Highly Variable Features
as.Graph

Coerce to a Graph Object
as.list.SeuratCommand

Coerce a SeuratCommand to a list
as.Neighbor

Coerce to a Neighbor Object
as.Seurat

Coerce to a Seurat Object
aggregate

Aggregate Molecules into an Expression Matrix
as.Centroids

Convert Segmentation Layers
Angles

Radian/Degree Conversions
WhichCells

Identify cells matching certain criteria
dim.Assay

Feature and Cell Numbers
colMeans,Assay-method

Row and Column Sums and Means
$.StdAssay

Layer Data
colMeans,Seurat-method

Row and Column Sums and Means
as.matrix.LogMap

Coerce Logical Maps to Matrices
as.sparse

Cast to Sparse
$.Seurat

Cell-Level Meta Data
$.SeuratCommand

Command Log Parameter Access
$.Assay5

Layer Data
$.Assay

Layer Data
dim.Assay5

Feature and Cell Numbers
dimnames.Seurat

Feature and Cell Names
dim.DimReduc

Dimensional Reduction Meta-Information
.BPMatrixMode

BPCells Matrix Mode
dimnames.Assay5

Assay-Level Feature and Cell Names
dimnames.Assay

Assay-Level Feature and Cell Names
dimnames.StdAssay

Assay-Level Feature and Cell Names
.AssayClass

Assay Class Label
dim.Seurat

Feature and Cell Numbers
dim.StdAssay

Feature and Cell Numbers
.CheckFmargin

Check Feature Margin
.CalcN

Calculate nCount and nFeature
.DiskLoad

Disk Loading Function
.Contains

Get Parent S4 Classes
.Collections

Identify Object Collections
.DollarNames.Assay

Dollar-sign Autocompletion
.ClassPkg

Get the Package that Defines a Class
.CreateStdAssay

Generic Assay Creation
.FindObject

Find A Subobject
.FilterObjects

Find Subobjects Of A Certain Class
.DollarNames.Assay5

Dollar-sign Autocompletion
.DollarNames.Seurat

Dollar-sign Autocompletion
.DefaultFOV

Find the Default FOV
.Deprecate

Deprecate Functions and Arguments
.GetMethod

Get a Method
.GetConsensusFeatures

Returns the most frequently observed features in `features_by_layer`. If two features are observed at the same frequency their median index will be used to break the tie. If `nfeatures` is not specified, all features in `common_features` are returned.
.DollarNames.SeuratCommand

Dollar-sign Autocompletion
.RandomKey

Generate a Random Key
.DollarNames.StdAssay

Dollar-sign Autocompletion
.PropagateList

Propagate a List
labels.LogMap

Find Observations by Value
.KeyPattern

Regex Pattern for Keys
.GetVariableFeatures

Returns the top variable features from a data frame of highly variable feature annotations. Features are marked as variable if their value in `label_column` is neither `NA` nor `FALSE`. When a ranking is provided via `rank_column`, features are ordered accordingly.
.IsFutureSeurat

Test Future Compatibility with Seurat
.FileMove

Move Files and Directories
.MARGIN

Get the Margin of an Object
merge.Assay

Merge Assays
.FilePath

Find a File Path
intersect.LogMap

Find Common Logical Map Values
droplevels.LogMap

Drop Unused Logical Map Values
merge.Seurat

Merge Seurat Objects
names.Seurat

Subobject Names
print.DimReduc

Print Top Feature Loadings
old-assign

Original double-bracket assign
merge.Assay5

Merge Assays
seurat-class

The Seurat Class
merge.StdAssay

Merge Assays
.SparseSlots

Identify Sparse Slots
.Subobjects

Get the Subobject Names
merge.DimReduc

Merge Dimensional Reductions
pbmc_small

A small example version of the PBMC dataset
reexports

Objects exported from other packages
show,SeuratCommand-method

Command Log Overview
set-if-null

Set If or If Not NULL
set-if-na

Set If or If Not NA
show,Assay-method

V3 Assay Overview
s4list

S4/List Conversion
show,DimReduc-method

Dimensional Reduction Overview
show,StdAssay-method

V5 Assay Overview
show,Graph-method

Graph Object Overview
show,LogMap-method

LogMap Object Overview
show,Seurat-method

Seurat Object Overview
[.Assay5

Layer Data
split.Assay5

Split an Assay
split.Seurat

Split an Assay
[.DimReduc

Get Feature Loadings
[.Assay

Layer Data
split.StdAssay

Split an Assay
split.Assay

Split an Assay
show,seurat-method

Old Seurat Object Overview
[.StdAssay

Layer Data
[.SeuratCommand

Command Log Data Access
[[.Assay5

Feature-Level Meta Data
[[.Seurat

Subobjects and Cell-Level Meta Data
[,LogMap

Matrix-like Subsetting for Logical Maps
[[<-,Seurat

Add Subobjects
[[<-,Seurat,character,missing,StdAssay-method

Add Subobjects
[[.DimReduc

Get Cell Embeddings
[[.StdAssay

Feature-Level Meta Data
subset.DimReduc

Subset a Dimensional Reduction
[[.Assay

Feature-Level Meta Data
subset.Seurat

Subset Seurat Objects
[[,LogMap,integer,missing-method

LogMap Interaction Methods
[[<-,Seurat,NULL

Remove Subobjects and Cell-Level Meta Data
subset.Assay

Subset an Assay
subset.Assay5

Subset an Assay
subset.StdAssay

Subset an Assay
v5-assay-summaries

V5 Assay Summaries
AddMetaData

Add in metadata associated with either cells or features.
Assay5-validity

V5 Assay Validity
AssayData

Get and Set Assay Data
Assay5T-class

The Transposed v5 Assay Object
Assay-class

The Assay Class
AttachDeps

Attach Required Packages
Assay-validity

V3 Assay Validity
Assay5-class

The v5 Assay Object
AssayData-StdAssay

Get and Set Assay Data
AddMetaData-StdAssay

Add in metadata associated with either cells or features.