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
#> checking default envname 'giotto_env'
#> a system default python environment was found
#> Using python path:
#>  "/usr/share/miniconda/envs/giotto_env/bin/python"

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