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

  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"