Rdocumentation
powered by
Learn R Programming
BTR (version 1.2.4)
amat_to_bm: Convert adjacency matrix into BoolModel object
Description
This function converts adjacency matrix to BoolModel object. Able to take in adjacency matrix with -1, which encodes for inhibitory interaction.
Usage
amat_to_bm(amat, random = F)
Arguments
amat
matrix. directed adjacency matrix.
random
logical. Randomly assign to either act or inh rules, when the adjacency matrix only has values 0 and 1, but not -1.