Return top n spatially variable genes given a Seurat object performed by FindSVGs.

topSVGs(seu, ntop=5)

Arguments

seu

an object of class "Seurat".

ntop

an optional positive integer, means how many spatially variable genes to access.

Details

Nothing

Value

return a character vector including the names of SVGs.

References

None

Author

Wei Liu

Note

nothing

See also

topSVGs

Examples

  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"