Learn R Programming

BTR (version 1.2.4)

gen_one_rmodel: Generate a random Boolean model

Description

This function generates a random Boolean model. Returns an S4 BoolModel object. Note that this method will not give empty rule, i.e. 0 term in both act and inh rules.

Usage

gen_one_rmodel(var, exponent = 3, and_bool, self_loop = F, mvar = length(var), model_type = "random")

Arguments

var
character vector. A vector of single genes/variables to be used in the model.
exponent
integer. The exponent of power law distribution. Default to 3.
and_bool
logical. Indicates whether to include AND terms or not.
self_loop
logical. Indicates whether to allow self_loop. Default to F.
mvar
integer. Maximum number of variables in act or inh rule. Default to length(var).
model_type
character. Specifies the type of model generated.

Details

The number of terms in a function for a gene is modelled by power-law distribution.