Skip to contents

Reconnect a GiottoClass object

Usage

# 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

g <- GiottoData::loadGiottoMini("visium")
#> 1. read Giotto object
#> 2. read Giotto feature information
#> 3. read Giotto spatial information
#> 3.1 read Giotto spatial shape information
#> 3.2 read Giotto spatial centroid information
#> 3.3 read Giotto spatial overlap information
#> 4. read Giotto image information
#> 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_image <- getGiottoImage(g, image_type = "largeImage")

reconnect(g_image)
#> An object of class giottoLargeImage : "alignment"
#> Image extent            : 2364.5, 6522.5, -5425.25, -2620.75 (xmin, xmax, ymin, ymax)
#> Original image extent   : 2364.5, 6522.5, -5425.25, -2620.75 (xmin, xmax, ymin, ymax)
#> Scale factor            : 13.2420382165605, 13.2287735849057 (x, y)
#> Resolution              : 0.0755170755170755, 0.0755927972900695 (x, y)
#> Layers                  : 4 
#> Estimated max intensity : 255 
#> Estimated min intensity : 8 
#> Values                  : integers
#> File path               : '/home/runner/work/_temp/Library/GiottoData/Mini_datasets/Visium/VisiumObject/Images/alignment_spatRaster'