Description Usage Arguments Details Value Author(s) References See Also Examples
Estimates parameters for the glog transformation on probe-level Affymetrix expression data, by maximum likelihood or by minimizing the stability score.
1 2 3 4 |
eS |
An |
ngenes |
Number of randomly sampled probesets to be used in estimating the transformation parameter |
starting |
If |
lambda |
Starting value for parameter |
alpha |
Starting value for parameter |
gradtol |
A positive scalar giving the tolerance at which the scaled gradient is considered close enough to zero to terminate the algorithm |
lowessnorm |
If |
method |
Determines optimization method. Default is 1,
which corresponds to a Newton-type method (see |
mult |
If |
model |
Specifies model to be used. Default is to use all variables from eS without interactions. See details. |
SD |
If |
rank |
If |
model.based |
If |
rep.arrays |
List of sets of replicate arrays. Each element of |
The model
argument is an optional character string, constructed like the right-hand
side of a formula for lm
. It specifies which of the variables in the ExpressionSet
will
be used in the model and whether interaction terms will be included. If model=NULL
,
it uses all variables from the ExpressionSet
without interactions. Be careful of using
interaction terms with factors; this often leads to overfitting, which will yield an error.
The default estimation method is maximum likelihood. The likelihood is derived by assuming that there exist values for lambda
and alpha
such that the residuals from the linear model in model
, fit to glog-transformed data using those values
for lambda
and alpha
, follow a normal distribution. See Durbin and Rocke (2003) for details.
If SD = TRUE
, lambda
and alpha
are estimated by minimizing the stability score rather than by maximum likelihood.
The stability score is defined as the absolute value of the slope coefficient from the regression of the replicate/residual
standard deviation on the probe/row means, or on the rank of the probe/row means. If model.based = TRUE
, the stability
score is calculated using the standard deviation of residuals from the linear model in model
. Otherwise, the stability score is
calculated using the pooled standard deviation over sets of replicates in rep.arrays
. See Wu and Rocke (2009) for details.
A random sample of probsets (of size ngene
) is sampled from featureNames(eS)
. Expression data from all probes in the sampled
probesets is used in estimating the transformation parameters.
Optimization methods in method
are as follows:
Newton-type method, using nlm
Nelder-Mead, using optim
BFGS, using optim
Conjugate gradients, using optim
Simulated annealing, using optim
(may only be used when mult = TRUE
)
A list with components:
lambda |
Estimate of transformation parameter lambda |
alpha |
Estimate of transformation parameter alpha |
Lei Zhou, David Rocke, Geun-Cheol Lee, John Tillinghast, Blythe Durbin-Johnson, and Shiquan Wu
Durbin, B.P and Rocke, D.M. (2003) Estimation of Transformation Parameters for Microarray Data, Bioinformatics, 19, 1360–1367.
Wu, S. and Rocke, D.M. (2009) Analysis of Illumina BeadArray data using variance stabilizing transformations.
Zhou, L. and Rocke, D.M. (2005) An expression index for Affymetrix GeneChips based on the generalized logarithm, Bioinformatics, 21, 3983–3989.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | library(LMGene)
library(affy)
library(Biobase)
library(affydata)
data(Dilution)
tranpar.Dilution <- tranestAffyProbeLevel(Dilution, model = "liver",
ngenes = 3000, method = 2)
# transform data
trans.Dilution <- transeS(Dilution, tranpar.Dilution$lambda,
tranpar.Dilution$alpha)
# extract transformed perfect matches
exprs(trans.Dilution) <- pm(trans.Dilution)
# lowess normalize transformed data
lnorm.Dilution <- lnormeS(trans.Dilution)
## Not run:
# Average over probesets
# First, create index of probes
fnames <- featureNames(Dilution)
p <- length(featureNames(Dilution))
ind <- vector()
for (i in 1:p){
nprobes <- dim(pm(Dilution,fnames[i]))[1]
ind <- c(ind, rep(i,nprobes))
}
avg.Dilution <- psmeans(lnorm.Dilution, ind)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.