offset_images: Offset multiple Seurat images

View source: R/offset_images.R

offset_imagesR Documentation

Offset multiple Seurat images

Description

Internal function for defining coordinates with from multi-sample Seurat objects

Usage

offset_images(seurat_obj)

Arguments

seurat_obj

A Seurat object

Value

A coordinate data frame

Examples

## Not run: 
brain1 <- LoadData("stxBrain", type = "anterior1")
brain2 <- LoadData("stxBrain", type = "anterior2")
brain1 <- SCTransform(brain1, assay = "Spatial", verbose = FALSE)
brain2 <- SCTransform(brain2, assay = "Spatial", verbose = FALSE)
brain <- merge(brain1,brain2)
DefaultAssay(brain) <- "SCT"
VariableFeatures(brain) <- c(VariableFeatures(brain1),VariableFeatures(brain2))
brain <- RunPCA(brain)
brain <- offset_images(brain)

## End(Not run)


maple documentation built on March 18, 2022, 6:02 p.m.

Related to offset_images in maple...