Model of the Mammalian ET cell

Computational model and files to recreate the results from the paper "A Computational Model of the Mammalian External Tufted Cell" https://doi.org/10.1016/j.jtbi.2018.10.003

Author: Ryan Viertel

Usage
data = ET(input,sampling_rate);

input: input vector, if no input then just a vector of zeros

sampling_rate: rate at which the input vector should be sampled. 1000 for milisecond

returns the following struct:

data.T - time vector data.X - ODE variables at each time step

data.X(:,1) - Membrane Potential
data.X(:,2) - nK
data.X(:,3) - hNaP
data.X(:,4) - hH
data.X(:,5) - mLVA
data.X(:,6) - hLVA
data.X(:,7) - mBK
data.X(:,8) - Calcium
data.X(:,9) - nHVK
data.events - list of spike events

data.which - event type

1 - spike
2 - burst start
3 - burst end
data.current - system currents

data.current(:,1) = transient sodium
data.current(:,2) = fast potassium
data.current(:,3) = leak
data.current(:,4) = persistent sodium
data.current(:,5) = hyperpolarization activated data.current(:,6) = LVA calcium
data.current(:,7) = HVA calcium
data.current(:,8) = large conductance potassium data.current(:,9) = HVK current

Example:

% create the input vector
input = zeros(1,5000);

% run the model
data = ET(input,1000);

% plot the voltage trace
plot(data.T,data.X(:,1))

You should see a figure like this:

screenshot

ME-PCM
The code used to sample the model throughout parameter space to determine stability and investigate the effect of model parameters on model output is found in the ME-PCM directory

xpp
The ODE file to recreate the bifurcation diagram is found in the xpp directory

Notes on figure 6

  1. The steps to exactly recreate each of the panels in figure 6 are time consuming. I exported the raw data from xpp to Matlab and cleaned and plotted it there. You can roughly recreate the bifurcation diagram though by following these steps
  2. open bifurcation.ode in xpp
  3. integrate the system until it reaches steady state (i g followed by i l several times in xpp)
  4. open auto under the File menu
  5. Trace out the steady state (f r while auto is open. You then have to grab each of the endpoints and extend the steady state integration. To extend the solution on the right you have to change ds to a positive value)
  6. After tracing out the stead state, you can grab the Hopf bifurcation point on the left, and press r p to begin tracing out the periodic orbit.

After creating the bifurcation diagram, I traced the trajectory of the full system and overlaid the data. This could be done in xpp or matlab. Finally, the lower panels can all be recreated by fixing the value of mBK, then in the V-nK plane plotting trajectories by picking some initial conditions in the upper right quadrant. I hope that helps, let me know if you have questions.

Notes on parallel run time for ME-PCM (uq):

See the paper for more details. we ran the 390625 total simulations for about 7 seconds of simulated time (roughly 10 seconds real time for each simulation). We did this on 11 dual socket nodes, 6 cores per socket for a total of 132 cores. This took about 6 hours and 40 minutes to run.

The task is dominated by the time it takes to run the simulations, and running all of the simulations is embarrassingly parallel, so really its just a question of what resources are available and how many simulations you want to run.