Skip to contents

Subset using metadata features or cell IDs. The on and keep (or remove) arguments work together - the function will use the cellMetadata column defined in on and the categories defined in keep or remove to filter the object. The cells argument accepts a character vector of cell IDs.

Usage

smSubset(object, on = NULL, keep = NULL, remove = NULL, cells = NULL)

.smsubset(object, on = NULL, keep = NULL, cells = NULL)

Arguments

object

SpatialMap object

on

Which metadata column to search for

keep

Which elements of on arg to keep

remove

Which elements of on arg to remove

cells

A vector of cells to keep

Value

A SpatialMap object

Scroll to top