rank_by_s2n: Ranking genes by signal to noise ratio

Description Usage Arguments Value Examples

View source: R/rank_by_s2n.R

Description

Ranking genes by signal to noise ratio according to their expression data.

Usage

1
  rank_by_s2n(expmat, label)

Arguments

expmat

A matrix of gene expression data. Each row is a gene and each column is a sample.

label

An integer vector of encoded pheotypes. Its value is 0 and 1. Its length should match the column number of expression matrix.

Value

A vector of rank of each gene according to signal to noise ratio.

Examples

1
2
3
expdat <- matrix(rnorm(500), nrow = 25, ncol = 20)
label <- rep(c(0, 1), 10)
ranklist <- rank_by_s2n(expdat, label)

dslice documentation built on May 29, 2017, 8:03 p.m.