This function generates a random DAG Boolean model, then get another random DAG Boolean model that is a specified number of steps apart by adding and/or removing genes. Difficult to generate completely directed graph with a specified number of steps apart.
1 2 | gen_two_rmodel_dag(var, steps, mvar = length(var), in_amat = NULL,
acyclic = T)
|
var |
character vector. A vector of single genes/variables to be used in the model. |
steps |
integer. Number of steps apart between the two models. If steps=0, give completely random starting model. |
mvar |
integer. Maximum number of variables in act or inh rule. Default to length(var). |
in_amat |
matrix. Provide adjacency matrix of first model. |
acyclic |
logical. Whether to restrict the model to being acyclic or not. Defaults to TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.