Description Usage Arguments Details Value Examples
View source: R/normalizeData.R
Perform various normalizations of expression data
1 | normalizeData(meta, norm.method = "mean")
|
meta |
list returned by |
norm.method |
String denoting whether to normalize to the mean or median
of all samples or a control group specified in |
This function performs various normalizations of the expression
data, depending on the study design and the parameters defined in
metaData
. For all study designs, the data is normalized to
the mean (or median) of all the samples. For cross-sectional studies with
controls, an additional normalization to the mean (or median) of the
controls is performed. For longitudinal designs, baseline normalization (
subtract out each subject's baseline) and normalization to the mean (or
median) of controls (if present) is performed. In addition, separate
normalizations on baseline samples is performed.
y1b
data frame of baseline samples normalized according to
norm.method
. NULL if baseline samples are not specified in
meta
.
y2b
data frame of baseline samples normalized to controls
according to norm.method
. NULL if control samples are not specified
in meta
.
y1
data frame of all samples normalized according to
norm.method
.
y2
data frame of all samples normalized to controls according
to norm.method
. NULL if control samples are not specified in
meta
.
y3
data frame of all samples normalized to their baseline.
NULL if study is not longitudinal or if baseline samples are not specified
in meta
.
norm.method
string describing normalization method used.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Example data
data(tb.expr)
data(tb.design)
# Use first 100 probes to demonstrate
dat <- tb.expr[1:100,]
# Create desInfo object
meta.data <- metaData(y = dat, design = tb.design, data.type = "microarray",
columnname = "columnname", long = TRUE, sample.id = "sample_id",
subject.id = "monkey_id", time.var = "timepoint",
baseline.var = "timepoint", baseline.val = 0)
# Normalize and cluster data
data.norm <- normalizeData(meta = meta.data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.