bayes {MetNet} | R Documentation

## Create an adjacency matrix based on constraint-based structure learning algorithm

### Description

`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`.

### Usage

    bayes(x, ...)

### Arguments

`x` | matrix, where columns are the samples and the rows are features (metabolites), cell entries are intensity values
`...` | parameters passed to `fast.iamb`

### Details

For use of the parameters used in the `fast.iamb` function, refer to ?bnlearn::fast.iamb.

### Value

matrix, matrix with edges inferred from constraint-based structure learning algorithm `fast.iamb`

### Author(s)

Thomas Naake, thomasnaake @googlemail.com

### Examples

    data("x_test", package="MetNet")
    x <- x_test[, 3:dim(x_test)[2]]
    x <- as.matrix(x)
    bayes(x)

[Package MetNet version 1.0.1 Index]