Load 10X visium data
1 | library(Seurat) |
Normalization
1 | obj <- SCTransform(obj, assay = "Spatial", verbose = FALSE) |
Reduction and cluster
1 | obj <- RunPCA(obj, assay = "SCT", verbose = FALSE) |
Identification of spatially variable features
1 | obj <- FindSpatiallyVariableFeatures(obj, assay = "SCT", selection.method = "markvariogram", features = VariableFeatures(obj)[1:1000]) |
Reference:
Seurat