Algorithm Search⌘K

Problemadvanced

Boolean network attractor detection

Also called attractor finding in Boolean networks.

Find the fixed points and cycles of a synchronous or asynchronous Boolean network. Deciding if a fixed point exists is NP-complete; exact methods use state space search, SAT or BDDs.

An attractor of a Boolean network is a set of states that the dynamics never leaves and that has no smaller such set inside it. Attractor detection asks for the attractors of a given network: whether there is a fixed point, all fixed points, or all attractors with their lengths and, sometimes, their basins. In models of gene regulation the attractors stand for the stable behaviors of a cell, such as cell types or a cell cycle. Deciding whether a network has a fixed point is NP-complete, even when every gene reads at most two genes, so no exact method is known that is fast on all networks. For small networks a full search of the 2n2^n states solves every version; for larger ones the methods encode the question as satisfiability or with binary decision diagrams. This page is about the computation on one given network. The gene regulatory network page describes the model, the random Boolean network page the typical attractors of random networks, and gene regulatory network inference the task of finding the network from data.

In plain words

Each gene of the network is on or off, and a rule for each gene says what it does next, given the genes it reads. Start from any pattern of on and off genes and keep applying the rules. Since there are only finitely many patterns, the run must end in a loop, or stop at a pattern that does not change. Those loops and resting patterns are the attractors. The task is to find all of them.

With a few genes you can try every starting pattern. With a hundred genes there are far too many patterns, so the methods instead describe the condition "this pattern does not change" or "this pattern comes back after some steps" as a logic formula and let a solver search for patterns that satisfy it.

Definition

A Boolean network on nn genes is a list of functions f1,…,fn:{0,1}n→{0,1}f_1, \ldots, f_n : \{0, 1\}^n \to \{0, 1\}, where fif_i depends on a set of input genes. The functions are given as formulas or circuits, or as truth tables over the inputs when each gene has at most KK inputs. The state graph has the 2n2^n states as nodes; its edges depend on the update scheme.

  • Synchronous. All genes update at once: x→F(x)=(f1(x),…,fn(x))x \to F(x) = (f_1(x), \ldots, f_n(x)). Each state has exactly one successor, so the state graph is a functional graph, and the attractors are its cycles. A cycle of length 1 is a fixed point, and a longer cycle is a cyclic attractor.
  • Asynchronous. One gene updates at a time: x→x′x \to x', where x′x' equals xx except that xi′=fi(x)x'_i = f_i(x), for each ii with fi(x)≠xif_i(x) \neq x_i. A state can have up to nn successors. The attractors are the terminal strongly connected components of the state graph: the components with no edge leaving them, the sinks of the condensation graph. A fixed point is a state with no successor, and it is a fixed point in both schemes.

The basin of an attractor is the set of states that can reach it. In the synchronous scheme the basins partition the state space; in the asynchronous scheme a state can reach several attractors.

The main tasks, from easy to hard to state:

  1. Fixed point existence. Is there an xx with F(x)=xF(x) = x?
  2. Fixed point listing or counting. List or count all such xx.
  3. Attractor listing. List all attractors of the given scheme, possibly only those of length at most pp.

Variants

  • Bounded length. Find the synchronous attractors of length at most pp. For fixed pp this is a satisfiability question in pnp n variables.
  • Restricted functions. Networks of AND and OR functions, of threshold functions, or of monotone functions only. Fixed point existence stays NP-complete for networks of in-degree 2 whose functions are ANDs and ORs of literals, as the reduction below shows.
  • Other update schemes. Block sequential updates, in which groups of genes update in a fixed order, and the most permissive scheme, which allows the intermediate values of a gene. Each scheme has its own attractors; the fixed points are the same in all of them.
  • Basins and control. Find the basin sizes of the attractors, or a smallest set of genes to fix so that the network reaches a chosen attractor.

Examples

A switch. Take two genes that repress each other, as in a genetic toggle switch: A′=¬BA' = \neg B and B′=¬AB' = \neg A, with states written ABAB. Synchronously, 0101 and 1010 are fixed points, and 00→11→0000 \to 11 \to 00 is a cycle of length 2. Asynchronously, 0000 goes to 1010 or to 0101, and 1111 goes to 0101 or to 1010, so the only attractors are the two fixed points. The cycle exists only because both genes switch at the same instant, which a real cell does not do.

A ring of three repressors. Take A′=¬CA' = \neg C, B′=¬AB' = \neg A, C′=¬BC' = \neg B, a Boolean form of the repressilator, with states ABCABC. A fixed point would need A=¬C=B=¬AA = \neg C = B = \neg A, which is impossible. Synchronously, 000→111→000000 \to 111 \to 000 is a cycle of length 2, and the other six states form one cycle of length 6, 100→101→001→011→010→110→100100 \to 101 \to 001 \to 011 \to 010 \to 110 \to 100. Asynchronously, each of those six states has exactly one gene with fi(x)≠xif_i(x) \neq x_i, so it has one successor, the next state of the same cycle; the six states form a terminal component, a cyclic attractor. The states 000000 and 111111 have three successors each and lead into it, so they are not part of any attractor.

Toward an algorithm. The random Boolean network page gives a scan of the synchronous state space that returns every attractor and its basin in O(2n)O(2^n) steps, with a test against a second method for nn up to 12. In the example there, with A′=BA' = B, B′=AB' = A and C′=A∧BC' = A \wedge B, the attractors are two fixed points and one cycle of length 2, with basins of 2, 2 and 4 states.

Known algorithms

  • Full state space search, synchronous. Compute FF on all 2n2^n states and find the cycles of the functional graph, in O(2nnK)O(2^n n K) time for in-degree KK and O(2n)O(2^n) space. For one trajectory, Floyd's cycle detection or Brent's method finds the attractor that it reaches with O(1)O(1) stored states, but covering all attractors needs all starts.
  • Full state space search, asynchronous. Build the state graph, with at most n2nn 2^n edges, find its strongly connected components with Tarjan's algorithm in time linear in its size, and keep the components with no edge leaving them. This costs O(n2n)O(n 2^n) time and space.
  • Fixed points by SAT. The fixed points are the satisfying assignments of ⋀i(xi↔fi(x))\bigwedge_i (x_i \leftrightarrow f_i(x)). A CDCL solver finds one, and blocking clauses list them all, one solver call per fixed point.
  • Cycles by bounded model checking. Unroll the network pp times with variables x0,…,xpx^0, \ldots, x^p, add xt+1=F(xt)x^{t+1} = F(x^t) and xp=x0x^p = x^0, and solve. Dubrova and Teslenko (2011) search paths of growing length, exclude the attractors found so far, and stop when no path of the current length can avoid them. The method has no polynomial bound; its cost grows with the lengths of the attractors and of the paths that lead to them.
  • Binary decision diagrams. Represent sets of states and the transition relation as reduced ordered BDDs (Bryant 1986), and compute attractors by repeated image and preimage operations, which work on whole sets of states at once. Garg et al. (2008) used this for both update schemes. The cost depends on the size of the diagrams, which is exponential for some functions and orders of the variables.
  • Network reduction. A gene that no other gene reads can be removed before the search: the synchronous attractors of the smaller network map one to one onto those of the full network, because the removed gene's value is a function of the previous state. Genes with constant functions can be fixed and propagated in the same way. These rules often shrink models a lot, but give no bound in general.

Bounds

Fixed point existence is NP-complete (theorem). It is in NP, since a state xx is a certificate that is checked by evaluating F(x)F(x). It is NP-hard by the reduction below, even for networks in which every gene reads at most two genes and every function is the identity or an AND or OR of two literals. The result is usually credited to Akutsu, Kuhara, Maruyama and Miyano (1998).

Counting fixed points is #P-complete (theorem). The reduction below is parsimonious: each satisfying assignment of the formula gives exactly one fixed point. So counting fixed points is as hard as counting the satisfying assignments of a 3-CNF formula.

No subexponential algorithm under ETH (theorem, conditional). The reduction maps a 3-SAT formula with vv variables and mm clauses to a network with v+3m+1v + 3m + 1 genes. Under the exponential time hypothesis and the sparsification lemma, 3-SAT has no 2o(v+m)2^{o(v + m)} time algorithm, so fixed point existence has no 2o(n)2^{o(n)} time algorithm for networks of in-degree 2.

Output size. The identity network xi′=xix_i' = x_i has 2n2^n fixed points, so listing all attractors takes Ω(2n)\Omega(2^n) time in the worst case, whatever the method. The full search is optimal in this sense.

Reductions

From 3-SAT to fixed point existence. Let φ=C1∧⋯∧Cm\varphi = C_1 \wedge \cdots \wedge C_m with clauses Cj=ℓj1∨ℓj2∨ℓj3C_j = \ell_{j1} \vee \ell_{j2} \vee \ell_{j3} over variables u1,…,uvu_1, \ldots, u_v. Build a network with these genes and functions:

  • a gene xkx_k with xk′=xkx_k' = x_k for each variable;
  • for each clause, genes aja_j and cjc_j with aj′=ℓj1∨ℓj2a_j' = \ell_{j1} \vee \ell_{j2} and cj′=aj∨ℓj3c_j' = a_j \vee \ell_{j3}, where a literal ¬uk\neg u_k is read as ¬xk\neg x_k;
  • a chain y1′=c1y_1' = c_1 and yj′=yj−1∧cjy_j' = y_{j-1} \wedge c_j for j=2,…,mj = 2, \ldots, m;
  • a gene zz with z′=¬z∨ymz' = \neg z \vee y_m.

Every gene reads at most two genes. At a fixed point, each aja_j, cjc_j and yjy_j equals its function of the current state, so cj=1c_j = 1 exactly when xx satisfies CjC_j, and ym=1y_m = 1 exactly when xx satisfies φ\varphi. The gene zz is fixed only if z=¬z∨ymz = \neg z \vee y_m; with ym=0y_m = 0 this says z=¬zz = \neg z, which is impossible, and with ym=1y_m = 1 it says z=1z = 1. So the network has a fixed point if and only if φ\varphi is satisfiable, and the fixed points correspond one to one to the satisfying assignments, since all genes other than the xkx_k are then determined. The network has v+3m+1v + 3m + 1 genes and is built in linear time.

From fixed points to SAT. The formula ⋀i(xi↔fi(x))\bigwedge_i (x_i \leftrightarrow f_i(x)) has the fixed points as its models, so any SAT solver decides the problem; with truth tables of in-degree KK the formula has O(n2K)O(n 2^K) clauses.

From asynchronous attractors to strongly connected components. As in the definition, the attractors are the sink components of the state graph, so an SCC algorithm on the explicit state graph solves the problem in time linear in n2nn 2^n.

From synchronous attractors to cycle detection. The state graph is a functional graph, so its attractors are its cycles, which any cycle detection method finds from each start.

Applications

  • Cell fates in models of gene regulation. Boolean models of real gene regulatory networks have tens to hundreds of genes. Their fixed points are compared with the measured expression patterns of cell types, and their cyclic attractors with oscillations such as the cell cycle.
  • Typical behavior of random networks. The number and length of the attractors of random Boolean networks are measured by exact detection on small networks.
  • Choice of the update scheme. Comparing the synchronous and asynchronous attractors of a model shows which cycles are artifacts of the synchronous update, as in the switch example.
  • Control. Finding genes whose fixed values remove an unwanted attractor, for example a disease state, starts from the list of attractors.

References

  1. Tatsuya Akutsu, Satoru Kuhara, Osamu Maruyama and Satoru Miyano, A system for identifying genetic networks from gene expression patterns produced by gene disruptions and overexpressions, 1998, the paper usually cited for the NP-hardness of finding a fixed point of a Boolean network
  2. Elena Dubrova and Maxim Teslenko, A SAT-based algorithm for finding attractors in synchronous Boolean networks, IEEE/ACM Transactions on Computational Biology and Bioinformatics 8(5), 1393-1399, 2011, bounded model checking of paths of growing length, with the found attractors excluded
  3. Abhishek Garg, Alessandro Di Cara, Ioannis Xenarios, Luis Mendoza and Giovanni De Micheli, Synchronous versus asynchronous modeling of gene regulatory networks, Bioinformatics 24(17), 1917-1925, 2008, the algorithms on reduced ordered binary decision diagrams for the attractors of synchronous and asynchronous networks
  4. Randal E. Bryant, Graph-based algorithms for Boolean function manipulation, IEEE Transactions on Computers C-35(8), 677-691, 1986, reduced ordered binary decision diagrams and their operations
  5. Robert Tarjan, Depth-first search and linear graph algorithms, SIAM Journal on Computing 1(2), 146-160, 1972, the linear time algorithm for strongly connected components
  6. Stuart A. Kauffman, Metabolic stability and epigenesis in randomly constructed genetic nets, Journal of Theoretical Biology 22(3), 437-467, 1969, attractors of synchronous Boolean networks read as cell types

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a known algorithm
  • a contract.yaml