powered by
Retrieves data (feature expression, PCA scores, metrics, etc.) for a set of cells in a Seurat object
FetchData(object, ...)# S3 method for DimReduc FetchData(object, vars, cells = NULL, ...)# S3 method for Seurat FetchData( object, vars, cells = NULL, layer = NULL, clean = TRUE, slot = deprecated(), ... )
# S3 method for DimReduc FetchData(object, vars, cells = NULL, ...)
# S3 method for Seurat FetchData( object, vars, cells = NULL, layer = NULL, clean = TRUE, slot = deprecated(), ... )
A data frame with cells as rows and cellular data as columns
An object
Arguments passed to other methods
List of all variables to fetch, use keyword “ident” to pull identity classes
Cells to collect data for (default is all cells)
Layer to pull feature data for
Remove cells that are missing data; choose from:
“all”: consider all columns for cleaning
all
“ident”: consider all columns except the identity class for cleaning
ident
“project”: consider all columns except the identity class for cleaning; fill missing identity values with the object's project
project
“none”: do not clean
none
Passing TRUE is a shortcut for “ident”; passing FALSE is a shortcut for “none”
TRUE
FALSE
Deprecated in favor of layer
layer
pc1 <- FetchData(object = pbmc_small, vars = 'PC_1') head(x = pc1) head(x = FetchData(object = pbmc_small, vars = c('groups', 'ident')))
Run the code above in your browser using DataLab