Basics of usage
Module: devtests.bidomain.sentinel.run
Section author: Gernot Plank <gernot.plank@medunigraz.at>
This tutorial introduces to the basics of using the carpentry executable for simulating EP at the tissue and organ scale. Details on how to inquire input parameters are provided in the carpentry section of the manual.
In absence of pacemaker currents electrical stimulus currents must be supplied in order to depolarize tissue above the threshold to elicit a propagated action potential. The simplest way of initiating a propagating action potential is the use of a transmembrane stimulus, . According to the definition in CARPentry supplying a positive depolarizes the tissue, a negative hyperpolarizes the tissue.
To introduce definition and usage of transmembrane stimulus currents in CARPentry a simple experiment using a thin monolayer preparation was defined. The following input parameters are available to steer the experiment:
--duration
Duration of simulation (ms)
--S1-strength
pick transmembrane current stimulus strength in
[uA/cm^2] (default is 20.)
--S1-dur
pick transmembrane current stimulus duration in [ms
We start with a longer stimulus lasting for 15 ms and gradually increase the stimulus strength until we achieve capture. This is equivalent to measuring one data point of a strength-duration curve to determine chronaxie and rheobase of our preparation.
./run.py --duration 20 --S1-strength 20. --S1-dur 15 --visualize
This weak current slowly depolarizes the membrane, but does not reach threshold. After the end of stimulation, the membrane returns to its resting state, as shown in Fig. 25.
Inspect the variation in membrane depolarization as a function of distance to the stimulus location by varying the vertex index in meshalyzer.
To understand how the stimulus definition is passed on to the simulator we inspect the command line generated by the script. For this sake run
./run.py --duration 20 --S1-strength 20. --S1-dur 15 --dry
The stimulus section of the command line is then
-num_stim 1 \ # use one stimulus electrode
-stimulus[0].name S1 \
\ # pulse and type definition
-stimulus[0].stimtype 0 \
-stimulus[0].strength 250.0 \
-stimulus[0].duration 2.0 \
\ # electrode definition (block)
-stimulus[0].x0 -5050.0 \
-stimulus[0].xd 100.0 \
-stimulus[0].y0 -550.0 \
-stimulus[0].yd 1100.0 \
-stimulus[0].z0 -150.0 \
-stimulus[0].zd 300.0
We repeat exp01 with a negative transmembrane stimulus current.
./run.py --duration 20 --S1-strength 20. --S1-dur 15 --visualize
As the membrane behaves essentially only passively in the subthreshold regime we observe the same response symmetric to the resting potential, see Fig. 26
We repeat exp01 with a stronger transmembrane stimulus current of shorter duration. Peak sodium current is known to be around and last for less than a millisecond. We chose a strength of of 1 millisecond duration to achieve suprathreshold depolarization. Keep in mind that suprathreshold depolarization at the stimulus site does not automatically lead to a propagated response. The local membrane response at the stimulus location is shown in Fig. 27.
./run.py --duration 20 --S1-strength 100. --S1-dur 2 --visualize