Skip to contents

Function to set feature metadata information into giotto object

Usage

set_feature_metadata(
  gobject,
  metadata,
  spat_unit = NULL,
  feat_type = NULL,
  provenance = NULL,
  verbose = TRUE,
  set_defaults = TRUE,
  initialize = FALSE
)

Arguments

gobject

giotto object

metadata

featMetaObj or data.table containing feature metadata. Setting NULL will remove the object. Passing 'initialize' will reset the object.

spat_unit

spatial unit (e.g. "cell")

feat_type

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

provenance

provenance information to set

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