Set nearest network#
Last Updated: May 20, 2025
Description#
Set a NN-network for a Giotto object
Usage#
set_NearestNetwork(
gobject,
nn_network,
spat_unit = NULL,
feat_type = NULL,
nn_network_to_use = "sNN",
network_name = "sNN.pca",
provenance = NULL,
verbose = TRUE,
set_defaults = TRUE
)
Arguments#
|
giotto object |
|
nnNetObj or igraph nearest network object. Data.table not yet supported. |
|
spatial unit (e.g. “cell”) |
|
feature type (e.g. “rna”, “dna”, “protein”) |
|
“kNN” or “sNN” |
|
name of NN network to be used |
|
provenance information (optional) |
|
be verbose |
|
set default spat_unit and feat_type. Change to FALSE only when expression and spat_info are not expected to exist. |
Value#
giotto object
See Also#
Other expression space nearest network accessor functions:
get_NearestNetwork()
Other functions to set data in giotto object: get_cell_id(),
get_feat_id(), set_cell_id(), set_cell_metadata(),
set_dimReduction(), set_expression_values(), set_feat_id(),
set_feature_info(), set_feature_metadata(),
set_giottoImage(), set_polygon_info(), set_spatialGrid(),
set_spatialNetwork(), set_spatial_enrichment(),
set_spatial_locations()