Rule-Based Modeling of Bio-Chemical Networks Workshop on Modelling - - PowerPoint PPT Presentation

rule based modeling of bio chemical networks
SMART_READER_LITE
LIVE PREVIEW

Rule-Based Modeling of Bio-Chemical Networks Workshop on Modelling - - PowerPoint PPT Presentation

Rule-Based Modeling of Bio-Chemical Networks Workshop on Modelling in Biology and Medicine MBM2019 Sandro Stucki Computer Science Engineering (CSE) Gothenburg University | Chalmers Gothenburg, 9 May 2019 1 / 25 Why use programming or


slide-1
SLIDE 1

Rule-Based Modeling

  • f Bio-Chemical Networks

Workshop on Modelling in Biology and Medicine – MBM2019

Sandro Stucki

Computer Science Engineering (CSE) Gothenburg University | Chalmers Gothenburg, 9 May 2019

1 / 25

slide-2
SLIDE 2

Why use programming or modeling languages?

2 / 25

slide-3
SLIDE 3

Why?

Why use programming or modeling languages? Syntax

  • formal, standardized knowledge representation,
  • shareable,
  • executable.

3 / 25

slide-4
SLIDE 4

Why?

Why use programming or modeling languages? Syntax

  • formal, standardized knowledge representation,
  • shareable,
  • executable.

Formal semantics

  • precise mathematical meaning of programs/models,
  • enables formal reasoning.

3 / 25

slide-5
SLIDE 5

Why?

Why use programming or modeling languages? Syntax

  • formal, standardized knowledge representation,
  • shareable,
  • executable.

Formal semantics

  • precise mathematical meaning of programs/models,
  • enables formal reasoning.

Tooling

  • execution, simulation,
  • translation, transformation, reduction,
  • analysis, verification.

3 / 25

slide-6
SLIDE 6

How?

Formal modeling languages – my wish list:

20 40 60 80 100 0.5 1 1.5 2 Number of Molecules Time CrnABK-data.csv A B K

4 / 25

slide-7
SLIDE 7

How?

Formal modeling languages – my wish list:

  • Simple yet expressive syntax/formalism.

20 40 60 80 100 0.5 1 1.5 2 Number of Molecules Time CrnABK-data.csv A B K

4 / 25

slide-8
SLIDE 8

How?

Formal modeling languages – my wish list:

  • Simple yet expressive syntax/formalism.
  • Formal semantics.

20 40 60 80 100 0.5 1 1.5 2 Number of Molecules Time CrnABK-data.csv A B K

4 / 25

slide-9
SLIDE 9

How?

Formal modeling languages – my wish list:

  • Simple yet expressive syntax/formalism.
  • Formal semantics.
  • Automation and tooling for manipulating models.

20 40 60 80 100 0.5 1 1.5 2 Number of Molecules Time CrnABK-data.csv A B K

4 / 25

slide-10
SLIDE 10

How?

Formal modeling languages – my wish list:

  • Simple yet expressive syntax/formalism.
  • Formal semantics.
  • Automation and tooling for manipulating models.

Example: Chemical Reaction Networks (CRNs) 2A + K ⇋ B + K kon, koff B ⇀ ∅ kdeg

20 40 60 80 100 0.5 1 1.5 2 Number of Molecules Time CrnABK-data.csv A B K

4 / 25

slide-11
SLIDE 11

How?

Formal modeling languages – my wish list:

  • Simple yet expressive syntax/formalism.
  • Formal semantics.
  • Automation and tooling for manipulating models.

Example: Chemical Reaction Networks (CRNs) 2A + K ⇋ B + K kon, koff B ⇀ ∅ kdeg

20 40 60 80 100 0.5 1 1.5 2 Number of Molecules Time CrnABK-data.csv A B K

4 / 25

slide-12
SLIDE 12

Chemical Reaction Networks (CRNs)

2A + K ⇋ B + K kon, koff B ⇀ ∅ kdeg Syntax

  • many formats, graphical textual, etc.
  • for example, SBML http://sbml.org/.

5 / 25

slide-13
SLIDE 13

Chemical Reaction Networks (CRNs)

2A + K ⇋ B + K kon, koff B ⇀ ∅ kdeg Syntax

  • many formats, graphical textual, etc.
  • for example, SBML http://sbml.org/.

Formal semantics

  • stochastic: Markov processes (CTMC),
  • differential: rate equations (ODEs),
  • others (e.g. Boolean).

5 / 25

slide-14
SLIDE 14

Chemical Reaction Networks (CRNs)

2A + K ⇋ B + K kon, koff B ⇀ ∅ kdeg Syntax

  • many formats, graphical textual, etc.
  • for example, SBML http://sbml.org/.

Formal semantics

  • stochastic: Markov processes (CTMC),
  • differential: rate equations (ODEs),
  • others (e.g. Boolean).

Lots of tooling! (See e.g. http://sbml.org/SBML_Software_Guide)

  • stochastic simulation (Monte Carlo/Gillespie),
  • numerical integration,
  • analysis, verification, . . .

5 / 25

slide-15
SLIDE 15

CRNs as a stochastic process

B A A C C A A

6 / 25

slide-16
SLIDE 16

CRNs as a stochastic process

  • 1. Pick a reaction α at random (weighted by kα × #matches).

B A A B A

B A A C C A A

6 / 25

slide-17
SLIDE 17

CRNs as a stochastic process

  • 1. Pick a reaction α at random (weighted by kα × #matches).
  • 2. Pink a match in the current state M at random.

B A A B A

B A A C C A A

6 / 25

slide-18
SLIDE 18

CRNs as a stochastic process

  • 1. Pick a reaction α at random (weighted by kα × #matches).
  • 2. Pink a match in the current state M at random.
  • 3. Update M according to α to obtain a future state M′.

B A A B A

B A A B A A C C A A A C C A A

6 / 25

slide-19
SLIDE 19

CRNs as a stochastic process

  • 1. Pick a reaction α at random (weighted by kα × #matches).
  • 2. Pink a match in the current state M at random.
  • 3. Update M according to α to obtain a future state M′.
  • 4. Advance time (Poisson process).

B A A B A

B A A B A A C C A A A C C A A

6 / 25

slide-20
SLIDE 20

Rate equations (continuous semantics)

  • A system of ordinary differential equations (ODEs).
  • State space is a vector of concentrations/densities.
  • Derivatives are proportional to production/consumption of

molecules by rules (mass action). 2A + K ⇋ B + K kon, koff B ⇀ ∅ kdeg

7 / 25

slide-21
SLIDE 21

Rate equations (continuous semantics)

  • A system of ordinary differential equations (ODEs).
  • State space is a vector of concentrations/densities.
  • Derivatives are proportional to production/consumption of

molecules by rules (mass action). 2A + K ⇋ B + K kon, koff B ⇀ ∅ kdeg

d dt[A] = 2koff[B][K]

− 1 2kon[A]2[K]

d dt[B] = 1

2kon[A]2[K] − 2koff[B][K] − kdeg[B]

7 / 25

slide-22
SLIDE 22

Rate equations (continuous semantics)

  • A system of ordinary differential equations (ODEs).
  • State space is a vector of concentrations/densities.
  • Derivatives are proportional to production/consumption of

molecules by rules (mass action).

d dt[A] = 2koff[B][K]

− 1 2kon[A]2[K]

d dt[B] = 1

2kon[A]2[K] − 2koff[B][K] − kdeg[B]

  • The REs approximate the behavior of the CTMC semantics

in the limit of large molecule counts (abstraction).

  • Can solved by numerical integration (more efficient than

stochastic simulation for large systems).

7 / 25

slide-23
SLIDE 23

The challenge

Combinatorial Explosion

MAPK pathway, diagram by Kosigrim (Wikipedia), 2007. 8 / 25

slide-24
SLIDE 24

Biochemical reaction networks

SHC SOS GRB2 EGF EGFR

Y48 Y68 l r r a b d Y7 c

SHC SOS GRB2 EGF EGFR

Y48 Y68 l r r a b d Y7 p

Maps for the early EGF model, Figure 5, [Danos et al., 2010].

Biochemical reaction networks can suffer from high combinatorial complexity:

  • Molecules interact through domains.
  • A single chemical species may display multiple domains.
  • The number of species exhibits a combinatorial explosion

w.r.t. the number of domain interactions.

9 / 25

slide-25
SLIDE 25

Biochemical reaction networks

A + B ⇋ AB kA, k′

A

A + BC ⇋ ABC kA, k′

A

B + C ⇋ BC kC, k′

C

AB + C ⇋ ABC kC, k′

C

Biochemical reaction networks can suffer from high combinatorial complexity:

  • Molecules interact through domains.
  • A single chemical species may display multiple domains.
  • The number of species exhibits a combinatorial explosion

w.r.t. the number of domain interactions.

9 / 25

slide-26
SLIDE 26

Polymers

Worst case: polymerization reactions involve an infinite number

  • f species/reactions.

A + A ⇋ AA kA, k′

A

AA + A ⇋ AAA kA, k′

A

AAA + A ⇋ AAAA kA, k′

A

. . .

10 / 25

slide-27
SLIDE 27

Rule-Based Models (RBMs)

Rule-based modeling languages such as Kappa and BNGL1 have been introduced to deal with this combinatorial complexity.

  • Rules describe interaction on the domain level.
  • A single rule captures a (possibly infinite) set of reactions.

A B

A B

kA, k′

A

A B C

A B C

kA, k′

A

B C

B C

kC, k′

C

A B C

A B C

kC, k′

C p x y p x y p x y q p x y q x y q x y q p x y q p x y q

1See e.g. [Danos et al., 2007] and [Blinov et al., 2004] 11 / 25

slide-28
SLIDE 28

Rule-Based Models (RBMs)

Rule-based modeling languages such as Kappa and BNGL1 have been introduced to deal with this combinatorial complexity.

  • Rules describe interaction on the domain level.
  • A single rule captures a (possibly infinite) set of reactions.

A B

A B

kA, k′

A

A B C

A B C

kA, k′

A

B C

B C

kC, k′

C

A B C

A B C

kC, k′

C p x y p x y p x y q p x y q x y q x y q p x y q p x y q

1See e.g. [Danos et al., 2007] and [Blinov et al., 2004] 11 / 25

slide-29
SLIDE 29

Rule-Based Models (RBMs)

Rule-based modeling languages such as Kappa and BNGL1 have been introduced to deal with this combinatorial complexity.

  • Rules describe interaction on the domain level.
  • A single rule captures a (possibly infinite) set of reactions.

A B

A B

kA, k′

A

B C

B C

kC, k′

C p x p x y q y q

1See e.g. [Danos et al., 2007] and [Blinov et al., 2004] 11 / 25

slide-30
SLIDE 30

Rule-Based Models (RBMs)

Rule-based modeling languages such as Kappa and BNGL1 have been introduced to deal with this combinatorial complexity.

  • Rules describe interaction on the domain level.
  • A single rule captures a (possibly infinite) set of reactions.

A B

A B

kA, k′

A

B C

B C

kC, k′

C p x p x y q y q

A(p), B(x) ⇋ A(p1), B(x1) kA, k′

A

B(y), C(q) ⇋ B(y2), C(q2) kC, k′

C

1See e.g. [Danos et al., 2007] and [Blinov et al., 2004] 11 / 25

slide-31
SLIDE 31

Polymers (cont.)

Polymerization reactions can be expressed compactly.

A A

A A

kA, k′

A x y x y

12 / 25

slide-32
SLIDE 32

Polymers (cont.)

Polymerization reactions can be expressed compactly.

A A

A A

kA, k′

A x y x y

A(x), A(y) ⇋ A(x1), A(y1) kA, k′

A

12 / 25

slide-33
SLIDE 33

RBMs as a stochastic process

B

z

A x A x

b

C

q

C

q

A x

y

A x

y p y 13 / 25

slide-34
SLIDE 34

RBMs as a stochastic process

  • 1. Pick a rule α at random (weighted by kα × #matches).

B

z

A x A

x y

B

z

A x

B

z

A x A x

b

C

q

C

q

A x

y

A x

y p y 13 / 25

slide-35
SLIDE 35

RBMs as a stochastic process

  • 1. Pick a rule α at random (weighted by kα × #matches).
  • 2. Pink a match in the current state G at random.

B

z

A x A

x y

B

z

A x

B

z

A x A x

b

C

q

C

q

A x

y

A x

y p y 13 / 25

slide-36
SLIDE 36

RBMs as a stochastic process

  • 1. Pick a rule α at random (weighted by kα × #matches).
  • 2. Pink a match in the current state G at random.
  • 3. Update G according to α to obtain a future state G′.

B

z

A x A

x y

B

z

A x

B

z

A x A

x y

B

z

A x A x

b

C

q

C

q

A x

y

A x

y p y

A x

b

C

q

C

q

A x

y

A x

y p y 13 / 25

slide-37
SLIDE 37

RBMs as a stochastic process

  • 1. Pick a rule α at random (weighted by kα × #matches).
  • 2. Pink a match in the current state G at random.
  • 3. Update G according to α to obtain a future state G′.
  • 4. Advance time (Poisson process).

B

z

A x A

x y

B

z

A x

B

z

A x A

x y

B

z

A x A x

b

C

q

C

q

A x

y

A x

y p y

A x

b

C

q

C

q

A x

y

A x

y p y 13 / 25

slide-38
SLIDE 38

Tooling – Kappa

K

a

S

p m i pa

https://kappalanguage.org/

14 / 25

slide-39
SLIDE 39

Rate equations for rule-based models

Stochastic simulation of RBMs is easy (using a variant of Gillespie/Monte Carlo method [Danos et al., 2007]).

15 / 25

slide-40
SLIDE 40

Rate equations for rule-based models

Stochastic simulation of RBMs is easy (using a variant of Gillespie/Monte Carlo method [Danos et al., 2007]). Finding rate equations for RBMs is more tricky. . .

15 / 25

slide-41
SLIDE 41

Rate equations for rule-based models

Stochastic simulation of RBMs is easy (using a variant of Gillespie/Monte Carlo method [Danos et al., 2007]). Finding rate equations for RBMs is more tricky. . . Problem: to find the rate equations of a rule-based model we need to refine it into its ground reactions, possibly at the cost of a combinatorial explosion.

15 / 25

slide-42
SLIDE 42

Rate equations for rule-based models

Stochastic simulation of RBMs is easy (using a variant of Gillespie/Monte Carlo method [Danos et al., 2007]). Finding rate equations for RBMs is more tricky. . . Problem: to find the rate equations of a rule-based model we need to refine it into its ground reactions, possibly at the cost of a combinatorial explosion.

d dt[A] = k′ A([AB] + [ABC])

− kA[A]([B] + [BC])

d dt[C] = k′ C([BC] + [ABC])

− kC[C]([B] + [AB])

d dt[B] = k′ A[AB] + k′ C[BC]

− [B](kA[A] + kC[C])

d dt[AB] = kA[A][B] + k′ C[BC]

− [AB](k′

A + kC[C]) d dt[BC] = kC[B][C] + k′ A[ABC]

− [BC](k′

C + kA[A]) d dt[ABC] = kA[A][BC] + kC[AB][C] − [ABC](k′ A + k′ C) 15 / 25

slide-43
SLIDE 43

Abstracting rate equations

If we allow ourselves to write ODEs over a suitable set of sub-species, we can reduce the system of rate equations:

d dt[A]

= k′

A([AB] + [ABC]) − kA[A]([B] + [BC])

. . . . . .

d dt[A] = d dt[B?] =

k′

A[AB?]

− kA[A][B?]

d dt[AB?] =

kA[A][B?] − k′

A[AB?]

[B?] = [B] + [BC] [AB?] = [AB] + [ABC] 6 ODEs 3 ODEs

16 / 25

slide-44
SLIDE 44

Abstracting rate equations

If we allow ourselves to write ODEs over a suitable set of sub-species, we can reduce the system of rate equations:

d dt[A]

= k′

A([AB] + [ABC]) − kA[A]([B] + [BC])

. . . . . .

d dt[A] = d dt[B?] =

k′

A[AB?]

− kA[A][B?]

d dt[AB?] =

kA[A][B?] − k′

A[AB?]

[B?] = [B] + [BC] [AB?] = [AB] + [ABC] 6 ODEs 3 ODEs

B? =

B

x

and AB? =

A B

p x

are called fragments

16 / 25

slide-45
SLIDE 45

Abstracting rate equations

If we allow ourselves to write ODEs over a suitable set of sub-species, we can reduce the system of rate equations:

d dt[A]

= k′

A([AB] + [ABC]) − kA[A]([B] + [BC])

. . . . . .

d dt[A] = d dt[B?] =

k′

A[AB?]

− kA[A][B?]

d dt[AB?] =

kA[A][B?] − k′

A[AB?]

[B?] = [B] + [BC] [AB?] = [AB] + [ABC] 6 ODEs 3 ODEs

B? =

B

x

and AB? =

A B

p x

are called fragments

16 / 25

slide-46
SLIDE 46

Automated model reduction

SHC SOS GRB2 EGF EGFR

Y48 Y68 l r r a b d Y7 c

SHC SOS GRB2 EGF EGFR

Y48 Y68 l r r a b d Y7 p

Maps for the early EGF model, Figure 5, [Danos et al., 2010].

Automated extraction of fragments using model analysis:

  • reduction of rate equations [Danos et al., 2010],
  • reduction of CTMCs [Feret et al., 2012].

17 / 25

slide-47
SLIDE 47

Automated model reduction

SHC SOS GRB2 EGF EGFR

Y48 Y68 l r r a b d Y7 c

SHC SOS GRB2 EGF EGFR

Y48 Y68 l r r a b d Y7 p

Maps for the early EGF model, Figure 5, [Danos et al., 2010].

Automated extraction of fragments using model analysis:

  • reduction of rate equations [Danos et al., 2010],
  • reduction of CTMCs [Feret et al., 2012].

Case study [Feret et al., 2012]:

  • Model of EGFR/Insulin receptor cross talk.
  • Reduction of 2768 molecular species to 609 fragments.

17 / 25

slide-48
SLIDE 48

Self assembly

What if we want to study the self-assembly of biochemical complexes, such as molecular machines or signaling complexes?

A A A A A A A A A A A A A A

18 / 25

slide-49
SLIDE 49

A simple Kappa model (agents)

Let’s try to write a simple Kappa model for assembling our example complex. We need

  • a single type of agent with four sites (representing

monomers), and

  • three types of links (representing the weak bonds among

monomers).

A A A A A A A A A A A A A A

A Contact graph

19 / 25

slide-50
SLIDE 50

A simple Kappa model (rules)

To assemble bigger and bigger parts of our drum out of a pool

  • f individual agents and smaller parts, we use
  • three atomic association rules, and
  • three atomic dissociation rules.

A A A A A A A A A A A A

A Contact graph

20 / 25

slide-51
SLIDE 51

The problem

  • Kappa has no notion of space or geometry.
  • Our model describes the self-assembly of other structures

too (differently sized rings, tubules, etc.)

A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A

21 / 25

slide-52
SLIDE 52

GeEK – Adding geometry

u ρ(u)

  • s(u, a)

v ρ(v)

  • s(v, b)
  • ω(u, a, v, b)

Let’s add three-dimensional geometry to our site graphs:

  • agents may have radii,
  • sites may have positions (w.r.t. their agents),
  • each link may have an orientations (constraining the
  • rientations of the bound agents).

22 / 25

slide-53
SLIDE 53

A better model

Our simple model extended with geometry:

A A A A A A A A A A A A A A A

23 / 25

slide-54
SLIDE 54

Case study – self assembly of simple rings

1000 2000 3000 4000 5000 6000 7000 8000 9000 0.01 0.1 1 10 100 1000 10000 100000 1e+06 1e+07 Number of Molecules Time monomers dimers rings

A simple model inspired by [Deeds et al., 2012].

  • Homomeric three-membered rings self-assemble from

monomers with uniform affinities between biding sites.

  • The concentration of rings experiences a plateau.

24 / 25

slide-55
SLIDE 55

Thank you!

Collaborators

  • Vincent Danos, ENS Paris & CNRS
  • Tobias Heindel, U.H. Manoa
  • Ricardo Honorato-Zimmer, UoE
  • Jean Krivine, Paris Diderot & CNRS
  • Jérôme Feret, ENS & INRIA Paris
  • Russ Harmer, ENS Lyon & CNRS
  • Walter Fontana, HMS
  • Pierre Boutillier, HMS

More resources Kappa https://kappalanguage.org/ GeEK https://github.com/sstucki/lms-kappa/

25 / 25

slide-56
SLIDE 56

Additional slides

Modeling more general networks

26 / 25

slide-57
SLIDE 57

Modeling more general networks

Example: a birth process tracking ancestry.

kbirth

− − − ⇀ . . . Genealogy

27 / 25

slide-58
SLIDE 58

Modeling more general networks

Example: a birth process tracking ancestry.

kbirth

− − − ⇀ . . . Genealogy

27 / 25

slide-59
SLIDE 59

Modeling more general networks

Example: a birth process tracking ancestry.

kbirth

− − − ⇀ . . . Genealogy

27 / 25

slide-60
SLIDE 60

Modeling more general networks

Example: a birth process tracking ancestry.

kbirth

− − − ⇀ . . . Genealogy

27 / 25

slide-61
SLIDE 61

Modeling more general networks

Example: a birth process tracking ancestry.

kbirth

− − − ⇀ . . . Genealogy

27 / 25

slide-62
SLIDE 62

Modeling more general networks

Example: a birth process tracking ancestry.

kbirth

− − − ⇀

  • Dynamics are given by graph rewrite rules.
  • Observables are tracked through graph patterns.

. . . Genealogy

27 / 25

slide-63
SLIDE 63

Modeling more general networks

Example: a birth process tracking ancestry.

kbirth

− − − ⇀

  • Dynamics are given by graph rewrite rules.
  • Observables are tracked through graph patterns.

Example: siblings . . . Genealogy

27 / 25

slide-64
SLIDE 64

Graph rewriting as a stochastic process

28 / 25

slide-65
SLIDE 65

Graph rewriting as a stochastic process

  • 1. Pick a rule α at random (weighted by kα × #matches).

α

28 / 25

slide-66
SLIDE 66

Graph rewriting as a stochastic process

  • 1. Pick a rule α at random (weighted by kα × #matches).
  • 2. Pink a match in the current state G at random.

α f

28 / 25

slide-67
SLIDE 67

Graph rewriting as a stochastic process

  • 1. Pick a rule α at random (weighted by kα × #matches).
  • 2. Pink a match in the current state G at random.
  • 3. Update G according to α to obtain a future state G′.

α f f ′

28 / 25

slide-68
SLIDE 68

Graph rewriting as a stochastic process

  • 1. Pick a rule α at random (weighted by kα × #matches).
  • 2. Pink a match in the current state G at random.
  • 3. Update G according to α to obtain a future state G′.
  • 4. Advance time (Poisson process).

α f f ′

28 / 25

slide-69
SLIDE 69

Stochastic graph rewriting

  • State space is a graph-like structure.
  • Transitions induced by graph rewrite rules.
  • Rates are proportional to number of LHS matches (still

mass action). Stochastic simulation using variants of Gillespie/Monte Carlo is still possible but potentially inefficient (sub-graph isomorphism).

29 / 25

slide-70
SLIDE 70

Rate equations for graph-like systems

Problems:

  • No more contact map!
  • What is a species, a ground refinement?
  • Does it even make sense to talk about densities?

The notion of a fragment still makes sense if we switch to a more algebraic construction [Danos et al., 2015]. Bonus: the more general approach allows us to also derive ODEs for higher-order moments (variance, skew, etc.)!

30 / 25

slide-71
SLIDE 71

Example: two-legged DNA walker

How fast are two-legged walkers moving along a DNA strand? [Stukalin et al., 2005]

G1

kF,E kB,C

G2

kF,C kB,E

G3

31 / 25

slide-72
SLIDE 72

Example: two-legged DNA walker

How fast are two-legged walkers moving along a DNA strand? [Stukalin et al., 2005]

G1

kF,E kB,C

G2

kF,C kB,E

G3

The combined mean velocity is given by V = 1

2(kF,E Ep([G1]) + kF,C Ep([G2])

−kB,E Ep([G3]) − kB,C Ep([G2]))

31 / 25

slide-73
SLIDE 73

Two-legged DNA walker (cont.)

The initial system of ODEs

d dt = kF,E −kB,C −kF,C +kB,E d dt = −kF,E +kB,C +kF,C − . . . d dt = kF,E −kB,C −kF,C + . . . d dt = −kF,E +kB,C +kF,C − . . . d dt = . . .

The system appears to be infinite, we need to truncate or simplify.

32 / 25

slide-74
SLIDE 74

Two-legged DNA walker (cont.)

Approximation: assume infinite/circular DNA strands. [G1] = = = = [G3]

33 / 25

slide-75
SLIDE 75

Two-legged DNA walker (cont.)

Approximation: assume infinite/circular DNA strands. [G1] = = = = [G3] The infinite expansion reduces to a finite system of ODEs: d dt = kF,E −kB,C −kF,C +kB,E d dt = −kF,E +kB,C +kF,C −kB,E

33 / 25

slide-76
SLIDE 76

Example: preferential attachment

Two rules: birth and preferential attachment.2

k0

− − ⇀

k1

− − ⇀ Example observables: cells, parent-child relations, siblings. N = E = S =

2Example from [Danos et al., 2015] 34 / 25

slide-77
SLIDE 77

Preferential attachment (cont.)

Mean evolution of the observables.

d dt E(S) = 2(k0 + k1) E(E) + 2k1 E(S) d dt E(N) = k0 E(N) + k1 E(E) d dt E(E) = k0 E(N) + k1 E(E)

N = E = S =

35 / 25

slide-78
SLIDE 78

Preferential attachment (cont.)

A more interesting class of observables: degree-limited subgraphs.

  • Nk: count single nodes with exactly k neighbors (not

matched).

  • [Sk]: counts “stars”, i.e. a hub node surrounded by k

neighbors (matched).

36 / 25

slide-79
SLIDE 79

Preferential attachment (cont.)

A more interesting class of observables: degree-limited subgraphs.

  • Nk: count single nodes with exactly k neighbors (not

matched).

  • [Sk]: counts “stars”, i.e. a hub node surrounded by k

neighbors (matched). S2 = S3 = [Sk] = k!Nk

36 / 25

slide-80
SLIDE 80

Preferential attachment (cont.)

A more interesting class of observables: degree-limited subgraphs.

  • Nk: count single nodes with exactly k neighbors (not

matched).

  • [Sk]: counts “stars”, i.e. a hub node surrounded by k

neighbors (matched).

d dt E(Ni) = (k0 + k1(i − 1)) E(Ni−1) − (k0 + k1i) E(Ni)

for i ≥ 1

d dt E(N0) = k0 E(N) + k1 E(E) − k0 E(N0)

36 / 25

slide-81
SLIDE 81

Fraction of edges and indegree-3 vertices

2 4 6 8 0.2 0.4 0.6 0.8 1 E(S3)/E(N) E(E)/E(N)

k0 = 0.2, k1 = 0.6

37 / 25

slide-82
SLIDE 82

Higher-order moments

Vp(Ni) = Ep

  • (Ni − Ep(Ni))2

= Ep

  • (Ni)2

− Ep(Ni)2.

  • 11 fragments to express [S3]2,
  • a total of 2097 equations to track E([S3]3),
  • approx. half a minute to generate the equations,
  • approx. 33 minutes to solve them using GNU/Octave.3

Tools needed. . .

http://github.com/sstucki/pa-ode-gen/ generator for PA http://github.com/rhz/graph-rewriting/ generic tool http://rhz.github.io/fragger/ Java Script demo

3On a Intel Core i7 CPU. 38 / 25

slide-83
SLIDE 83

Blinov, M. L., Faeder, J. R., Goldstein, B., and Hlavacek,

  • W. S. (2004).

Bionetgen: software for rule-based modeling of signal transduction based on the interactions of molecular domains. Bioinformatics, 20(17):3289–3291. Danos, V., Feret, J., Fontana, W., Harmer, R., and Krivine,

  • J. (2010).

Abstracting the differential semantics of rule-based models: Exact and automated model reduction. In LICS, pages 362–381. IEEE Computer Society. Danos, V., Feret, J., Fontana, W., and Krivine, J. (2007). Scalable simulation of cellular signaling networks, invited paper. In Shao, Z., editor, Proceedings of the Fifth Asian Symposium on Programming Systems, APLAS’2007, Singapore, volume 4807 of Lecture Notes in Computer

25 / 25

slide-84
SLIDE 84

Science, pages 139–157, Singapore. Springer, Berlin, Germany. Danos, V., Heindel, T., Honorato-Zimmer, R., and Stucki, S. (2015). Moment semantics for reversible rule-based systems. In Krivine, J. and Stefani, J.-B., editors, Reversible Computation – 7th International Conference, RC 2015. Proceedings, volume 9138 of Lecture Notes in Computer Science, pages 3–26. Springer International Publishing. Deeds, E. J., Bachman, J. A., and Fontana, W. (2012). Optimizing ring assembly reveals the strength of weak interactions. Proceedings of the National Academy of Sciences. Feret, J., Henzinger, T., Koeppl, H., and Petrov, T. (2012). Lumpability abstractions of rule-based systems. Theoretical Computer Science, 431(0):137–164.

25 / 25

slide-85
SLIDE 85

Modelling and Analysis of Biological Systems Based on papers presented at the Workshop on Membrane Computing and Bio-logically Inspired Process Calculi (MeCBIC) held in 2008 (Iasi), 2009 (Bologna) and 2010 (Jena). Stukalin, E. B., Phillips III, H., and Kolomeisky, A. B. (2005). Coupling of two motor proteins: a new motor can move faster. Physical Review Letters, 94(23):238101.

25 / 25

slide-86
SLIDE 86

Except where otherwise noted, this work is licensed under

http://creativecommons.org/licenses/by/3.0/

25 / 25