set_dimReduction#

Date

2022-10-06

https://github.com/drieslab/Giotto/tree/suite/R/accessors.R#L458

Description#

Function to set a dimension reduction slot

Usage#

set_dimReduction(
  gobject,
  spat_unit = NULL,
  feat_type = NULL,
  reduction = c("cells", "genes"),
  reduction_method = c("pca", "umap", "tsne"),
  name = "pca",
  dimObject
)

Arguments#

Argument

Description

gobject

giotto object

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

dimObject

dimension object result to set

Value#

giotto object

Seealso#

Other dimensional reduction data accessor functions: get_dimReduction

Other functions to set data in Giotto object:

get_NearestNetwork

get_dimReduction

get_feature_info

get_giottoImage

get_polygon_info

get_spatialGrid

get_spatialNetwork

get_spatial_locations