Skip to contents

Reconnect a GiottoClass object

Usage

# S4 method for class 'giottoAffineImage'
reconnect(x, path = NULL, ...)

# S4 method for class 'giottoLargeImage'
reconnect(x, path = NULL, ...)

# S4 method for class 'giottoImage'
reconnect(x, path = NULL, ...)

Arguments

x

object to reconnect

path

character. (optional) New filepath to associate with the object. Only needed if the filepath is not normally carried by the object or the path has changed.

...

additional params to pass

Value

GiottoClass object

Examples

f <- tempfile()
a <- GiottoData::loadSubObjectMini("giottoLargeImage")
saveRDS(a, f)

b <- readRDS(f) # expected to be null pointer
b <- reconnect(b) # reconnected to source image
#> Error in .image_path_checks(path): image reconnection attempted, but
#>  /Users/george/Documents/GitHub/GiottoData/inst/Mini_datasets/Vizgen/Raw/images/mini_dataset_dapi_z0.jpg
#>  does not exist