mostVar: mostVar Calculate the top n most variable genes in a matrix...

Description Usage Arguments Value Examples

View source: R/mostVar.R

Description

mostVar Calculate the top n most variable genes in a matrix of gene expression data

Usage

1
mostVar(data, n, i_want_most_var = TRUE)

Arguments

data

An expression matrix (samples in columns, genes in rows)

n

The number of variable genes to return

i_want_most_var

Logical value to return most variable (TRUE) or least variable (FALSE) genes

Value

A subset of n most variable rows from the original data

Examples

1
2
3
4
5
#synthesise example data matrix
mtx <- matrix(rnorm(mean = 7, n = 90), ncol = 10) 
row.names(mtx) <- LETTERS[1:9]

mv_3 <- mostVar(data = mtx, n = 3)

abc-igmm/transcripTools documentation built on May 20, 2019, 3:05 p.m.