Skip to contents

Function to set expression values for giotto object

Usage

set_expression_values(
  gobject,
  values,
  spat_unit = NULL,
  feat_type = NULL,
  name = "test",
  provenance = NULL,
  verbose = TRUE,
  set_defaults = TRUE,
  initialize = FALSE
)

Arguments

gobject

giotto object

values

exprObj If NULL, then the object will be removed.

spat_unit

spatial unit (e.g. "cell")

feat_type

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

name

name for the expression slot

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. Will be set to TRUE when called by the external

Value

giotto object