Subsets Giotto object based on spatial coordinates. This subset function is intended for poly_info and feat_types for which there are no matching aggregated information.
Usage
subsetGiottoLocsSubcellular(
gobject,
poly_info = NULL,
feat_type = NULL,
x_min = NULL,
x_max = NULL,
y_min = NULL,
y_max = NULL,
z_max = NULL,
z_min = NULL,
verbose = FALSE
)
Details
This is separate from subsetGiottoLocs because spat_units with attached aggregated information should be removed using a cell_ids-based approach in order to ensure that paired information is removed together. Polygons and points information without associated aggregated values do not have this issue and can be directly spatially subset.