DietSeurat: Slim down a Seurat object

View source: R/objects.R

DietSeuratR Documentation

Slim down a Seurat object

Description

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

Usage

DietSeurat(
  object,
  layers = NULL,
  features = NULL,
  assays = NULL,
  dimreducs = NULL,
  graphs = NULL,
  misc = TRUE,
  counts = deprecated(),
  data = deprecated(),
  scale.data = deprecated(),
  ...
)

Arguments

object

A Seurat object

layers

A vector or named list of layers to keep

features

Only keep a subset of features, defaults to all features

assays

Only keep a subset of assays specified here

dimreducs

Only keep a subset of DimReducs specified here (if NULL, remove all DimReducs)

graphs

Only keep a subset of Graphs specified here (if NULL, remove all Graphs)

misc

Preserve the misc slot; default is TRUE

counts

Preserve the count matrices for the assays specified

data

Preserve the data matrices for the assays specified

scale.data

Preserve the scale data matrices for the assays specified

...

Ignored

Value

object with only the sub-object specified retained


satijalab/seurat documentation built on May 11, 2024, 4:04 a.m.