subsetGiottoLocs
¶
subsetGiottoLocs
Description¶
subsets Giotto object based on spatial locations
Usage¶
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
)
Arguments¶
Argument |
Description |
---|---|
|
giotto object |
|
maximum x-coordinate |
|
minimum x-coordinate |
|
maximum y-coordinate |
|
minimum y-coordinate |
|
maximum z-coordinate |
|
minimum z-coordinate |
|
return Giotto object |
|
be verbose |
Details¶
if return_gobject = FALSE, then a filtered combined metadata data.table will be returned
Value¶
giotto object
Examples¶
list("\n", "\n", "data(mini_giotto_single_cell)\n", "\n", "# spatial plot\n", "spatPlot(mini_giotto_single_cell)\n", "\n", "# subset giotto object based on spatial locations\n", "subset_obj = subsetGiottoLocs(mini_giotto_single_cell,\n", "x_max = 1500, x_min = 1000,\n", "y_max = -500, y_min = -1000)\n", "\n", "# spatial plot of subset giotto object\n", "spatPlot(subset_obj)\n", "\n")