topSVGs.Rd
Return top n spatially variable genes given a Seurat object performed by FindSVGs.
topSVGs(seu, ntop=5)
an object of class "Seurat".
an optional positive integer, means how many spatially variable genes to access.
Nothing
return a character vector including the names of SVGs.
None
nothing
topSVGs
seu <- gendata_RNAExp(height=20, width=20,p=200, K=4)
seu <- FindSVGs(seu, nfeatures=100, verbose=FALSE)
(genes <- topSVGs(seu, ntop=10))
#> [1] "gene61" "gene4" "gene78" "gene137" "gene59" "gene192" "gene133"
#> [8] "gene82" "gene196" "gene197"