Learn R Programming

MAMA (version 1.0.2)

rank.genes.adv: Function to rank genes

Description

A wrapper function to rank.genes. This function provides a data frame of ranks, where rows correspond to genes and columns to data sets.

Usage

rank.genes.adv(testp)

Arguments

testp
A list with two slots: test and p, where test is data frame of T-statistics and p is data frame of p-values. In both rows refer to genes and columns to data sets. It is output from meta.test

Value

  • A data frame of ranks, where rows correspond to genes and columns to data sets.

See Also

meta.test, rank.genes

Examples

Run this code
## The function is currently defined as
function(testp)
{
n<-ncol(testp$test)
for (i in 1:n)
{
 if (i==1) {
 r<-rank.genes(testp$test[,i],testp$p[,i])
 } else {
 r<-cbind(r,rank.genes(testp$test[,i],testp$p[,i])) 
 }
  }
rownames(r)<-rownames(testp$test)
colnames(r)<-colnames(testp$p)
return(r)
  }

Run the code above in your browser using DataLab