Learn R Programming

quantable (version 0.3.6)

filterSignificant: filters significant values and returns them as list of data.frames

Description

filters significant values and returns them as list of data.frames

Usage

filterSignificant(foldchange, pvals, labels = NULL, pthresh = 0.05,
  foldchangethresh = 1, biasAdjust = FALSE)

Arguments

foldchange

log2 fold changes

pvals

p values

labels

e.g. protein ID's

pthresh

pvalue threshold

foldchangethresh

fold change threshold

biasAdjust

adjustment for p-values

Examples

Run this code
# NOT RUN {
library(quantable)
foldchange <- rnorm(1000)
pvals <-rexp(1000)
filterSignificant(foldchange, pvals,
 rep("blabla",length(pvals)), pthresh=0.1, foldchangethresh=1)
filterSignificant(foldchange[foldchange>0], pvals[foldchange>0],
 rep("blabla",length(pvals[foldchange>0])), pthresh=0.1, foldchangethresh=1)
filterSignificant(foldchange[foldchange<0], pvals[foldchange<0],
 rep("blabla",length(pvals[foldchange<0])), pthresh=0.1, foldchangethresh=1)
tt <- filterSignificant(foldchange, pvals,
 rep("blabla",length(pvals)), pthresh=0.1, foldchangethresh=10)
# }

Run the code above in your browser using DataLab