Skip to content

Commit 4de3a1f

Browse files
not in the jumpproblemnetwork
1 parent 05483eb commit 4de3a1f

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

lib/JumpProblemLibrary/src/JumpProblemLibrary.jl

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ prob_data = Dict("num_sims_for_mean" => Nsims, "expected_mean" => expected_avg)
4747
"""
4848
DNA negative feedback autoregulatory model. Protein acts as repressor.
4949
"""
50-
prob_jump_dnarepressor = JumpProblemNetwork(dna_rs, rates, tf, u0, prob, prob_data,
51-
eval_module = @__MODULE__)
50+
prob_jump_dnarepressor = JumpProblemNetwork(dna_rs, rates, tf, u0, prob, prob_data)
5251

5352
bd_rs = @reaction_network begin
5453
k1, 0 --> A
@@ -64,8 +63,7 @@ prob_data = Dict("num_sims_for_mean" => Nsims, "expected_mean_at_t" => expected_
6463
"""
6564
Simple birth-death process with constant production and degradation.
6665
"""
67-
prob_jump_constproduct = JumpProblemNetwork(bd_rs, rates, tf, u0, prob, prob_data,
68-
eval_module = @__MODULE__)
66+
prob_jump_constproduct = JumpProblemNetwork(bd_rs, rates, tf, u0, prob, prob_data)
6967

7068
nonlin_rs = @reaction_network begin
7169
k1, 2A --> B
@@ -84,8 +82,7 @@ prob_data = Dict("num_sims_for_mean" => Nsims, "expected_mean" => expected_avg)
8482
"""
8583
Example with a mix of nonlinear reactions, including third order
8684
"""
87-
prob_jump_nonlinrxs = JumpProblemNetwork(nonlin_rs, rates, tf, u0, prob, prob_data,
88-
eval_module = @__MODULE__)
85+
prob_jump_nonlinrxs = JumpProblemNetwork(nonlin_rs, rates, tf, u0, prob, prob_data)
8986

9087
oscil_rs = @reaction_network begin
9188
0.01, (X, Y, Z) --> 0
@@ -105,8 +102,7 @@ prob = DiscreteProblem(oscil_rs, u0, (0.0, tf), eval_module = @__MODULE__)
105102
"""
106103
Oscillatory system, uses a mixture of jump types.
107104
"""
108-
prob_jump_osc_mixed_jumptypes = JumpProblemNetwork(oscil_rs, nothing, tf, u0, prob, nothing,
109-
eval_module = @__MODULE__)
105+
prob_jump_osc_mixed_jumptypes = JumpProblemNetwork(oscil_rs, nothing, tf, u0, prob, nothing)
110106

111107
specs_sym_to_name = Dict(:S1 => "R(a,l)",
112108
:S2 => "L(r)",
@@ -158,8 +154,7 @@ prob = DiscreteProblem(rs, u0, (0.0, tf), rates, eval_module = @__MODULE__)
158154
prob_jump_multistate = JumpProblemNetwork(rs, rates, tf, u0, prob,
159155
Dict("specs_to_sym_name" => specs_sym_to_name,
160156
"rates_sym_to_idx" => rates_sym_to_idx,
161-
"params" => params),
162-
eval_module = @__MODULE__)
157+
"params" => params))
163158

164159
# generate the network
165160
N = 10 # number of genes
@@ -217,8 +212,7 @@ prob = DiscreteProblem(rs, u0, (0.0, tf), eval_module = @__MODULE__)
217212
"The sorting direct method for stochastic simulation of biochemical systems with varying reaction execution behavior"
218213
Comp. Bio. and Chem., 30, pg. 39-49 (2006).
219214
"""
220-
prob_jump_twentygenes = JumpProblemNetwork(rs, nothing, tf, u0, prob, nothing,
221-
eval_module = @__MODULE__)
215+
prob_jump_twentygenes = JumpProblemNetwork(rs, nothing, tf, u0, prob, nothing)
222216

223217
rn = @reaction_network begin
224218
c1, G --> G + M
@@ -242,8 +236,7 @@ prob = DiscreteProblem(rn, u0, (0.0, tf), rnpar, eval_module = @__MODULE__)
242236
Springer (2017).
243237
"""
244238
prob_jump_dnadimer_repressor = JumpProblemNetwork(rn, rnpar, tf, u0, prob,
245-
Dict("specs_names" => varlabels),
246-
eval_module = @__MODULE__)
239+
Dict("specs_names" => varlabels))
247240

248241
# diffusion model
249242
function getDiffNetwork(N)
@@ -271,7 +264,6 @@ tf = 10.0
271264
network given the number of lattice sites.
272265
u0 is a similar function that returns the initial condition vector.
273266
"""
274-
prob_jump_diffnetwork = JumpProblemNetwork(getDiffNetwork, params, tf, getDiffu0, nothing,
275-
nothing, eval_module = @__MODULE__)
267+
prob_jump_diffnetwork = JumpProblemNetwork(getDiffNetwork, params, tf, getDiffu0, nothing)
276268

277269
end # module

0 commit comments

Comments
 (0)