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, counts = TRUE, data = TRUE, scale.data = FALSE,
features = NULL, assays = NULL)
Seurat object
Preserve the count matrices for the assays specified
Preserve the data slot for the assays specified
Preserve the scale.data slot for the assays specified
Only keep a subset of features, defaults to all features
Only keep a subset of assays specified here