lasso {MetNet} | R Documentation |
lasso
infers a adjacency matrix using
LASSO using the stabsel.matrix
function from the
stabs
package. lasso
extracts the predictors from the
function stabsel.matrix
and writes the presence/absence
of this connection to a matrix that is returned.
lasso(x, parallel=FALSE, ...)
x |
matrix, where columns are the samples and the rows are features (metabolites), cell entries are intensity values |
parallel |
logical, should computation be parallelized? If
|
... |
parameters passed to |
For use of the parameters used in the stabsel.matrix
function,
refer to ?stabs::stabsel.matrix.
matrix, matrix with edges inferred from LASSO algorithm
stabsel.matrix
Thomas Naake, thomasnaake@googlemail.com
data("x_test", package="MetNet") x <- x_test[, 3:dim(x_test)[2]] x <- as.matrix(x) x_z <- t(apply(x, 1, function(y) (y - mean(y)) / sd(y))) ## Not run: lasso(x_z, PFER=0.75, cutoff=0.95)