Learn R Programming

MAMA (version 1.0.2)

gene.select.FC: Function to select genes according to fold change

Description

Function selects genes with fold change (in absolute value) above input cutoff

Usage

gene.select.FC(data, cutoff)

Arguments

data
Data frame of fold change with columns corresponding to microarray experiments and rows to genes
cutoff
Cutoff for selection

Value

  • List - each slot refers to one column of input data frame and it is a vector of genes names with fold change above selected threshold

Examples

Run this code
## The function is currently defined as
function(data, cutoff)
{
lists<-list()
for (i in 1:ncol(data)) lists[[i]]<-rownames(data)[abs(data[,i])>=cutoff]
names(lists)<-colnames(data)
return(lists)
  }

Run the code above in your browser using DataLab