Learn R Programming

DR.SC (version 3.7)

topSVGs: Return the top n SVGs

Description

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

Usage

topSVGs(seu, ntop=5)

Value

return a character vector including the names of SVGs.

Arguments

seu

an object of class "Seurat".

ntop

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

Author

Wei Liu

Details

Nothing

References

None

See Also

topSVGs

Examples

Run this code
  data(seu)
  seu <- FindSVGs(seu, nfeatures=100, verbose=FALSE)
  (genes <- topSVGs(seu, ntop=10))
  

Run the code above in your browser using DataLab