Wiki » History » Version 6
Adrian Quintana, 27 Apr 2015 16:43
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 | 2 | Boris Marin | 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 | 2 | Boris Marin | </pre> |
19 | 2 | Boris Marin | <pre> |
20 | 2 | Boris Marin | cd ../NeuroML2 |
21 | 2 | Boris Marin | jnml LEMS_ghk_na_k_ca.xml |
22 | 2 | Boris Marin | jnml LEMS_nernst_na_k_ca.xml |
23 | 2 | Boris Marin | </pre> |
24 | 2 | Boris Marin | <pre> |
25 | 2 | Boris Marin | cd ../ |
26 | 2 | Boris Marin | python compare.py |
27 | 2 | Boris Marin | |
28 | 2 | Boris Marin | neuroConstruct |
29 | 2 | Boris Marin | -------------- |
30 | 2 | Boris Marin | |
31 | 2 | Boris Marin | Recent versions of neuroConstruct support GHK, generating NeuroML2 and NEURON code accordingly. In order to use the GHK flux equation instead |
32 | 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. |
33 | 2 | Boris Marin | ![](nc_ghk.png) |
34 | 2 | Boris Marin | |
35 | 2 | Boris Marin | Definitions |
36 | 2 | Boris Marin | ----------- |
37 | 2 | Boris Marin | |
38 | 2 | Boris Marin | - From [Wikipedia](http://en.wikipedia.org/wiki/GHK_flux_equation) |
39 | 2 | Boris Marin | |
40 | 2 | Boris Marin | ![](http://mathurl.com/ngps7px.png) |
41 | 2 | Boris Marin | |
42 | 2 | Boris Marin | - From Steuber et al DCN model: |
43 | 6 | Adrian Quintana | |
44 | 6 | Adrian Quintana | {{latex(A = exp(~~23.20764929 \* v / T) = exp \* v) / ))}} |
45 | 2 | Boris Marin | ical = perm \* m\*m \* h \* \*~~ (calo/1000) \* A) / (1 - A) |
46 | 2 | Boris Marin | (z\^2 \* F\^2 \* (0.001) \* v) / (R \* T) |
47 | 6 | Adrian Quintana | |
48 | 2 | Boris Marin | |
49 | 2 | Boris Marin | - From [GENESIS](http://www.genesis-sim.org/GENESIS/gum-tutorials/beeman/Hyperdoc/Manual-26.html#ss26.30) |
50 | 2 | Boris Marin | \<pre\> |
51 | 2 | Boris Marin | valency \* F |
52 | 2 | Boris Marin | K = - - - - - - - |
53 | 2 | Boris Marin | R \* (T + 273) |
54 | 2 | Boris Marin | |
55 | 2 | Boris Marin | Cin \* exp(K \* Vm) - Cout |
56 | 2 | Boris Marin | Ik = ~~p \* F \* K \* Vm~~ - - - - - - - - - - - |
57 | 2 | Boris Marin | exp(K \* Vm) - 1 |
58 | 2 | Boris Marin | |
59 | 2 | Boris Marin | </pre> |
60 | 2 | Boris Marin | (it is missing one valency factor in comparison to the others, check genesis source!) |