Create kNN spatial feature network#
Last Updated: Mar 11, 2023
Description#
Calculates the centroid locations for the giotto polygons
Usage#
createSpatialFeaturesKNNnetwork(
gobject,
method = c("dbscan"),
feat_type = NULL,
name = "knn_feats_network",
k = 4,
maximum_distance = NULL,
minimum_k = 0,
add_feat_ids = FALSE,
verbose = TRUE,
return_gobject = TRUE,
toplevel_params = 2,
...
)
Arguments#
|
giotto object |
|
kNN algorithm method |
|
feature type to build feature network |
|
name of network |
|
number of neighbors |
|
maximum distance bewteen features |
|
minimum number of neighbors to find |
|
add feature id names (default = FALSE, increases object size) |
|
be verbose |
|
return giotto object (default: TRUE) |
|
toplevel value to pass when updating giotto params |
|
additional parameters to pass to
|
Value#
If return_gobject = TRUE
a giotto object containing the network will
be returned. If return_gobject = FALSE
the network will be returned
as a datatable.