Skip to content

Commit 3c51785

Browse files
committed
Added subdirectories for each model and modified README.md.
1 parent 3df911f commit 3c51785

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

AB/AB.bngl

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
begin model
2+
begin parameters
3+
A0 100 # Initial number of A molecules
4+
B0 100 # Initial number of B molecules
5+
ka 0.01 # A-B association rate constant (1/molecule 1/s)
6+
kd 1 # A-B dissociation rate constant (1/s)
7+
end parameters
8+
begin molecule types
9+
A(b)
10+
B(a)
11+
end molecule types
12+
begin seed species
13+
A(b) A0
14+
B(a) B0
15+
end seed species
16+
begin observables
17+
Molecules A A(b)
18+
Molecules B B(a)
19+
Molecules C A(b!1).B(a!1)
20+
end observables
21+
begin reaction rules
22+
A(b) + B(a) <-> A(b!1).B(a!1) ka, kd
23+
end reaction rules
24+
end model
25+
26+
simulate({method=>"ode",t_end=>10,n_steps=>200})

ABC.bngl renamed to ABC/ABC.bngl

File renamed without changes.
File renamed without changes.

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ The files presented here are meant to provide a moderately paced but comprehensi
44

55
**Click on the link to see the BNGL code.**
66

7-
[`ABC.bngl`](ABC.bngl)
7+
[`ABC.bngl`](ABC/ABC.bngl)
88
: Simple binding model in BNGL using unstructured molecules to represent each species. Demonstrates basic syntax of `simulate` command.
99

10-
[`ABC_scan.bngl`](ABC_scan.bngl)
10+
[`ABC_scan.bngl`](ABC/ABC_scan.bngl)
1111
: Simple binding model modified to use`parameters` block, which enables `parameter_scan`. Also demonstrates use of `#` for comments and `\` for line continuation.
1212

13+
[`AB.bngl`](AB/AB.bngl)
14+
: Simple binding model re-factored to used structured molecules with binding sites and a binding rule that adds or deletes a bond.
1315

1416
![Flagman](images/Flagman.gif)

0 commit comments

Comments
 (0)