Skip to contents

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,
  initialize = FALSE
)

Arguments

gobject

giotto object

nn_network

nnNetObj or igraph nearest network object. Data.table not yet supported.

spat_unit

spatial unit (e.g. "cell")

feat_type

feature type (e.g. "rna", "dna", "protein")

nn_network_to_use

"kNN" or "sNN"

network_name

name of NN network to be used

provenance

provenance information (optional)

verbose

be verbose

set_defaults

set default spat_unit and feat_type. Change to FALSE only when expression and spat_info are not expected to exist.

initialize

(default = FALSE) whether to initialize the gobject before returning

Value

giotto object