Extension of wrap methods from terra for Giotto's terra-based S4 objects. Allows pointer information to be packaged into memory so that it can be passed over a connection (e.g. nodes on a computer cluster)
Usage
# S4 method for class 'giottoPolygon'
wrap(x)
# S4 method for class 'giotto'
wrap(x)
# S4 method for class 'giottoPoints'
wrap(x)
# S4 method for class 'packedGiottoPolygon'
vect(x)
# S4 method for class 'packedGiottoPoints'
vect(x)
# S4 method for class 'packedGiotto'
vect(x)
Methods (by class)
wrap(giottoPolygon)
: Wrap giottoPolygonwrap(giotto)
: Wrap giottowrap(giottoPoints)
: Wrap giottoPointsvect(packedGiottoPolygon)
: Unwrap giottoPolygonvect(packedGiottoPoints)
: Unwrap giottoPolygonvect(packedGiotto)
: Unwrap giotto
Examples
g <- GiottoData::loadSubObjectMini("giottoPoints")
wrap(g)
#> [1] "This is a packedGiottoPoints object. Use 'GiottoClass::vect()' to unpack it"