subsets Giotto object based on spatial locations
subsetGiottoLocs(
gobject,
x_max = NULL,
x_min = NULL,
y_max = NULL,
y_min = NULL,
z_max = NULL,
z_min = NULL,
return_gobject = T,
verbose = FALSE
)
giotto object
if return_gobject = FALSE, then a filtered combined metadata data.table will be returned
# \donttest{
data(mini_giotto_single_cell)
#> Warning: data set ‘mini_giotto_single_cell’ not found
# spatial plot
spatPlot(mini_giotto_single_cell)
#> Error: object 'mini_giotto_single_cell' not found
# subset giotto object based on spatial locations
subset_obj = subsetGiottoLocs(mini_giotto_single_cell,
x_max = 1500, x_min = 1000,
y_max = -500, y_min = -1000)
#> Error: object 'mini_giotto_single_cell' not found
# spatial plot of subset giotto object
spatPlot(subset_obj)
#> Error: object 'subset_obj' not found
# }