Subset a SpatialCellData Object
Arguments
- x
A
SpatialCellDataobject. Supplying cell indices clears cached spatial results and the derivednn_distanceanddensitymetadata columns. Recompute these after filtering, reordering or duplicating cells. Marker-only subsetting preserves spatial results; dimensional reductions are subset by cell. Phenotype, cluster, neighbourhood and domain labels remain frozen annotations from the original fit for plotting and comparison; they do not describe a refit on the subset. Neither labels nor retained reductions are refitted. The metadata attributefrozen_spatial_labelsrecords each retained spatial label's original fit row count; further subsetting preserves it. Recomputing an assignment clears its frozen-label record. Recompute spatial assignments to describe the new neighbourhoods. Marker-only subsetting does not revalidate expression-dependent cached analyses.- i
Cell indices (integer or logical).
- j
Marker indices (integer, logical, or character).
- drop
Ignored.