Return top n spatially variable genes given a Seurat object performed by FindSVGs.
Arguments
- seu
an object of class "Seurat".
- ntop
an optional positive integer, means how many spatially variable genes to access.
Value
return a character vector including the names of SVGs.
Examples
data(seu)
seu <- FindSVGs(seu, nfeatures=100, verbose=FALSE)
(genes <- topSVGs(seu, ntop=10))
#> [1] "gene49" "gene26" "gene45" "gene11" "gene1" "gene2" "gene3" "gene4"
#> [9] "gene5" "gene6"