clusterFilter.Rd
Filter seurat object by specified cluster ids
clusterFilter(so, include = NULL, omit = NULL, which.field = "seurat_clusters")
Seurat Object
Cluster ids to include. Optional, NULL if unspecified.
Cluster ids to omit. Optional, NULL if unspecified.
Metadata field to filter by. Default is 'seurat_clusters'
Seurat Object
# specify filtering parameters
filter.parameters <- list(
include = NULL,
omit = c(8,9)
)
# filter seurat
so.filtered <- clusterFilter(so, include = filter.parameters$include, omit = filter.parameters$omit)
#> Warning: restarting interrupted promise evaluation
#> Error in clusterFilter(so, include = filter.parameters$include, omit = filter.parameters$omit): object 'so' not found