gen_singlerule: Generate random act and inh rule for a single gene

Description Usage Arguments

Description

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.

Usage

1
2
gen_singlerule(x, np, tar_ind, and_bool, self_loop = F,
  rule_type = "random")

Arguments

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.


BTR documentation built on May 2, 2019, 12:21 p.m.