Skip to content

Commit 0a18615

Browse files
committed
Fixed typo in BioNetGen Comparison model
1 parent 1c04a48 commit 0a18615

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

docs/example_models/journal_models/BioNetGen_Comparison.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
R0, L0, A0, kon, koff, kAon, kAoff, kAp, kAdp = ModelParameters(100, 500, 100, 0.01,
44
0.1, 0.01, 0.1, 0.01, 0.1)
55

6-
r_link = BaseSpecies()
6+
r_link, C = BaseSpecies()
77
r_link.r_0, r_link.r_1
88
R, L, A = New(r_link)
99

1010
R.r_0 + L.r_0 >> R.r_1 + L.r_1 [kon, koff]
1111

1212
R.a_0 + A.r_0 >> R.a_1 + A.r_1 [kAon, kAoff]
1313

14-
(R.a_1+ L + A.n_p).r_1 >> (R.a_1 + L + A.y_p).r_1 [lambda R: kAp*R**3]
14+
C.assing(A.r_1.n_p - R.a_1.r_0)
15+
C + A.n_p.r_1 >> C + A.y_p.r_1 [lambda c: kAp*c]
1516

1617
A.y_p >> A.n_p [kAdp]
1718

1819
R(R0), L(L0), A(A0)
19-
S = Simulation(R, L, A)
20+
S = Simulation(R | L | A | C)
2021
print(S.compile())
2122

2223

for_local_use.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
if __name__ == '__main__':
55

6-
pass
6+
Spe_Dict = {'E_1':None, 'Eb_1':None, 'D_2': None}
77

8+
L = BaseSpecies(list(Spe_Dict.keys()))
9+
10+
for spe in L:
11+
Spe_Dict[spe.get_name()] = spe
12+
13+
print(Spe_Dict)
814

0 commit comments

Comments
 (0)