topSVGs: Return the top n SVGs

View source: R/main.R

topSVGsR Documentation

Return the top n SVGs

Description

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

Usage

  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.

Note

nothing

Author(s)

Wei Liu

References

None

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))
  

feiyoung/DR.SC documentation built on March 23, 2024, 6:31 p.m.