Skip to contents

Convert a Giotto object into a new Seurat object. Requires GiottoClass.

Usage

giotto_to_srt(giotto, ...)

Arguments

giotto

A Giotto object. For a round trip, normalize the Seurat object with Seurat::NormalizeData() before converting it to Giotto.

...

Arguments passed to other functions.

Value

A new Seurat object.

Examples

if (FALSE) { # \dontrun{
data(visium_human_pancreas_sub)
spatial <- Seurat::NormalizeData(
  visium_human_pancreas_sub,
  assay = "Spatial",
  verbose = FALSE
)
giotto <- srt_to_giotto(spatial, image = "slice1")
giotto_to_srt(giotto)
} # }