Skip to contents

Adds Giotto polygon to an existing Giotto object

Usage

addGiottoPolygons(gobject, gpolygons)

Arguments

gobject

giotto object

gpolygons

list of giotto polygon objects, see createGiottoPolygonsFromMask and createGiottoPolygonsFromDfr

Value

giotto object

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))