View source: R/offset_images.R
offset_images | R Documentation |
Internal function for defining coordinates with from multi-sample Seurat objects
offset_images(seurat_obj)
seurat_obj |
A Seurat object |
A coordinate data frame
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.