rank_by_s2n {dslice}R Documentation

Ranking genes by signal to noise ratio

Description

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

Usage

  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

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

[Package dslice version 1.2.2 Index]