Skip to contents

Method used to extract a Staffli object from the tools slot of a Seurat object

Usage

GetStaffli(object)

# S4 method for Seurat
GetStaffli(object)

Arguments

object

A Seurat object

Value

A Staffli object

Examples


# Load example data
se_mbrain <- readRDS(system.file("extdata/mousebrain", "se_mbrain", package = "semla")) |> 
   LoadImages()
#> 
#> ── Loading H&E images ──
#> 
#>  Loading image from /private/var/folders/z8/nrcst881607gn95xh3_4qvb00000gp/T/Rtmpf80zo9/temp_libpath1c4b5544360a/semla/extdata/mousebrain/spatial/tissue_lowres_image.jpg
#>  Scaled image from 600x565 to 400x377 pixels
#>  Saving loaded H&E images as 'rasters' in Seurat object

# Fetch Staffli object from a Seurat object
staffli_object <- GetStaffli(se_mbrain)