Skip to content

Commit

Permalink
update version and format
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsas committed Jul 22, 2024
1 parent 8faa944 commit d2aabb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/JumpProblemLibrary/Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "JumpProblemLibrary"
uuid = "faf0f6d7-8cee-47cb-b27c-1eb80cef534e"
version = "0.2"
version = "1.0.0"

[deps]
Catalyst = "479239e8-5488-4da2-87a7-35f2df7eef83"
Expand Down
18 changes: 9 additions & 9 deletions lib/JumpProblemLibrary/src/JumpProblemLibrary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ dna_rs = @reaction_network begin
k6, DNAR --> DNA + P
end
rates = [:k1 => 0.5,
:k2 => (20 * log(2.0) / 120.0),
:k3 => (log(2.0) / 120.0),
:k4 => (log(2.0) / 600.0),
:k5 => 0.025,
:k6 => 1.0]
:k2 => (20 * log(2.0) / 120.0),
:k3 => (log(2.0) / 120.0),
:k4 => (log(2.0) / 600.0),
:k5 => 0.025,
:k6 => 1.0]
tf = 1000.0
u0 = [:DNA => 1, :mRNA => 0, :P => 0, :DNAR => 0]
prob = DiscreteProblem(dna_rs, u0, (0.0, tf), rates, eval_module = @__MODULE__)
Expand Down Expand Up @@ -103,7 +103,7 @@ oscil_rs = @reaction_network begin
0.05, SP2 --> 0
end
u0 = [:X => 200.0, :Y => 60.0, :Z => 120.0, :R => 100.0, :S => 50.0, :SP => 50.0,
:SP2 => 50.0] # Hill equations force use of floats!
:SP2 => 50.0] # Hill equations force use of floats!
tf = 4000.0
prob = DiscreteProblem(oscil_rs, u0, (0.0, tf), eval_module = @__MODULE__)
"""
Expand All @@ -121,7 +121,7 @@ specs_sym_to_name = Dict(:S1 => "R(a,l)",
:S8 => "A(Y~P,r!1).R(a!1,l)",
:S9 => "A(Y~P,r)")
rsi = Dict(:R0 => 1, :L0 => 2, :A0 => 3, :kon => 4, :koff => 5,
:kAon => 6, :kAoff => 7, :kAp => 8, :kAdp => 9)
:kAon => 6, :kAoff => 7, :kAp => 8, :kAdp => 9)
params = (5360, 1160, 5360, 0.01, 0.1, 0.01, 0.1, 0.01, 0.1)
rs = @reaction_network begin
kon, S1 + S2 --> S4
Expand All @@ -146,7 +146,7 @@ end
rates = [:kon, :kAon, :koff, :kAoff, :kAp, :kAdp] .=>
params[[rsi[:kon], rsi[:kAon], rsi[:koff], rsi[:kAoff], rsi[:kAp], rsi[:kAdp]]]
u0 = [:S1 => params[1], :S2 => params[2], :S3 => params[3], :S4 => 0, :S5 => 0,
:S6 => 0, :S7 => 0, :S8 => 0, :S9 => 0]
:S6 => 0, :S7 => 0, :S8 => 0, :S9 => 0]
tf = 100.0
prob = DiscreteProblem(rs, u0, (0.0, tf), rates, eval_module = @__MODULE__)
"""
Expand Down Expand Up @@ -220,7 +220,7 @@ rn = @reaction_network begin
c8, P2G --> P2 + G
end
rnpar = [:c1 => 0.09, :c2 => 0.05, :c3 => 0.001, :c4 => 0.0009, :c5 => 0.00001,
:c6 => 0.0005, :c7 => 0.005, :c8 => 0.9]
:c6 => 0.0005, :c7 => 0.005, :c8 => 0.9]
varlabels = ["G", "M", "P", "P2", "P2G"]
u0 = [:G => 1000, :M => 0, :P => 0, :P2 => 0, :P2G => 0]
tf = 4000.0
Expand Down

0 comments on commit d2aabb7

Please sign in to comment.