Learn R Programming

MAMA (version 1.0.2)

cv.filter: Microarray probes filtering

Description

Function to filter microarray probes according to coefficient of variation

Usage

cv.filter(data, cutoff = 0.05)

Arguments

data
expression matrix with probes in rows and samples in columns
cutoff
cutoff value for filtering

Value

  • Expression matrix, probes with CV below cutoff are filtered out.

Examples

Run this code
## The function is currently defined as
function(data, cutoff=0.05)
{
cv<-apply(data,1,function(x) sd(x)/mean(x))
co<-cutoff
plot(sort(cv), ylab="Coefficient of variation")
abline(h=co,col="red")
data<-data[sd>cutoff,]
return(data)
  }

Run the code above in your browser using DataLab