Learn R Programming

SeuratObject (version 5.3.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

59,765

Version

5.3.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Paul Hoffman

Last Published

December 12th, 2025

Functions in SeuratObject (5.3.0)

Boundaries

Get, Set, and Query Segmentation Boundaries
CreateAssay5Object

Create a v5 Assay object
CastAssay-StdAssay

Cast Assay Layers
CellsByIdentities

Get cell names grouped by identity class
Cells

Cell and Feature Names
CreateCentroids

Create a Centroids Objects
Command

Get SeuratCommands
DefaultAssay-StdAssay

Default Assay
Crop

Crop Coordinates
ClassKey

Generate a Class Key
CheckLayersName

Check layers names for the input list
CreateFOV

Create Spatial Coordinates
CreateMolecules

Create a Molecules Object
CreateDimReducObject

Create a DimReduc object
Embeddings

Get Cell Embeddings
CheckMatrix

Check Matrix Validity
DefaultDimReduc

Find the default DimReduc
DefaultAssay

Default Assay
CreateSegmentation

Create a Segmentation Objects
CheckGC

Conditional Garbage Collection
CastAssay

Cast Assay Layers
CheckFeaturesNames

Check features names format
Cells-StdAssay

Cell and Feature Names
DefaultLayer

Default Layer
Indices

Get Neighbor nearest neighbor index matrices
DimReduc-class

The Dimensional Reduction Class
DefaultFOV

Get and Set the Default FOV
Distances

Get the Neighbor nearest neighbors distance matrix
FOV-validity

FOV Validity
DimReduc-validity

Dimensional Reduction Validity
DefaultLayer-StdAssay

Default Layer
FilterObjects

Find Sub-objects of a Certain Class
GetImage

Get image data
CreateAssayObject

Create an Assay object
EmptyDF

Empty Data Frames
FOV-methods

FOV Methods
FOV-class

The Field of View Object
IsSparse

Is a Matrix Sparse
JS

Get and set JackStraw information
Misc-StdAssay

Get and set miscellaneous data
IsGlobal

Is an object global/persistent?
JackStrawData-methods

JackStrawData Methods
Neighbor-methods

Neighbor Methods
Misc

Get and set miscellaneous data
Graph-class

The Graph Class
GetTissueCoordinates

Get tissue coordinates
EmptyMatrix

Empty Matrices
CreateSeuratObject

Create a Seurat object
ExtractField

Extract delimiter information from a string.
Key

Get and set object keys
FetchData

Access cellular data
Radius

Get the spot radius from an image
LogMap

A Logical Map
Segmentation-methods

Segmentation Methods
LogMap-validity

Logical Map Validity
Key-validity

Key Validity
RandomName

Generate a random name
IsMatrixEmpty

Check if a matrix is empty
JackStrawData-class

The JackStrawData Class
Molecules-class

The Spatial Molecules Class
RowMergeSparseMatrices

Merge Sparse Matrices by Row
SaveSeuratRds

Save and Load Seurat Objects from Rds files
Simplify

Simplify Geometry
Segmentation-class

The Segmentation Class
Seurat-validity

Seurat Object Validity
SparseEmptyMatrix

Generate empty dgC sparse matrix
Idents

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

Overlay Spatial Objects Over One Another
Images

Pull spatial image names
KeyMixin-class

A Mixin for Keyed objects
Index

Get Neighbor algorithm index
IsNamedList

Check List Names
LogSeuratCommand

Log a command
Neighbor-class

The Neighbor class
Assays

Query Specific Object Types
Molecules-methods

Molecules Methods
Project

Get and set project information
Tool

Get and Set Additional Tool Data
as.Centroids

Convert Segmentation Layers
Segmentation-validity

Segmentation Validity
SpatialImage-class

The SpatialImage class
MatchCells

Match Cells
Seurat-class

The Seurat Class
SeuratObject-options

Seurat Options
PolyVtx

Polygon Vertices
HVFInfo

Highly Variable Features
Layers-StdAssay

Query and Manipulate Assay Layers
SeuratObject-package

SeuratObject: Data Structures for Single Cell Data
Stdev

Get the standard deviations for an object
$.SeuratCommand

Command Log Parameter Access
$.Seurat

Cell-Level Meta Data
Angles

Radian/Degree Conversions
WhichCells

Identify cells matching certain criteria
UpdateSeuratObject

Update old Seurat object to accommodate new features
SpatialImage-methods

SpatialImage methods
.CheckFmargin

Check Feature Margin
StdAssay-validity

V5 Assay Validity
aggregate

Aggregate Molecules into an Expression Matrix
Loadings

Get and set feature loadings
PackageCheck

Check the existence of a package
LayerData

Query and Manipulate Assay Layers
.DollarNames.Seurat

Dollar-sign Autocompletion
RegisterSparseMatrix

Register Sparse Matrix Classes
RenameAssays

Rename assays in a Seurat object
JoinLayers

Split and Join Layers Together
UpdateSlots

Update slots in an object
VariableFeatures-StdAssay

Highly Variable Features
as.Seurat

Coerce to a Seurat Object
dim.DimReduc

Dimensional Reduction Meta-Information
dimnames.Seurat

Feature and Cell Names
SeuratCommand-class

The SeuratCommand Class
dim.Assay5

Feature and Cell Numbers
.DollarNames.Assay5

Dollar-sign Autocompletion
.RandomKey

Generate a Random Key
.SparseSlots

Identify Sparse Slots
$.StdAssay

Layer Data
.ClassPkg

Get the Package that Defines a Class
.DollarNames.SeuratCommand

Dollar-sign Autocompletion
dimnames.StdAssay

Assay-Level Feature and Cell Names
.DollarNames.StdAssay

Dollar-sign Autocompletion
StitchMatrix

Stitch Matrices Together
RenameCells-StdAssay

Rename cells
.CalcN

Calculate nCount and nFeature
StdAssay-class

Core Assay Infrastructure
.PropagateList

Propagate a List
dimnames.Assay

Assay-Level Feature and Cell Names
dimnames.Assay5

Assay-Level Feature and Cell Names
.Contains

Get Parent S4 Classes
.Collections

Identify Object Collections
Theta

Get the offset angle
merge.Assay5

Merge Assays
show,LogMap-method

LogMap Object Overview
split.Assay5

Split an Assay
show,SeuratCommand-method

Command Log Overview
split.Seurat

Split an Assay
merge.DimReduc

Merge Dimensional Reductions
show,StdAssay-method

V5 Assay Overview
droplevels.LogMap

Drop Unused Logical Map Values
RenameCells

Rename cells
.CreateStdAssay

Generic Assay Creation
.FileMove

Move Files and Directories
.FilePath

Find a File Path
as.list.SeuratCommand

Coerce a SeuratCommand to a list
merge.Assay

Merge Assays
$.Assay

Layer Data
set-if-null

Set If or If Not NULL
as.Graph

Coerce to a Graph Object
$.Assay5

Layer Data
.DiskLoad

Disk Loading Function
print.DimReduc

Print Top Feature Loadings
intersect.LogMap

Find Common Logical Map Values
reexports

Objects exported from other packages
Version

Get Version Information
split.StdAssay

Split an Assay
.DollarNames.Assay

Dollar-sign Autocompletion
.GetMethod

Get a Method
[[<-,Seurat

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

Add Subobjects
labels.LogMap

Find Observations by Value
show,DimReduc-method

Dimensional Reduction Overview
seurat-class

The Seurat Class
.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.
[[.DimReduc

Get Cell Embeddings
.IsFutureSeurat

Test Future Compatibility with Seurat
.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.
[.StdAssay

Layer Data
pbmc_small

A small example version of the PBMC dataset
set-if-na

Set If or If Not NA
s4list

S4/List Conversion
as.Neighbor

Coerce to a Neighbor Object
as.matrix.LogMap

Coerce Logical Maps to Matrices
[.SeuratCommand

Command Log Data Access
.Subobjects

Get the Subobject Names
merge.Seurat

Merge Seurat Objects
subset.Assay

Subset an Assay
[[.Assay5

Feature-Level Meta Data
merge.StdAssay

Merge Assays
subset.Assay5

Subset an Assay
show,Seurat-method

Seurat Object Overview
colMeans,Assay-method

Row and Column Sums and Means
.AssayClass

Assay Class Label
.FilterObjects

Find Subobjects Of A Certain Class
show,Graph-method

Graph Object Overview
[[<-,Seurat,NULL

Remove Subobjects and Cell-Level Meta Data
[[,LogMap,integer,missing-method

LogMap Interaction Methods
as.sparse

Cast to Sparse
colMeans,Seurat-method

Row and Column Sums and Means
dim.Assay

Feature and Cell Numbers
names.Seurat

Subobject Names
dim.Seurat

Feature and Cell Numbers
[.Assay

Layer Data
split.Assay

Split an Assay
[[.Assay

Feature-Level Meta Data
subset.DimReduc

Subset a Dimensional Reduction
.DefaultFOV

Find the Default FOV
dim.StdAssay

Feature and Cell Numbers
old-assign

Original double-bracket assign
.Deprecate

Deprecate Functions and Arguments
[,LogMap

Matrix-like Subsetting for Logical Maps
subset.Seurat

Subset Seurat Objects
show,seurat-method

Old Seurat Object Overview
.BPMatrixMode

BPCells Matrix Mode
.FindObject

Find A Subobject
[[.Seurat

Subobjects and Cell-Level Meta Data
[.Assay5

Layer Data
show,Assay-method

V3 Assay Overview
.MARGIN

Get the Margin of an Object
[.DimReduc

Get Feature Loadings
v5-assay-summaries

V5 Assay Summaries
[[.StdAssay

Feature-Level Meta Data
subset.StdAssay

Subset an Assay
.KeyPattern

Regex Pattern for Keys
Assay-class

The Assay Class
AddMetaData-StdAssay

Add in metadata associated with either cells or features.
AddMetaData

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

V3 Assay Validity
AttachDeps

Attach Required Packages
AssayData

Get and Set Assay Data
Assay5-validity

V5 Assay Validity
Assay5-class

The v5 Assay Object
Assay5T-class

The Transposed v5 Assay Object
AssayData-StdAssay

Get and Set Assay Data
Centroids-class

The Centroids Class
CellsByImage

Get a vector of cell names associated with an image (or set of images)
Centroids-methods

Centroids Methods
CheckDots

Check the Use of Dots