tranest(eS, ngenes = -1, starting = FALSE, lambda = 1000, alpha = 0, gradtol = 1e-3, lowessnorm = FALSE, method=1, mult=FALSE, model=NULL,
SD = FALSE, rank = TRUE, model.based = TRUE, rep.arrays = NULL)
ExpressionSet
object
TRUE
, user-specified starting values for lambda
and alpha
are input to
the optimization routinelambda
. Ignored unless starting = TRUE
alpha
. Ignored unless starting = TRUE
TRUE
, lowess normalization (using lnorm
) is used in calculating
the likelihood.nlm
and details.)TRUE
, tranest will use a vector alpha with one (possibly different) entry per sample.
Default is to use same alpha for every sample. SD
and mult
may not both be TRUE
.TRUE
, transformation parameters are estimated by minimizing the stability score rather than by maximum likelihood.
See details.TRUE
, the stability score is calculated by regressing the replicate standard deviations
on the ranks of the gene/row means (rather than on the means themselves). Ignored unless SD = TRUE
TRUE
, the stability score is calculated using the standard deviations of residuals from the linear
model in model
. Ignored unless SD = TRUE
rep.arrays
should be a vector with entries
corresponding to arrays (columns) in exprs(eS)
conducted under the same experimental conditions, i.e., with identical
rows in pData(eS)
. Ignored unless SD = TRUE
and model.based = FALSE
matrix
and information about experimental design factors, then you
can use neweS
to convert the data into an ExpressionSet
object. Please see
neweS
for more detail. 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 gene/row means, or on the rank of the gene/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.
Optimization methods in method
are as follows:
nlm
optim
optim
optim
optim
(may only be used when mult = TRUE
)Wu, S. and Rocke, D.M. (2009) Analysis of Illumina BeadArray data using variance stabilizing transformations.
tranestAffyProbeLevel
, lnorm
, glog
library(Biobase)
library(LMGene)
#data
data(sample.eS)
tranpar <- tranest(sample.eS, 100)
tranpar
tranpar <- tranest(sample.eS, mult=TRUE)
tranpar
Run the code above in your browser using DataLab