Function to guess a default spatial unit. Also see activeSpatUnit()
in
methods-instructions.R for a way to manually assign this default
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"