foldChanges {StabPerf} | R Documentation |
Calculates fold changes.
Description
Calculates fold changes of gene expression between to sample groups.
Usage
foldChanges(data, labels, one, two, middle=mean.middle, log=TRUE)
Arguments
data |
a data.frame containing samples (columns) and genes (rows) |
labels |
a factor, grouping of the samples |
one |
the name of the first group |
two |
the name of the second group |
middle |
function defining a measure of central tendency, e.g. mean |
log |
Boolean. Whether fold changes should be subjected to log2() |
Details
Calculates fold changes of gene expression between to sample groups. The subsets of data are created using groupData
. A middle for each row in data-groups is calculated using middle
. The middle-values of two
is divided by one
and logged.
Value
fc |
list of fold changes for all spots. |
See Also
groupData
, pValues
Examples
data <- loadData("data/dataset.RData")
# calculate the foldChange for all spots between "normal" and "early".
fc <- foldChanges(data$x, data$y, 1, 2)
[Package
StabPerf version 0.5
Index]