rank_by_s2n: Ranking genes by signal to noise ratio

View source: R/rank_by_s2n.R

rank_by_s2nR 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)

dslice documentation built on Nov. 22, 2023, 9:06 a.m.