Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

using Model
using Model: second, μM
using CSV
using DataFrames
using DiffEqCallbacks
using DifferentialEquations
using ModelingToolkit
using OrdinaryDiffEqSDIRK
using Plots
using SteadyStateDiffEq
import Dates
Plots.default(lw=1.5)

Setup model

@time "Build system" sys = Model.DEFAULT_SYS
tend = 205second
@time "Build problem" prob = ODEProblem(sys, [], tend)
stimstart = 30second
stimend = 120second
alg = KenCarp4()
Build system: 0.000023 seconds (38 allocations: 1.766 KiB)
Build problem: 35.632040 seconds (56.51 M allocations: 2.769 GiB, 4.92% gc time, 99.41% compilation time: 11% of which was recompilation)
KenCarp4(; linsolve = nothing, nlsolve = OrdinaryDiffEqNonlinearSolve.NLNewton{Rational{Int64}, Rational{Int64}, Rational{Int64}, Nothing}(1//100, 10, 1//5, 1//5, false, true, nothing), smooth_est = true, extrapolant = linear, step_limiter! = trivial_limiter!, autodiff = ADTypes.AutoForwardDiff(), concrete_jac = nothing,)

Without isoproterenol

@unpack Istim = sys
callback = build_stim_callbacks(Istim, stimend; period=1second, starttime=stimstart)
@time sol = solve(prob, alg; callback)
  7.808646 seconds (15.47 M allocations: 710.800 MiB, 9.53% gc time, 80.08% compilation time)
retcode: Success Interpolation: 3rd order Hermite t: 5071-element Vector{Float64}: 0.0 0.01933312407287676 0.0714686572016017 0.15042606626184363 0.29780952882673073 0.6163053593874049 1.4062585982334244 3.0222276331880495 5.675944491235782 9.164284961703544 ⋮ 164742.3367775606 169301.21845906504 173860.1001405695 178622.59509658653 183574.34039534253 189355.59670978156 195136.8530242206 201089.99309534582 205000.0 u: 5071-element Vector{Vector{Float64}}: [830.0, 830.0, 0.0026, 0.07192, 0.07831, 0.26081, 0.00977, 0.00188, 0.09243, 0.22156 … 0.12113, 0.12113, 0.12113, 0.12113, 0.12113, 0.12113, 0.12113, 150952.75035000002, 13838.37602, -68.79268] [830.0000043933343, 829.9994976081211, 0.0025985658384846855, 0.07192100954831002, 0.07830845408016025, 0.2608055799062182, 0.009769882841807059, 0.0018798261856018312, 0.0924276666960987, 0.22156399388094708 … 0.12113000000725846, 0.12113000023831977, 0.12113000535224333, 0.12113009479265661, 0.12113131592492553, 0.1211482194751482, 0.1211428071040954, 150952.7504077194, 13838.375711520532, -68.79732895999906] [830.0000146951215, 829.9981467829102, 0.002594731751066325, 0.07192373844961128, 0.07830415942126352, 0.2607937800618119, 0.009769572821526384, 0.0018791966475968376, 0.09242137461508715, 0.22157476380956045 … 0.12113000942384326, 0.12113007085631387, 0.1211304571319946, 0.1211324859464914, 0.12114100992572423, 0.12118452899574711, 0.12116807893465706, 150952.75056383296, 13838.374841654333, -68.8109090888797] [830.0000253429494, 829.9961119556569, 0.00258900821601036, 0.07192788988327878, 0.0782972949642995, 0.2607762526812636, 0.009769119879119784, 0.001877849669516016, 0.09241184582001727, 0.2215910734978105 … 0.12113024735230837, 0.12113098629982247, 0.12113347616563097, 0.12114069501023768, 0.12115840340746027, 0.12122332705788166, 0.12119466587153714, 150952.7508015931, 13838.373511664764, -68.83181671410642] [830.0000277686581, 829.9923485051359, 0.0025785661469913987, 0.07193569937434481, 0.07828332641226446, 0.26074463495206246, 0.009768325601332494, 0.001874420598842133, 0.09239406027288659, 0.2216215143534001 … 0.12113256739578797, 0.12113634640131471, 0.12114440295695668, 0.12115995118002593, 0.12118707289071545, 0.12127571870462238, 0.12122987506483114, 150952.75124972305, 13838.371034144839, -68.8706779035328] [829.9999520540322, 829.9843663858536, 0.002556975544277927, 0.07195284405122515, 0.07824811689849222, 0.2606810841142626, 0.009766822707109268, 0.0018648851930490066, 0.09235563063786763, 0.22168728364499293 … 0.12114510906526453, 0.12115623806400347, 0.1211735024821866, 0.12119894001669583, 0.12123458853567226, 0.12135567689514552, 0.12128219034928309, 150952.7522373515, 13838.365706559145, -68.95379732126152] [829.9992893545698, 829.9654060054963, 0.002508497602812146, 0.0719969511170175, 0.07813263976001587, 0.26055015288367334, 0.00976427429124781, 0.0018384016864821647, 0.09226034560262092, 0.22185033592296943 … 0.12118801579674068, 0.12120978934907688, 0.12123755113524325, 0.1212721821082252, 0.12131447469763604, 0.12148693567406034, 0.12136507247035319, 150952.75479953512, 13838.352637400438, -69.15516768987649] [829.995993411829, 829.9298928045, 0.0024279306877514817, 0.07209420870922027, 0.07778488402814984, 0.2603874586792183, 0.009764032963441497, 0.0017866851570592069, 0.09206557293051008, 0.22218361761411778 … 0.12126676687780016, 0.1212968193014608, 0.12133165619188632, 0.12137164500729253, 0.12141711067533388, 0.12165457696405083, 0.12146832391797499, 150952.76052755016, 13838.326516369478, -69.54695762745155] [829.9859110129117, 829.879143196318, 0.002335729301749234, 0.0722743030252973, 0.0769536888174631, 0.260362307237814, 0.009777158052630719, 0.0017120281369277241, 0.09174620546881719, 0.22273041377282504 … 0.12136269300227118, 0.12139703404627286, 0.121435111598635, 0.121477108617984, 0.12152319438076077, 0.12181851689857807, 0.12157352195745237, 150952.7712723509, 13838.285323027136, -70.13510363081949] [829.9661697029796, 829.8225412196273, 0.0022636857690398467, 0.07254875469163409, 0.0755264701083602, 0.2606314338079951, 0.009817003734498562, 0.0016306138372420575, 0.0913274444415069, 0.2234488007244006 … 0.12145875829512698, 0.1214941711806869, 0.12153282202509523, 0.12157482380356349, 0.1216202908355456, 0.12194102659950723, 0.12166933855140577, 150952.78770208766, 13838.2341513483, -70.81105255530778] ⋮ [792.1624119115874, 791.7724240482947, 0.0021901200156764227, 0.2120047423489335, 0.00030774523162579624, 0.0011353008612651587, 0.0015805351028416775, 0.002446561219152722, 0.0015353552292668082, 0.9997361134096661 … 0.1364228022868697, 0.13642339274806778, 0.13642399540629638, 0.1364246109401671, 0.1364252400720741, 0.1364053413598927, 0.13642588357178292, 151240.5494208769, 13551.967878071413, -70.31970009162777] [791.5706317527874, 791.1875710871059, 0.0021528582890738726, 0.2107267739912895, 0.00031089109537963186, 0.0011438086225736646, 0.0015862110066150949, 0.0024553449598616606, 0.0015460404615817644, 0.999738558106215 … 0.13607186014154607, 0.13607244189970516, 0.13607303568752516, 0.13607364217370713, 0.13607426207009665, 0.13605466529681023, 0.13607489613522006, 151267.26251372215, 13525.34426420859, -70.27147598001014] [790.9941271049524, 790.6176783481759, 0.0021170124866557124, 0.20947486655550257, 0.0003140198433466279, 0.001152246333713192, 0.0015918209660109772, 0.0024640269420278665, 0.0015566322988858803, 0.9997374292442891 … 0.13572847131653346, 0.1357290342767823, 0.13572960882333873, 0.13573019560144042, 0.13573079529795593, 0.13571180271929217, 0.13573140864479719, 151293.43169010038, 13499.262478973647, -70.22397787237131] [790.414438904606, 790.0445605590107, 0.002081271141854989, 0.20819200135077418, 0.0003172739533531003, 0.0011609980092034582, 0.0015976179543622188, 0.002472998469568997, 0.0015676113897369383, 0.9997351124427106 … 0.13537924824333608, 0.1353797889833131, 0.13538034077953187, 0.13538090424940924, 0.13538148005019832, 0.13536319774972547, 0.13538206888225346, 151320.20106896886, 13472.581495169305, -70.17506921665326] [789.8368901366393, 789.4734989039843, 0.002045934516881373, 0.20688379072348886, 0.00032064275283669294, 0.0011700329088025804, 0.001603578817002554, 0.0024822236241507263, 0.0015789379218082813, 0.9997323538010147 … 0.13502683980920224, 0.13502735814497902, 0.13502788700926455, 0.13502842699167028, 0.1350289787198498, 0.13501141603399938, 0.13502954286261692, 151347.4307422577, 13445.440484839068, -70.12496028987066] [789.1928098735001, 788.8365844439473, 0.002006881649186481, 0.20538852208283928, 0.00032455670738145115, 0.0011804982454880436, 0.001610453200609768, 0.002492862518933489, 0.0015920474902153272, 0.9997290205394038 … 0.1346290135092136, 0.13462950806057142, 0.13463001259376087, 0.13463052766932726, 0.13463105388398286, 0.13461426240710864, 0.134631591873571, 151378.46187274624, 13414.508887512036, -70.06740039630486] [788.5778078111124, 788.2283490227638, 0.0019699994733617422, 0.2039271817569036, 0.00032844856167276923, 0.0011908713425627273, 0.001617235274869156, 0.0025033584978238453, 0.0016050306341047682, 0.9997256719290667 … 0.13424535688608208, 0.1342458304068511, 0.13424631344138124, 0.13424680652500998, 0.13424731022761513, 0.13423120896823562, 0.13424782515644587, 151408.69441764394, 13384.371923666613, -70.01085102197581] [787.9712261432263, 787.6283572542015, 0.001934079202048638, 0.2024572777939682, 0.0003324313834955821, 0.0012014532148224867, 0.0016241216514637185, 0.0025140158274476613, 0.001618263948960182, 0.9997222356376478 … 0.13386446660473975, 0.13386492101007397, 0.13386538451818478, 0.13386585764195855, 0.13386634092737337, 0.13385087489629968, 0.13386683495621152, 151439.0132648695, 13354.147738794918, -69.95367155962873] [787.5860108871439, 787.2472784243223, 0.0019115310549257815, 0.2015108526302152, 0.0003350326785965431, 0.0012083464123315256, 0.0016285902951905585, 0.0025209314496608985, 0.001626878333047969, 0.9997199891845507 … 0.13362181027691844, 0.13362225330701835, 0.1336227052024094, 0.13362316646284353, 0.1336236376203171, 0.13360855345773046, 0.13362411924171383, 151458.4883330062, 13334.73292957433, -69.91669512629275]
i = (sys.t / 1000, sys.vm)
plot(sol, idxs=i, tspan=(100second, 101second), title="Action potential", xlabel="Time (s)")
Plot{Plots.GRBackend() n=1}
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{Plots.GRBackend() n=3}
plot(sol, idxs=(sys.t / 1000, sys.CaMKAct), title="Active CaMKII", label=false, ylabel="Active CaMKII fraction", xlabel="Time (s)")
Plot{Plots.GRBackend() n=1}

0.1uM isoproterenol

prob2 = remake(prob, p=[sys.ISO => 0.1μM])
@time sol2 = solve(prob2, alg; callback)
  1.252889 seconds (53.28 k allocations: 11.678 MiB, 4.17% gc time)
retcode: Success Interpolation: 3rd order Hermite t: 5547-element Vector{Float64}: 0.0 0.01933221120090689 0.07146682621423228 0.15042564972415 0.29782293916361985 0.6165636739497988 1.408588299017812 3.0488198638071347 5.761261029809148 9.352615992565255 ⋮ 161051.71012990223 166110.12492508188 171168.53972026153 176658.48311073577 182148.42650121002 187757.0167382342 193488.9739820792 200290.49072100583 205000.0 u: 5547-element Vector{Vector{Float64}}: [830.0, 830.0, 0.0026, 0.07192, 0.07831, 0.26081, 0.00977, 0.00188, 0.09243, 0.22156 … 0.12113, 0.12113, 0.12113, 0.12113, 0.12113, 0.12113, 0.12113, 150952.75035000002, 13838.37602, -68.79268] [830.0015288008976, 829.9994984165402, 0.002598561676095006, 0.07192100944174108, 0.07830845530672352, 0.26080557902015966, 0.009769882788877634, 0.0018798283118370111, 0.09242766680783533, 0.22156399369460875 … 0.12112999999409359, 0.1211299997600135, 0.12112999357372692, 0.12112986567954054, 0.12112781151055844, 0.1211408564255652, 0.12110517400513933, 150952.75040560117, 13838.375754628654, -68.79688395983696] [830.0056379242363, 829.9981575372559, 0.002594681998712588, 0.07192373754807992, 0.07830417530826156, 0.26079376554380457, 0.009769572045083129, 0.0018792238803555057, 0.09242137485739368, 0.22157476346175714 … 0.12112999079612749, 0.12112991869536624, 0.12112938910112658, 0.12112615943843792, 0.12111053520380755, 0.1211632086869261, 0.12105436600249227, 150952.7505559688, 13838.375001076396, -68.80926484415357] [830.0118262083795, 829.9961592845954, 0.0025888203849491584, 0.07192788628538371, 0.07829736454915767, 0.2607761867883088, 0.009769116461706936, 0.0018779598702770987, 0.09241184596460071, 0.2215910735449889 … 0.12112971893530881, 0.12112871347976586, 0.12112483673413357, 0.12111210563310393, 0.12107727405044907, 0.12118753307181593, 0.12099948806011704, 150952.750784929, 13838.373847496692, -68.8283577162773] [830.0232737493295, 829.9925327722876, 0.0025779667158279855, 0.0719356860170978, 0.07828359658903261, 0.2607443746142451, 0.009768312534046208, 0.0018747895118909927, 0.09239405902294541, 0.22162151763370563 … 0.12112654075070717, 0.12112048352617899, 0.12110620538568727, 0.12107613335128098, 0.12101975896548242, 0.12122038216358637, 0.12092574368160829, 150952.75121632207, 13838.371700132522, -68.86383643941355] [830.0475957941873, 829.9851430040055, 0.0025550189686283837, 0.07195279729809485, 0.07824923909433613, 0.2606799418515178, 0.00976676849816665, 0.0018660532666656415, 0.09235560103793329, 0.22168733906266216 … 0.12110597011779768, 0.12108529620157378, 0.1210512173307528, 0.1209983410254211, 0.12092099705603106, 0.12126988245998377, 0.1208141100534359, 150952.75216689223, 13838.367087528166, -68.93971026912023] [830.105687582966, 829.9693329155851, 0.0025015224658739635, 0.07199676092337645, 0.07813812923984832, 0.26054425020456623, 0.009764008113823703, 0.0018418700228687306, 0.09226007266112986, 0.22185082617372825 … 0.12102466782761877, 0.12097945803787986, 0.12091988817070894, 0.12084338026748108, 0.12074751347914021, 0.12134800332536884, 0.1206302076354389, 150952.75463279817, 13838.355797740056, -69.12354454528443] [830.2166617630536, 829.9470108312466, 0.002406483219320996, 0.07209431521934581, 0.07780431231727117, 0.26036106368264095, 0.009762907290823788, 0.0017942125713897104, 0.09206240544869243, 0.2221891317245725 … 0.12085664559078085, 0.12078879735137589, 0.12070851490344925, 0.12061456884315931, 0.12050581003539254, 0.12143794731034949, 0.1203812054798919, 150952.76019634836, 13838.33315801614, -69.48422926759456] [830.3776881717716, 829.935463333163, 0.0022883478933655222, 0.07227459018751521, 0.07700898007882005, 0.2602845915379664, 0.009773720942872783, 0.001725277176466508, 0.09173606838228854, 0.222748033816285 … 0.12062977051791035, 0.12054605181480096, 0.12045190749640083, 0.12034661731442708, 0.12022948798831344, 0.1215022068861117, 0.12009986137216556, 150952.77066344922, 13838.297772653475, -70.02550821773059] [830.558841347427, 829.9561916702554, 0.0021851852923333494, 0.07254825989672857, 0.07564502069201028, 0.26046401805956054, 0.00980911755255244, 0.001650184093304316, 0.09130516179651375, 0.22348750520742305 … 0.12039466724671863, 0.120300579812352, 0.12019755939573003, 0.12008508853676497, 0.1199626581136612, 0.12151231490524846, 0.11982976957138053, 150952.78671014385, 13838.25448668555, -70.64513012684397] ⋮ [924.6633875158299, 923.1314964644661, 0.00732653364400357, 0.21693192807912762, 0.00029609713266548574, 0.00110356555794076, 0.0015593264260877365, 0.002413758312133851, 0.001495534876825414, 0.9997346982159211 … 0.12632047526777132, 0.12632030224929675, 0.12632011467416626, 0.12631991199260686, 0.12631969361938103, 0.12631955422000396, 0.1263194589308797, 150974.99798228627, 13807.843020068498, -70.5013263664236] [924.9106192436743, 923.3962556470628, 0.007240970248421433, 0.21521650217332589, 0.00030010785128932867, 0.0011145105232892212, 0.0015667491350392828, 0.0024252471522497854, 0.00150933483893341, 0.9997452997319294 … 0.12585427184337888, 0.1258541171570799, 0.12585394876767425, 0.12585376616158378, 0.12585356879210122, 0.12585307003589735, 0.1258533560766748, 151010.05601326821, 13772.829292709132, -70.43744007412936] [925.1356085776833, 923.6383477870539, 0.007157607264465243, 0.21353224321916311, 0.0003041265595599608, 0.0011254385894379254, 0.0015741116768066288, 0.0024366422933449843, 0.0015230814347674977, 0.99974556318764 … 0.125403061826553, 0.1254029225895227, 0.1254027704037175, 0.1254026047872099, 0.12540242522698566, 0.12540164248228797, 0.12540223117639548, 151044.3164084007, 13738.613034881324, -70.37436942085166] [925.358046928841, 923.8788404576104, 0.0070697299838596355, 0.2117396526836191, 0.00030846173934215347, 0.0011372141398513515, 0.0015820318383181014, 0.0024489004721836606, 0.0015379342435663218, 0.9997428349265054 … 0.12492968984850966, 0.12492956499359027, 0.124929427921984, 0.12492927818218436, 0.12492911529356053, 0.12492808438440388, 0.12492893874397012, 151080.6180967431, 13702.358861817593, -70.30685046470815] [925.5608015584186, 924.0991098442189, 0.006984592969803034, 0.20998370562656749, 0.0003128171265859714, 0.0011489820799900103, 0.0015898751568157923, 0.002461038908187206, 0.0015527087515645709, 0.9997393340452287 … 0.12447263010060713, 0.12447251792780512, 0.12447239420740959, 0.12447225851549153, 0.12447211040077674, 0.1244708734593299, 0.12447194938240429, 151116.02435907428, 13666.9995680837, -70.24031660650789] [925.7498484275657, 924.3054928506815, 0.006900431956213579, 0.20822732643522748, 0.0003172879238582698, 0.0011609793893685078, 0.0015978051310838758, 0.0024733120865345383, 0.0015677153591447364, 0.9997355594538301 … 0.12402184654872145, 0.12402174576308671, 0.12402163405251154, 0.12402151101850217, 0.12402137623686019, 0.12401996633285939, 0.12402122925557554, 151151.29417403205, 13631.777078587154, -70.17336915691263] [925.9261846296321, 924.4989655513078, 0.006817336151410563, 0.20647106422713263, 0.0003218213123726305, 0.0011731219957364825, 0.0016058230219464411, 0.002485722002086028, 0.0015829575536285868, 0.9997316692333209 … 0.12357740428651101, 0.12357731402494856, 0.12357721343039028, 0.12357710212838978, 0.12357697972034751, 0.12357541884962454, 0.12357684578153069, 151186.4220021359, 13596.696846749532, -70.1060120689347] [926.1155863280125, 924.7079581547636, 0.006722457670835329, 0.20443722934489025, 0.0003271987657664071, 0.0011874703269760104, 0.0016152210566082196, 0.002500266893579212, 0.0016009094234706676, 0.9997270422823145 … 0.12307037305437081, 0.12307029385400599, 0.12307020496863484, 0.1230701060499356, 0.12306999672711859, 0.12306829108490717, 0.12306987660508434, 151226.9338340303, 13556.240411303173, -70.02748874358929] [926.2352591152539, 924.8407294016781, 0.006659069100116455, 0.20306036016812115, 0.0003308599799486048, 0.0011972653727253305, 0.001621655008863868, 0.0025102244732195496, 0.0016132530045805307, 0.9997238617260228 … 0.12273177024270683, 0.12273169796506293, 0.12273161642166922, 0.1227315252810409, 0.1227314241903118, 0.12272963512736192, 0.12273131277348168, 151254.2598687407, 13528.952010783207, -69.97399851918148]
plot(sol2, idxs=(sys.t / 1000, sys.vm), tspan=(100second, 101second), title="Action potential", xlabel="Time (s)")
Plot{Plots.GRBackend() n=1}
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{Plots.GRBackend() n=3}

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)
Plot{Plots.GRBackend() n=2}
savefig("iso-caT.pdf")
savefig("iso-caT.png")
"/home/github/actions-runner-2/_work/camkii-cardiomyocyte-model/camkii-cardiomyocyte-model/docs/iso-caT.png"

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.23518492665182758, 0.5899267472743499)
ca_iso = sol2(tspan[1]:1:tspan[2], idxs=sys.Cai_mean)
println(extrema(ca_iso))
(0.1913450036716734, 0.7276881462895101)
i = (sys.t / 1000, sys.CaMKAct)
plot(sol, idxs=i, title="", lab="ISO (-)")
plot!(sol2, idxs=i, lab="ISO (0.1uM)", ylabel="Active CaMKII fraction", xlabel="Time (s)")
Plot{Plots.GRBackend() n=2}
savefig("iso-camkact.pdf")
savefig("iso-camkact.png")
"/home/github/actions-runner-2/_work/camkii-cardiomyocyte-model/camkii-cardiomyocyte-model/docs/iso-camkact.png"
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 (s)", ylabel="Voltage (mV)"; tspan)
Plot{Plots.GRBackend() n=2}
savefig("iso-ap.pdf")
savefig("iso-ap.png")
"/home/github/actions-runner-2/_work/camkii-cardiomyocyte-model/camkii-cardiomyocyte-model/docs/iso-ap.png"

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 (s)", ylabel="CaMKII activity (A.U.)")
Plot{Plots.GRBackend() n=2}
savefig("iso-exp.pdf")
savefig("iso-exp.png")
"/home/github/actions-runner-2/_work/camkii-cardiomyocyte-model/camkii-cardiomyocyte-model/docs/iso-exp.png"

This notebook was generated using Literate.jl.