top_var: select top variable genes

Description Usage Arguments Value Examples

View source: R/Utilities.R

Description

subset a matrix by top variable genes

Usage

1
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

1
2
3
4
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))

scGPS documentation built on Nov. 8, 2020, 5:22 p.m.