normalizeData: Data Normalization

Description Usage Arguments Details Value Examples

Description

Perform various normalizations of expression data

Usage

1
normalizeData(meta, norm.method = "mean")

Arguments

meta

list returned by metaData

norm.method

String denoting whether to normalize to the mean or median of all samples or a control group specified in meta. Default is norm.method = "mean".

Details

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.

Value

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.

Examples

 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)

jcardenas14/genBART documentation built on May 8, 2019, 5:49 p.m.