Get nearest network#
Last Updated: Jan 14, 2025
Description#
Get a NN-network from a Giotto object
Usage#
get_NearestNetwork(
gobject,
spat_unit = NULL,
feat_type = NULL,
nn_network_to_use = NULL,
network_name = NULL,
output = c("nnNetObj", "igraph", "data.table"),
set_defaults = TRUE
)
Arguments#
|
giotto object |
|
spatial unit (e.g. “cell”) |
|
feature type (e.g. “rna”, “dna”, “protein”) |
|
“kNN” or “sNN” |
|
name of NN network to be used |
|
return a igraph or data.table object. Default ‘igraph’ |
|
set default spat_unit and feat_type. Change to FALSE only when expression and spat_info are not expected to exist. |
Value#
igraph or data.table object
See Also#
Other expression space nearest network accessor functions:
set_NearestNetwork()
Other functions to get data from giotto object: get_dimReduction()
,
get_expression_values()
, get_feature_info()
,
get_giottoImage()
, get_polygon_info()
, get_spatialGrid()
,
get_spatialNetwork()
, get_spatial_enrichment()
,
get_spatial_locations()