Skip to contents

Set a NN-network for a Giotto object

Usage

setNearestNetwork(
  gobject,
  x,
  spat_unit = NULL,
  feat_type = NULL,
  nn_type = "sNN",
  name = "sNN.pca",
  provenance = NULL,
  verbose = TRUE,
  initialize = TRUE
)

Arguments

gobject

giotto object

x

nnNetObj or list of nnNetObj. Passing NULL will remove a specified set of nearest neighbor network information from the gobject

spat_unit

spatial unit (e.g. "cell")

feat_type

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

nn_type

"kNN" or "sNN"

name

name of NN network to be used yet supported.

provenance

provenance information (optional)

verbose

be verbose

initialize

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

Value

giotto object