Edit History

Wiki » History » Version 11

Padraig Gleeson, 27 Apr 2015 17:23

1 2 Boris Marin
Goldman-Hodgkin-Katz and Nernst formalisms in NeuroML2
2 2 Boris Marin
======================================================
3 1 Padraig Gleeson
4 2 Boris Marin
Sample [LEMS & NeuroML 2](https://github.com/OpenSourceBrain/ghk-nernst/tree/master/NeuroML2) files implementing a single compartment model, containing *HH* type Na<sup>+</sup>/K<sup>+</sup> channels, a Ca<sup>++</sup> channel and pool. The Calcium current through the channel can be calculated either through the [GHK flux equation](http://en.wikipedia.org/wiki/GHK_flux_equation), or using the [Nernst Equation](http://en.wikipedia.org/wiki/Nernst_equation) to approximate its reversal potential.
5 2 Boris Marin
6 3 Boris Marin
The same mechanisms are implemented in *NEURON* as a comparison. Notice that *NEURON* has built in support for calculating reversal potentials via the Nernst equation, which can be compared to our implementation written from scratch by running [Native NEURON](https://github.com/OpenSourceBrain/ghk-nernst/blob/master/NEURON/nernstnat_na_k_ca.py) , [from scratch](https://github.com/OpenSourceBrain/ghk-nernst/blob/master/NEURON/nernst_na_k_ca.py) ; see also [native Nernst modfile](https://github.com/OpenSourceBrain/ghk-nernst/blob/master/NEURON/cachan_nernst_native.mod) and [from scratch modfile](https://github.com/OpenSourceBrain/ghk-nernst/blob/master/NEURON/cachan_nernst.mod)
7 2 Boris Marin
8 2 Boris Marin
Running tests
9 2 Boris Marin
-------------
10 2 Boris Marin
11 11 Padraig Gleeson
The following tests can be run to compare the usage of GHK/Nernst from *NEURON/LEMS*:
12 2 Boris Marin
13 2 Boris Marin
     git clone git@github.com:OpenSourceBrain/ghk-nernst.git
14 2 Boris Marin
     cd ghk-nernst/NEURON/
15 2 Boris Marin
     nrnivmodl
16 2 Boris Marin
     ./ghk_na_k_ca.py
17 2 Boris Marin
     ./nernst_na_k_ca.py
18 11 Padraig Gleeson
19 1 Padraig Gleeson
     cd ../NeuroML2
20 2 Boris Marin
     jnml LEMS_ghk_na_k_ca.xml
21 2 Boris Marin
     jnml LEMS_nernst_na_k_ca.xml
22 11 Padraig Gleeson
23 2 Boris Marin
     cd ../
24 2 Boris Marin
     python compare.py
25 2 Boris Marin
26 2 Boris Marin
neuroConstruct
27 2 Boris Marin
--------------
28 2 Boris Marin
29 2 Boris Marin
Recent versions of neuroConstruct support GHK, generating NeuroML2 and NEURON code accordingly. In order to use the GHK flux equation instead
30 2 Boris Marin
of Ohm’s law for a particular mechanism, set an extra parameter GHK\_permeability (in m/s) using the **Edit Density Mechs** dialog.
31 2 Boris Marin
![](nc_ghk.png)
32 2 Boris Marin
33 2 Boris Marin
Definitions
34 2 Boris Marin
-----------
35 2 Boris Marin
36 10 Adrian Quintana
From [Wikipedia](http://en.wikipedia.org/wiki/GHK_flux_equation)
37 2 Boris Marin
38 2 Boris Marin
![](http://mathurl.com/ngps7px.png)
39 2 Boris Marin
40 10 Adrian Quintana
From Steuber et al DCN model:
41 8 Adrian Quintana
42 8 Adrian Quintana
     A = exp(-23.20764929 * v / T) = exp((-z * F * (0.001) * v) / (R * T))                                        
43 8 Adrian Quintana
44 8 Adrian Quintana
     ical = perm * m*m * h * (4.47814e6 * v / T) * ((cali/1000) - (calo/1000) * A) / (1 - A)                      
45 8 Adrian Quintana
46 8 Adrian Quintana
     (z^2 * F^2 * (0.001) * v) / (R * T)
47 2 Boris Marin
48 10 Adrian Quintana
From [GENESIS](http://www.genesis-sim.org/GENESIS/gum-tutorials/beeman/Hyperdoc/Manual-26.html#ss26.30)
49 2 Boris Marin
50 9 Adrian Quintana
              valency * F                                                                                          
51 9 Adrian Quintana
     K     =  - - - - - - -                                                                                        
52 9 Adrian Quintana
              R * (T + 273)                                                                                        
53 2 Boris Marin
54 9 Adrian Quintana
                               Cin * exp(K * Vm) - Cout                                                           
55 9 Adrian Quintana
     Ik    =  -p * F * K * Vm  - - - - - - - - - - - -                                                            
56 9 Adrian Quintana
                                   exp(K * Vm) - 1                                                                
57 9 Adrian Quintana
58 9 Adrian Quintana
     (it is  missing one valency factor in comparison to the others, check genesis source)