This function generates one random Boolean rule (both act and inh) per run. Return a list of two vectors. Note that this method will not give empty rule, i.e. 0 term in both act and inh rules.
1 2 | gen_singlerule(x, np, tar_ind, and_bool, self_loop = F,
rule_type = "random")
|
x |
character vector. A vector of all single terms to be used. |
np |
integer. Number of gene variables in a rule. NOT max_varperrule here. |
tar_ind |
numerical. Indicate which gene is the rule for. Used in preventing self-loop. |
and_bool |
logical. Indicates whether to include AND terms or not. |
self_loop |
logical. Indicates whether to allow self_loop. Default to F. |
rule_type |
character. Types of rules. Defaults to random. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.