top_var {scGPS} | R Documentation

## select top variable genes

### Description

subset a matrix by top variable genes

### Usage

    top_var(expression.matrix = NULL, ngenes = 1500)

### Arguments

`expression.matrix` | is a matrix with genes in rows and cells in columns
`ngenes` | number of genes used for clustering calculations.

### Value

a subsetted expression matrix with the top n most variable genes

### Examples

    day2 <- day_2_cardio_cell_sample
    mixedpop1 <-new_scGPS_object(ExpressionMatrix = day2$dat2_counts,
        GeneMetadata = day2$dat2geneInfo, CellMetadata = day2$dat2_clusters)
    SortedExprsMat <-top_var(expression.matrix=assay(mixedpop1))

[Package scGPS version 1.8.0 Index]