Ridge regression wrapper for modelGeneExpression
modelGeneExpression_ridge_regression_wraper.RdInternal function used in modelGeneExpression. It runs ridge regression
parallelly across signatures and samples as specified by experiment design.
Usage
modelGeneExpression_ridge_regression_wraper(
mae,
yname,
uname,
xnames,
groups,
standardize,
parallel,
precalcmodels,
...
)Arguments
- mae
MultiAssayExperiment object such as produced by
prepareCountsForRegression.- yname
string indicating experiment in
maeto use as the expression input.- uname
string indicating experiment in
maeto use as the basal expression level.- xnames
character indicating experiments in
maeto use as molecular signatures.- groups
factor representation of design matrix.
- standardize
logical flag indicating if the molecular signatures should be scaled. Advised to be set to
TRUE.- parallel
parallel argument to internally used
cv.glmnetfunction. Advised to be set toFALSEas it might interfere with parallelization used inmodelGeneExpression.- precalcmodels
optional list of precomputed
'cv.glmnet'objects for each molecular signature and sample. The elements of this list should be matching thexnamesvector. Each of those elements should be a named list holding'cv.glmnet'objects for each sample. If provided those models will be used instead of running regression from scratch.- ...
arguments passed to glmnet::cv.glmnet.