Adds Giotto polygon to an existing Giotto object
Arguments
- gobject
giotto object
- gpolygons
list of giotto polygon objects, see
createGiottoPolygonsFromMask
andcreateGiottoPolygonsFromDfr
Examples
x <- GiottoData::loadSubObjectMini("giottoPolygon")
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"
g <- addGiottoPolygons(gobject = g, gpolygons = list(x))