Ensemble Methods

Random Boolean Network

Methods to generate random ensembles of Boolean networks.

cana.random_boolean_network.er_boolean_network(N=10, p=0.2, bias=0.5, bias_constraint='soft', remove_multiedges=True, niter_remove=1000)[source]

TODO: description

cana.random_boolean_network.from_string_boolean(self, string, keep_constants=True, **kwargs)[source]

Instanciates a Boolean Network from a Boolean update rules format.

Parameters

string (string) – A boolean update rules format representation of a Boolean Network.

Returns

The boolean network object.

Return type

(BooleanNetwork)

Examples

String should be structured as follow:

# BOOLEAN RULES (this is a comment)
# node_name*=node_input_1 [logic operator] node_input_2 ...
NODE3*=NODE1 AND NODE2 ...

See also

from_string() from_dict()

cana.random_boolean_network.random_automata_table(indegree, bias, bias_constraint='soft')[source]

TODO: description

cana.random_boolean_network.regular_boolean_network(N=10, K=2, bias=0.5, bias_constraint='soft', keep_constants=True, remove_multiedges=True, niter_remove=1000)[source]

TODO: description