subset.Seurat: Subset a Seurat object

Description Usage Arguments Value See Also Examples

Description

Subset a Seurat object

Usage

1
2
3
4
5
6
## S3 method for class 'Seurat'
x[i, j, ...]

## S3 method for class 'Seurat'
subset(x, subset, cells = NULL, features = NULL,
  idents = NULL, ...)

Arguments

x

Seurat object to be subsetted

i, features

A vector of features to keep

j, cells

A vector of cells to keep

...

Arguments passed to WhichCells

subset

Logical expression indicating features/variables to keep

idents

A vector of identity classes to keep

Value

A subsetted Seurat object

See Also

subset WhichCells

Examples

1
2
3
4
5
pbmc_small[VariableFeatures(object = pbmc_small), ]
pbmc_small[, 1:10]

subset(x = pbmc_small, subset = MS4A1 > 4)
subset(x = pbmc_small, features = VariableFeatures(object = pbmc_small))

atakanekiz/Seurat3.0 documentation built on May 26, 2019, 2:33 a.m.