subset a matrix by top variable genes
top_var(expression.matrix = NULL, ngenes = 1500)
expression.matrix | is a matrix with genes in rows and cells in columns |
---|---|
ngenes | number of genes used for clustering calculations. |
a subsetted expression matrix with the top n most variable genes
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))