Filter seurat object by specified cluster ids

clusterFilter(so, include = NULL, omit = NULL, which.field = "seurat_clusters")

Arguments

so

Seurat Object

include

Cluster ids to include. Optional, NULL if unspecified.

omit

Cluster ids to omit. Optional, NULL if unspecified.

which.field

Metadata field to filter by. Default is 'seurat_clusters'

Value

Seurat Object

Author

Nicholas Mikolajewicz

Examples


# 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