Skip to contents

Function to set a dimension reduction slot

Usage

set_dimReduction(
  gobject,
  dimObject,
  spat_unit = NULL,
  feat_type = NULL,
  reduction = c("cells", "feats"),
  reduction_method = c("pca", "umap", "tsne"),
  name = "pca",
  provenance = NULL,
  verbose = TRUE,
  set_defaults = TRUE,
  initialize = FALSE
)

Arguments

gobject

giotto object

dimObject

dimension object result to set

spat_unit

spatial unit (e.g. "cell")

feat_type

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

reduction

reduction on cells or features

reduction_method

reduction method (e.g. "pca")

name

name of reduction results

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