using ModelingToolkit
using OrdinaryDiffEq, SteadyStateDiffEq, DiffEqCallbacks
using Plots
using CSV
using DataFrames
using Dates
using CaMKIIModel
using CaMKIIModel: second, μM
Plots.default(lw=1.5)Effects of isoproterenol
Setup model
sys = build_neonatal_ecc_sys(simplify=true, reduce_iso=true, reduce_camk=true)
tend = 205second
prob = ODEProblem(sys, [], tend)
stimstart = 30second
stimend = 120second
alg = KenCarp47()KenCarp47(; linsolve = nothing, nlsolve = OrdinaryDiffEqNonlinearSolve.NLNewton{Rational{Int64}, Rational{Int64}, Rational{Int64}, Nothing}(1//100, 10, 1//5, 1//5, false, true, nothing), precs = DEFAULT_PRECS, smooth_est = true, extrapolant = linear, controller = PI, autodiff = ADTypes.AutoForwardDiff(),)
Without isoproterenol
@unpack Istim = sys
callback = build_stim_callbacks(Istim, stimend; period=1second, starttime=stimstart)
@time sol = solve(prob, alg; callback) 10.291383 seconds (23.47 M allocations: 1.231 GiB, 4.14% gc time, 91.80% compilation time)
retcode: Success
Interpolation: 3rd order Hermite
t: 4019-element Vector{Float64}:
0.0
0.019333123284849377
0.09098129546758026
0.20735582943983927
0.4561191027686269
1.047256292840616
2.0342667657223767
3.4517766411484665
6.733792423912831
12.45011708102324
⋮
153105.87173409184
157632.21058110037
163094.59147683196
168819.53333337096
175121.5573262318
182484.55452456992
189877.09234962234
197904.13271346927
205000.0
u: 4019-element Vector{Vector{Float64}}:
[150952.75035000002, 13838.37602, -68.79268, 0.12113, 0.12113, 0.12113, 0.12113, 0.12113, 0.12113, 0.12113 … 0.26081, 0.00977, 0.00188, 0.09243, 0.22156, 0.966, 0.00702, 830.0, 830.0, 0.0026]
[150952.7504077194, 13838.375711519551, -68.79732946186226, 0.1211319185255175, 0.1211301421535992, 0.12113000811850358, 0.12113000037367234, 0.12113000001389383, 0.12113000000038378, 0.12113000000000405 … 0.2608055799112056, 0.009769882842069916, 0.001879826176081169, 0.09242766669618695, 0.2215639938807744, 0.9660018276402699, 0.007020208561323646, 829.9999654017583, 829.9994975880693, 0.0025985659590295374]
[150952.75062244057, 13838.374513299192, -68.81607005265552, 0.12115248970210647, 0.12113624253259858, 0.12113143375871602, 0.12113027926811751, 0.12113004704056851, 0.12113000693481112, 0.12113000089551408 … 0.26078941009382306, 0.009769459049732313, 0.0018789042446514422, 0.09241901973901424, 0.2215787945110049, 0.9660085993318799, 0.00702008986027517, 829.9998348635061, 829.9976422525165, 0.002593310524681686]
[150952.7509740238, 13838.372555328333, -68.84681913285226, 0.12118951551963696, 0.12115723910142134, 0.12114109135582982, 0.12113403405679991, 0.12113131833063846, 0.12113038966346883, 0.12113010483012127 … 0.2607638707001999, 0.009768805322556195, 0.0018766436937193197, 0.09240497563401104, 0.22160283236040595, 0.9660195931792828, 0.007017234889558555, 829.9996133960318, 829.9946506157202, 0.0025849478335103772]
[150952.7517373371, 13838.368384399068, -68.91207316777846, 0.12125418995384042, 0.12120713813483534, 0.12117519662647318, 0.12115494411090462, 0.12114295934422188, 0.12113633873395535, 0.12113292110288301 … 0.2607122383588733, 0.00976754294689657, 0.001869919626294057, 0.0923749578279845, 0.2216542075240971, 0.9660430731013478, 0.007003014305234393, 829.9990964774663, 829.9883445519497, 0.0025677078010499796]
[150952.75361533565, 13838.358559292059, -69.06429960994139, 0.12136450208851986, 0.12130632552358439, 0.12125925929399749, 0.12122229800810431, 0.12119414515426226, 0.12117335985880448, 0.1211584926966588 … 0.26060507831375035, 0.009765228548607825, 0.0018505337694469416, 0.09230364339951613, 0.22177624785138977, 0.9660987611411453, 0.006946470397388756, 829.9976227528975, 829.9738229154025, 0.0025298083713907]
[150952.75694915713, 13838.34240329337, -69.31024285744344, 0.1214919651325425, 0.12142927821043346, 0.1213742637991964, 0.12132672249013038, 0.12128628091507475, 0.12125242557826563, 0.12122454121844704 … 0.26047114911179464, 0.009763403076884485, 0.0018178174419014655, 0.09218462776986637, 0.2219798989175973, 0.9661914345949096, 0.006833754172875444, 829.9944193668179, 829.9509077855928, 0.002474807978215895]
[150952.76215620188, 13838.319723120678, -69.64637448767434, 0.12162015426876964, 0.12155743299711909, 0.12149988983034504, 0.12144759471003595, 0.12140052118634267, 0.12135855488207911, 0.12132150441596078 … 0.2603648729749554, 0.009765046552800477, 0.0017738156907532213, 0.09201383579531924, 0.22227216398019892, 0.9663239343003682, 0.0066755120626567415, 829.9883533251192, 829.9205247545176, 0.0024106893964811306]
[150952.77598869594, 13838.2694938995, -70.35063788657429, 0.12180447948880603, 0.12174768443532381, 0.12169340184085989, 0.12164180995533579, 0.12159304920072045, 0.12154722283384199, 0.12150439833798565 … 0.26041507667541997, 0.009786689200123853, 0.00168558990949223, 0.09161908329520764, 0.22294828828976576, 0.9666286957812559, 0.006355039713677853, 829.9689941817725, 829.8589858006806, 0.002310655727734336]
[150952.80529264064, 13838.18882346682, -71.35304509818073, 0.1219637836440816, 0.12191937753328323, 0.1218757903829034, 0.12183318573340736, 0.12179171693004404, 0.12175152667167365, 0.12171274673876364 … 0.26104417804603025, 0.009873892913308327, 0.0015688568862426027, 0.09093422465365385, 0.22412560303273427, 0.9671554512230358, 0.005926150085676066, 829.923524981244, 829.7704141396295, 0.002228995040224513]
⋮
[151183.0300539171, 13610.02245300075, -70.43523764740401, 0.13696768055827266, 0.13696770541453013, 0.13696772581563565, 0.13696774168076362, 0.13696775292580518, 0.13696775946320075, 0.1369677612017623 … 0.0011149985785722724, 0.001567008773646594, 0.002425643258995569, 0.0015098981196588529, 0.9995947867979871, 0.999747869519957, 0.0062838568216599, 784.9060277549053, 784.5419852203329, 0.002043321971582329]
[151210.74059872315, 13582.339780235796, -70.38271170918713, 0.13666794672958826, 0.13666812477981458, 0.1366683007907213, 0.13666847475812002, 0.13666864667764547, 0.1366688165447466, 0.1366689843546765 … 0.0011241657888541264, 0.0015731425677960277, 0.0024351309820544935, 0.0015214215593408477, 0.9997003634476634, 0.9997449901069714, 0.006306341980738767, 784.9811615791584, 784.6213015086836, 0.002028026930861519]
[151243.43264664727, 13549.711373761182, -70.3219859467057, 0.13627807624639132, 0.1362783381279979, 0.13627859938141587, 0.13627886004614476, 0.13627912016327792, 0.13627937977558438, 0.13627963892759445 … 0.001134831105304384, 0.0015802626202110215, 0.0024461457166300993, 0.0015348071355959481, 0.9997327299543322, 0.9997416251520743, 0.006332436908734774, 784.7531725033041, 784.3992145147272, 0.002000143442006044]
[151276.8393290682, 13516.386453454716, -70.26035138969203, 0.13586230119922135, 0.13586259714206123, 0.1358628931327681, 0.1358631892306121, 0.13586348549725896, 0.1358637819968922, 0.13586407879634302 … 0.0011457342409966445, 0.0015875213654788487, 0.0024573758211653652, 0.001548486044159044, 0.9997378186335917, 0.999738167317006, 0.006359032048958848, 784.3454744214254, 783.998000972699, 0.001966745674511686]
[151312.6271282917, 13480.694858320687, -70.19422915806996, 0.1354107161235819, 0.13541102327608837, 0.1354113308240855, 0.1354116388358147, 0.13541194738227644, 0.13541225653737074, 0.13541256637804683 … 0.0011575028351373286, 0.0015953421204601115, 0.0024694801750335875, 0.0015632815944866, 0.9997359908155935, 0.9997344074408689, 0.006387687012331196, 783.8157839445033, 783.4754062616681, 0.0019289528623655306]
[151353.16930646097, 13440.26655453649, -70.11887053897365, 0.13489908124322728, 0.13489938814595692, 0.13489969564110296, 0.13490000380072223, 0.1349003126997848, 0.13490062241632292, 0.13490093303158748 … 0.0011711191463322991, 0.0016043018941565264, 0.0024833467627458096, 0.0015803060021756618, 0.999732009928731, 0.9997300569271541, 0.006420501128196731, 783.1593298430348, 782.8269736301651, 0.0018856069960036612]
[151392.54033053597, 13401.008513010966, -70.04507616188909, 0.13440549809439598, 0.13440579963690186, 0.13440610188368185, 0.13440640490795813, 0.13440670878591354, 0.13440701359684315, 0.1344073194233121 … 0.0011846226674978554, 0.001613122104436531, 0.0024969996267265597, 0.001597150427996013, 0.9997277178059533, 0.9997257276799157, 0.0064527963548380775, 782.4907188080006, 782.1660474217084, 0.0018438340587762746]
[151433.8288730567, 13359.839875306174, -69.96695205890379, 0.13389272520512183, 0.13389301915336443, 0.13389331388551423, 0.13389360947491416, 0.1338939059978717, 0.13389420353381015, 0.13389450216542906 … 0.0011990241172341995, 0.0016225192311729282, 0.0025115362546604737, 0.0016151722984751, 0.9997230494424985, 0.9997210698420855, 0.006487162421988418, 781.7678285200071, 781.4510692841034, 0.0018007046814365651]
[151469.10326626987, 13324.668736061543, -69.89959533692694, 0.1334590153984904, 0.1334593020302349, 0.13345958950247921, 0.1334598778882581, 0.13346016726355844, 0.1334604577074698, 0.1334607493023445 … 0.0012115249155832165, 0.0016306588682609277, 0.002524135827400632, 0.0016308708697029845, 0.9997189540444598, 0.9997169901786227, 0.006516937899942262, 781.1360850436544, 780.8259581147202, 0.0017645060464921139]
i = (sys.t / 1000, sys.vm)
plot(sol, idxs=i, tspan=(100second, 101second), title="Action potential", xlabel="Time (s)")
plot(sol, idxs=(sys.t / 1000, [sys.Cai_sub_SR, sys.Cai_sub_SL, sys.Cai_mean]), tspan=(100second, 101second), title="Calcium transient", xlabel="Time (s)", ylabel="Conc. (μM)", label=["Ca (SR)" "Ca (SL)" "Ca (avg)"])
plot(sol, idxs=(sys.t / 1000, sys.CaMKAct * 100), title="Active CaMKII", label=false, ylabel="Active fraction (%)", xlabel="Time (s)")
0.1uM isoproterenol
prob2 = remake(prob, p=[sys.ISO => 0.1μM])
sol2 = solve(prob2, alg; callback)retcode: Success
Interpolation: 3rd order Hermite
t: 4135-element Vector{Float64}:
0.0
0.0193322110715843
0.09097534627605619
0.20734339686524522
0.4561200538541311
1.0549952720719484
2.0687580593126724
3.5324261824253536
6.954473747659774
12.881140201769878
⋮
156343.54776739283
161577.99373485308
167076.44835040945
173545.3761460094
180014.30394160934
187606.5812407107
193771.36169472226
202258.5546944703
205000.0
u: 4135-element Vector{Vector{Float64}}:
[150952.75035000002, 13838.37602, -68.79268, 0.12113, 0.12113, 0.12113, 0.12113, 0.12113, 0.12113, 0.12113 … 0.26081, 0.00977, 0.00188, 0.09243, 0.22156, 0.966, 0.00702, 830.0, 830.0, 0.0026]
[150952.75040560117, 13838.37575462767, -68.79688468304944, 0.1211309809540452, 0.12113006189494423, 0.12113000299821446, 0.1211300001166239, 0.12113000000364073, 0.12113000000008267, 0.12113000000000056 … 0.2608055790255411, 0.009769882789165586, 0.0018798283012559313, 0.0924276668078433, 0.221563993694571, 0.9660018275573545, 0.007020212947405008, 830.0014907812235, 829.9994983969723, 0.002598561776347308]
[150952.75061240065, 13838.374716348011, -68.81397720473576, 0.12114238287990785, 0.12113303174274752, 0.12113060640007198, 0.12113010200803158, 0.12113001474369577, 0.12113000185234848, 0.12113000020174947 … 0.26078938725640693, 0.009769457815727975, 0.0018789474208576141, 0.0924190204915213, 0.22157879333123556, 0.9660085988422271, 0.007020182507782679, 830.0069923279007, 829.9976597572193, 0.0025932333906583892]
[150952.75095089723, 13838.373018773336, -68.84205163448622, 0.12116438512395096, 0.12114443083154028, 0.1211353044921302, 0.12113171992467786, 0.12113049616083325, 0.12113012844945044, 0.12113003007199945 … 0.26076374828883014, 0.009768798977675412, 0.0018768406238241547, 0.09240497731310347, 0.22160283004278358, 0.9660195923730465, 0.007017680221388922, 830.0158577065781, 829.9947407323419, 0.002584621446261353]
[150952.7516853767, 13838.369406865842, -68.90160259182096, 0.12120393253792842, 0.12117359583457635, 0.12115399268330548, 0.12114231020892302, 0.12113588865795849, 0.12113262872712134, 0.12113109689132587 … 0.26071163727178975, 0.009767513260722714, 0.0018706615190431772, 0.09237495857236798, 0.22165420888269807, 0.9660430748851897, 0.007004853088813847, 830.0345419613458, 829.9887756080547, 0.0025665030871097365]
[150952.7535137264, 13838.360815589964, -69.0421184107563, 0.12127164038451912, 0.12123369231137104, 0.12120363670655873, 0.1211806746843791, 0.1211637652150728, 0.12115176909538257, 0.12114357362996762 … 0.26060065813180305, 0.009765055027054551, 0.0018527422088444533, 0.09230271445722965, 0.22177785078777174, 0.9660994972023292, 0.006952675605532075, 830.07814410011, 829.9758982053276, 0.002524878616001687]
[150952.75679928518, 13838.346581408403, -69.27157622080777, 0.12134675555621605, 0.12130680044052823, 0.12127196546348167, 0.12124217405786951, 0.12121718646328612, 0.12119663497761277, 0.12118006281992981 … 0.26045565430474177, 0.009762833375314839, 0.0018222096890642776, 0.09218048699222062, 0.22198703092009986, 0.9661946906443825, 0.0068472036120339344, 830.1479502978362, 829.9585434198331, 0.002461099964775718]
[150952.76194966168, 13838.326681500257, -69.58534388478576, 0.12141446087873134, 0.12137666702212285, 0.12134186045923342, 0.12131020885887848, 0.12128178469153819, 0.12125657408666768, 0.12123448815456438 … 0.26032881924894974, 0.009763716676849107, 0.0017811002406865244, 0.09200417115231563, 0.22228882452599166, 0.9663315006590419, 0.00669900373399294, 830.2409658671871, 829.9422438990155, 0.0023827586833013678]
[150952.77573103318, 13838.282994292276, -70.2425024040955, 0.12148370617698095, 0.12145532836849135, 0.12142753330789131, 0.12140056903109958, 0.12137464276885107, 0.1213499207966514, 0.1213265289708668 … 0.2603166532077402, 0.009783000857592001, 0.0016985405358012696, 0.0915927469726206, 0.22299376432344578, 0.9666490840575152, 0.006398335505979063, 830.4298664467993, 829.9364424528658, 0.002249831541002491]
[150952.80458617522, 13838.215505646505, -71.1550700755306, 0.12146599978828701, 0.12145339981894875, 0.12143960641561419, 0.12142480441004629, 0.12140916126316044, 0.12139282572293218, 0.12137592664517353 … 0.2607890677215021, 0.009862701804147046, 0.0015916044910949678, 0.09088324181611294, 0.22421393887512647, 0.9671939916127574, 0.006003854581032515, 830.6928613527689, 829.9982399691283, 0.002123918294455039]
⋮
[150956.6187147592, 13826.314189776862, -70.54110277547377, 0.12651778225698412, 0.12651797196376646, 0.12651815629295968, 0.12651833517362307, 0.12651850853195237, 0.1265186762911339, 0.1265188383711891 … 0.0010967794809075475, 0.0015547183343237651, 0.0024066315107807144, 0.0014869831924248325, 0.9996909553239575, 0.9997535701805159, 0.006238780040877805, 922.971075373069, 921.4606991590817, 0.007238228951575744]
[150993.3250348188, 13789.661340753633, -70.47384314763443, 0.12603297147267323, 0.12603315749211752, 0.12603333833678584, 0.1260335139390861, 0.1260336842286991, 0.12603384913243948, 0.12603400857410785 … 0.0011082167393088522, 0.0015625100254287247, 0.002418693176625084, 0.0015014376432098348, 0.9997360968472492, 0.9997499718312494, 0.006267381163349558, 923.1323809169393, 921.6415965711435, 0.007143086075388378]
[151030.95198954563, 13752.08938708879, -70.40424484723755, 0.1255404661522541, 0.12554064827705233, 0.12554082542915063, 0.12554099754425377, 0.1255411645554723, 0.12554132639318946, 0.12554148298492185 … 0.0011202341467272728, 0.0015706131858370133, 0.0024312364688979424, 0.001516539547629021, 0.999744768640635, 0.9997461919294898, 0.006297113591478004, 923.2897084836691, 921.8187771390185, 0.00704675786760096]
[151074.03077395892, 13709.07379239066, -70.3237244461183, 0.12498223734955859, 0.1249824149500789, 0.12498258781596323, 0.12498275588682323, 0.12498291909983734, 0.12498307738962662, 0.12498323068812273 … 0.0011343095994690384, 0.0015800472776391747, 0.0024458303181922594, 0.0015341954465510688, 0.9997434153103265, 0.9997417491177489, 0.006331688104796494, 923.4597999739248, 922.0113036830816, 0.006937996984118315]
[151115.85948465823, 13667.306651234054, -70.24467520578284, 0.12444604318154842, 0.12444621639949686, 0.12444638510377543, 0.12444654923757184, 0.12444670874178305, 0.12444686355489831, 0.124447013612875 … 0.0011482354065336258, 0.0015893578618842773, 0.0024602408443038922, 0.0015517256493502826, 0.9997395313805453, 0.9997373118314591, 0.006365813483196116, 923.6146819742337, 922.1876724309261, 0.006833930884968582]
[151163.40866070002, 13619.827718569324, -70.15375730957557, 0.12384349404642822, 0.12384366205109126, 0.12384382579012292, 0.12384398521068285, 0.12384414025779981, 0.12384429087426266, 0.12384443700050499 … 0.0011644922679930215, 0.0016001339858296311, 0.0024769187511507066, 0.0015721281378393182, 0.9997344347951828, 0.9997321134613302, 0.006405289011420214, 923.7784770864921, 922.3755365431966, 0.006717471837774962]
[151200.82606813576, 13582.46575828045, -70.0813955648416, 0.12337470083653851, 0.12337486479310114, 0.12337502467231169, 0.12337518042431692, 0.12337533199725298, 0.12337547933714323, 0.1233756223877889 … 0.001177599345285002, 0.001608762385461543, 0.002490272527087365, 0.0015885561820287806, 0.9997302316254224, 0.9997279021130013, 0.006436881287716186, 923.8981206351701, 922.5138490527056, 0.006627221043422825]
[151250.65169011973, 13532.71417217486, -69.98390525508839, 0.12275782332068579, 0.12275798179961825, 0.12275813644931892, 0.12275828722382258, 0.12275843407530986, 0.12275857695401286, 0.12275871580811433 … 0.0011954951124043243, 0.0016204577080472665, 0.002508372823612225, 0.0016109545458471704, 0.9997244452962354, 0.9997221251109589, 0.006479679154486839, 924.0449298643186, 922.6851457937693, 0.006508950781421128]
[151266.33920149156, 13517.050030534614, -69.95293244206611, 0.1225653274313242, 0.1225654840868531, 0.1225656369887973, 0.12256578609240996, 0.12256593135113784, 0.1225660727165292, 0.12256621013813575 … 0.0012012351502659548, 0.0016241917933535663, 0.0025141525378536873, 0.00161813616769132, 0.9997225815274668, 0.999720262204486, 0.006493340266769187, 924.088116506726, 922.735955904178, 0.006472154406684705]
plot(sol2, idxs=(sys.t / 1000, sys.vm), tspan=(100second, 101second), title="Action potential", xlabel="Time (s)")
plot(sol2, idxs=(sys.t / 1000, [sys.Cai_sub_SR, sys.Cai_sub_SL, sys.Cai_mean]), tspan=(100second, 101second), title="Calcium transcient", xlabel="Time (s)", ylabel="Conc. (μM)", label=["Ca (SR)" "Ca (SL)" "Ca (avg)"])
plot(sol2, idxs=(sys.t / 1000, sys.CaMKAct * 100), title="Active CaMKII", label=false, ylabel="Active fraction (%)", xlabel="Time (s)")
Comparison
i = (sys.t / 1000, sys.Cai_mean)
tspan = (100second, 101second)
plot(sol, idxs=i, title="Calcium transcient", lab="ISO (-)"; tspan)
plot!(sol2, idxs=i, lab="ISO (0.1uM)", xlabel="Time (s)", ylabel="Concentration (μM)"; tspan)
savefig("iso-caT.pdf")"/home/runner/work/camkii-cardiomyocyte-model/camkii-cardiomyocyte-model/docs/iso-caT.pdf"
Maximal and minimal calcium concentrations in calcium transients.
ca_ctl = sol(tspan[1]:1:tspan[2], idxs=sys.Cai_mean)
println(extrema(ca_ctl))(0.23504352227636677, 0.5781129853775007)
ca_iso = sol2(tspan[1]:1:tspan[2], idxs=sys.Cai_mean)
println(extrema(ca_iso))(0.1903362696321693, 0.7110939356326587)
i = (sys.t / 1000, sys.CaMKAct * 100)
plot(sol, idxs=i, title="Active CaMKII", lab="ISO (-)")
plot!(sol2, idxs=i, lab="ISO (0.1uM)", ylabel="Active fraction (%)", xlabel="Time (s)")
savefig("iso-camkact.pdf")"/home/runner/work/camkii-cardiomyocyte-model/camkii-cardiomyocyte-model/docs/iso-camkact.pdf"
i = (sys.t / 1000, sys.vm)
tspan = (100second, 101second)
plot(sol, idxs=i, title="Action potential", lab="ISO (-)"; tspan)
plot!(sol2, idxs=i, lab="ISO (0.1uM)", xlabel="Time (ms)", ylabel="Voltage (mV)"; tspan)
Experimental data
chemicaldf = CSV.read(joinpath(@__DIR__, "data/CaMKAR-chemical.csv"), DataFrame)
ts = Dates.value.(chemicaldf[!, "Time"]) ./ 10^9
ctl = chemicaldf[!, "Ctrl Mean"]
ctl_error = chemicaldf[!, "Ctrl SD"] ./ sqrt.(chemicaldf[!, "Ctrl N"])42-element Vector{Float64}:
0.02305850621757014
0.023225557529411765
0.023536003837902393
0.022995786588235295
0.023056161133316953
0.02236794743822152
0.02448575734900888
0.02631837493460871
0.029628792824062226
0.0306227531696316
⋮
0.02665056333747046
0.02525893438851731
0.024749347823716496
0.024158682609370527
0.023572491294117648
0.0240760416039372
0.023230166
0.023759599761907887
0.02369791084482974
iso = chemicaldf[!, "isoproterenol 100nM Mean"]
iso_error = chemicaldf[!, "isoproterenol 100nM SD"] ./ sqrt.(chemicaldf[!, "isoproterenol 100nM N"])42-element Vector{Float64}:
0.01906411500114547
0.019397124616823788
0.019533446274478245
0.019307032321568045
0.0188119595
0.019208707594448062
0.020659484720981783
0.022823236115241556
0.02568418993766601
0.02954342161034184
⋮
0.022059148111952916
0.020698453917127702
0.020674867906488113
0.019922601239830914
0.019312468873824668
0.019367967435545023
0.018689615199686285
0.01921783399052236
0.01872515441384824
plot(ts, ctl, yerr=ctl_error, lab="Control", color=:blue, markerstrokecolor=:blue)
plot!(ts, iso, yerr=iso_error, lab="ISO 100nM", color=:red, markerstrokecolor=:red)
plot!(xlabel="Time (sec.)", ylabel="CaMKII activity (A.U.)")
savefig("iso-exp.pdf")"/home/runner/work/camkii-cardiomyocyte-model/camkii-cardiomyocyte-model/docs/iso-exp.pdf"
Runtime information
using InteractiveUtils
InteractiveUtils.versioninfo()Julia Version 1.12.4
Commit 01a2eadb047 (2026-01-06 16:56 UTC)
Build Info:
Official https://julialang.org release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 4 × AMD EPYC 7763 64-Core Processor
WORD_SIZE: 64
LLVM: libLLVM-18.1.7 (ORCJIT, znver3)
GC: Built with stock GC
Threads: 4 default, 1 interactive, 4 GC (on 4 virtual cores)
Environment:
JULIA_CPU_TARGET = generic;icelake-server,clone_all;znver3,clone_all
JULIA_CONDAPKG_OFFLINE = true
JULIA_CONDAPKG_BACKEND = Null
JULIA_CI = true
LD_LIBRARY_PATH = /opt/hostedtoolcache/Python/3.14.2/x64/lib
JULIA_NUM_THREADS = auto
using Pkg
Pkg.status()Project CaMKIIModel v0.7.0
Status `~/work/camkii-cardiomyocyte-model/camkii-cardiomyocyte-model/Project.toml`
[336ed68f] CSV v0.10.15
[a93c6f00] DataFrames v1.8.1
[459566f4] DiffEqCallbacks v4.12.0
[f6369f11] ForwardDiff v1.3.1
[682c06a0] JSON v1.4.0
[23fbe1c1] Latexify v0.16.10
[98b081ad] Literate v2.21.0
[2fda8390] LsqFit v0.15.1
⌅ [961ee093] ModelingToolkit v10.31.2
[77ba4419] NaNMath v1.1.3
[1dea7af3] OrdinaryDiffEq v6.106.0
[91a5bcdd] Plots v1.41.4
[2913bbd2] StatsBase v0.34.10
[9672c7b4] SteadyStateDiffEq v2.9.0
[ea8e919c] SHA v0.7.0
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated`
This notebook was generated using Literate.jl.