Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stat.gnames

Sort Genes According to the Value of a Statistic


Description

Lists genes and corresponding statistics in decreasing order of the statistics. This function applies to any type of statistic, including log ratios, one and two-sample t-statistics, and F-statistics. Missing values are ignored, as in sort(..., na.last=NA).

Usage

stat.gnames(x, gnames, crit= 50)

Arguments

x

a numeric vector containing the statistics for each gene. Missing values (NAs) are allowed.

gnames

a character vector containing the gene names.

crit

specifies the number of genes to be returned. If crit < 1, the crit*100% genes with the largest x values are listed. If crit >= 1, the crit genes with the largest x values are listed.

Value

List containing the following components

gnames

gene names sorted in decreasing order of the statistics in x.

t

statistics sorted in decreasing order.

Author(s)

See Also

Examples

data(swirl)
aveM <- apply(maM(swirl), 1, mean.na)
Gnames <- maGeneTable(swirl)

stat.gnames(abs(aveM), Gnames, crit=10)
stat.gnames(aveM, Gnames, crit=0.01)

marray

Exploratory analysis for two-color spotted microarray data

v1.68.0
LGPL
Authors
Yee Hwa (Jean) Yang <jeany@maths.usyd.edu.au> with contributions from Agnes Paquet and Sandrine Dudoit.
Initial release
2009-08-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.