Skip to contents

Function to set a spatial grid

Usage

set_spatialGrid(
  gobject,
  spatial_grid,
  spat_unit = NULL,
  feat_type = NULL,
  name = NULL,
  verbose = TRUE,
  set_defaults = TRUE
)

Arguments

gobject

giotto object

spatial_grid

spatial grid object

spat_unit

spatial unit (e.g. "cell")

feat_type

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

name

name of spatial grid

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.

Value

giotto object