bayes {MetNet} | R Documentation |
bayes
infers an adjacency matrix using
constraint-based structure learning algorithm fast.iamb
from the
bnlearn
package. bayes
extracts then the reported
connections from running the fast.iamb
function and assigns the
arcs of the discrete Bayesian connections to binary values. The
adjacency matrix is returned by bayes
.
bayes(x, ...)
x |
matrix, where columns are the samples and the rows are features (metabolites), cell entries are intensity values |
... |
parameters passed to |
For use of the parameters used in the fast.iamb
function,
refer to ?bnlearn::fast.iamb.
matrix, matrix with edges inferred from constraint-based structure
learning algorithm fast.iamb
Thomas Naake, thomasnaake @googlemail.com
data("x_test", package="MetNet") x <- x_test[, 3:dim(x_test)[2]] x <- as.matrix(x) bayes(x)