@@ -22,7 +22,7 @@ struct JumpProblemNetwork
22
22
prob_data # additional problem data, stored as a Dict
23
23
end
24
24
25
- dna_rs = @reaction_network ptype begin
25
+ dna_rs = @reaction_network begin
26
26
k1, DNA --> mRNA + DNA
27
27
k2, mRNA --> mRNA + P
28
28
k3, mRNA --> 0
@@ -42,7 +42,7 @@ prob_data = Dict("num_sims_for_mean" => Nsims, "expected_mean" => expected_avg)
42
42
"""
43
43
prob_jump_dnarepressor = JumpProblemNetwork (dna_rs, rates, tf, u0, prob, prob_data)
44
44
45
- bd_rs = @reaction_network pdtype begin
45
+ bd_rs = @reaction_network begin
46
46
k1, 0 --> A
47
47
k2, A --> 0
48
48
end k1 k2
@@ -58,7 +58,7 @@ prob_data = Dict("num_sims_for_mean" => Nsims, "expected_mean_at_t" => expected_
58
58
"""
59
59
prob_jump_constproduct = JumpProblemNetwork (bd_rs, rates, tf, u0, prob, prob_data)
60
60
61
- nonlin_rs = @reaction_network dtype begin
61
+ nonlin_rs = @reaction_network begin
62
62
k1, 2 A --> B
63
63
k2, B --> 2 A
64
64
k3, A + B --> C
@@ -78,7 +78,7 @@ prob_data = Dict("num_sims_for_mean" => Nsims, "expected_mean" => expected_avg)
78
78
prob_jump_nonlinrxs = JumpProblemNetwork (nonlin_rs, rates, tf, u0, prob, prob_data)
79
79
80
80
81
- oscil_rs = @reaction_network rnoscType begin
81
+ oscil_rs = @reaction_network begin
82
82
0.01 , (X,Y,Z) --> 0
83
83
hill (X,3. ,100. ,- 4 ), 0 --> Y
84
84
hill (Y,3. ,100. ,- 4 ), 0 --> Z
@@ -113,7 +113,7 @@ rates_sym_to_idx = Dict(
113
113
:R0 => 1 , :L0 => 2 , :A0 => 3 , :kon => 4 , :koff => 5 ,
114
114
:kAon => 6 , :kAoff => 7 , :kAp => 8 , :kAdp => 9 )
115
115
params = [5360 , 1160 , 5360 , 0.01 , 0.1 , 0.01 , 0.1 , 0.01 , 0.1 ]
116
- rs = @reaction_network msType begin
116
+ rs = @reaction_network begin
117
117
kon, S1 + S2 --> S4
118
118
kAon, S1 + S3 --> S5
119
119
kon, S2 + S5 --> S6
@@ -154,7 +154,7 @@ prob_jump_multistate = JumpProblemNetwork(rs, rates, tf, u0, prob,
154
154
# generate the network
155
155
N = 10 # number of genes
156
156
function construct_genenetwork (N)
157
- genenetwork = " @reaction_network twentgtype begin\n "
157
+ genenetwork = " @reaction_network begin\n "
158
158
for i in 1 : N
159
159
genenetwork *= " \t 10.0, G$(2 * i- 1 ) --> G$(2 * i- 1 ) + M$(2 * i- 1 ) \n "
160
160
genenetwork *= " \t 10.0, M$(2 * i- 1 ) --> M$(2 * i- 1 ) + P$(2 * i- 1 ) \n "
@@ -187,7 +187,7 @@ prob = DiscreteProblem(u0, (0.0, tf))
187
187
prob_jump_twentygenes = JumpProblemNetwork (rs, nothing , tf, u0, prob, nothing )
188
188
189
189
190
- rn = @reaction_network gnrdtype begin
190
+ rn = @reaction_network begin
191
191
c1, G --> G + M
192
192
c2, M --> M + P
193
193
c3, M --> 0
@@ -214,7 +214,7 @@ prob_jump_dnadimer_repressor = JumpProblemNetwork(rn, rnpar, tf, u0, prob,
214
214
215
215
# diffusion model
216
216
function getDiffNetwork (N)
217
- diffnetwork = " @reaction_network dpldifftype begin\n "
217
+ diffnetwork = " @reaction_network begin\n "
218
218
for i in 1 : (N- 1 )
219
219
diffnetwork *= " \t K, X$(i) --> X$(i+ 1 ) \n "
220
220
diffnetwork *= " \t K, X$(i+ 1 ) --> X$(i) \n "
0 commit comments