Skip to contents

Function to guess a default spatial unit. Also see activeSpatUnit() in methods-instructions.R for a way to manually assign this default

Usage

set_default_spat_unit(gobject, spat_unit = NULL)

Arguments

gobject

giotto object

spat_unit

spatial unit (e.g. "cell")

Value

character

Examples

g <- createGiottoObject()
#> python already initialized in this session
#>  active environment : 'giotto_env'
#>  python version : 3.10

set_default_spat_unit(gobject = g, spat_unit = "cell")
#> [1] "cell"