Keep only certain aspects of the Seurat object. Can be useful in functions that utilize merge as it reduces the amount of data in the merge
DietSeurat(
object,
layers = NULL,
features = NULL,
assays = NULL,
dimreducs = NULL,
graphs = NULL,
misc = TRUE,
counts = deprecated(),
data = deprecated(),
scale.data = deprecated(),
...
)
object
with only the sub-object specified retained
A Seurat
object
A vector or named list of layers to keep
Only keep a subset of features, defaults to all features
Only keep a subset of assays specified here
Only keep a subset of DimReducs specified here (if
NULL
, remove all DimReducs)
Only keep a subset of Graphs specified here (if NULL
,
remove all Graphs)
Preserve the misc
slot; default is TRUE
Preserve the count matrices for the assays specified
Preserve the data matrices for the assays specified
Preserve the scale data matrices for the assays specified
Ignored