Ih.mod 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. :Comment :
  2. :Reference : : Kole,Hallermann,and Stuart, J. Neurosci. 2006
  3. NEURON {
  4. SUFFIX Ih
  5. NONSPECIFIC_CURRENT ihcn
  6. RANGE gbar, g, ihcn, shift1, shift2, shift3, shift4, shift5, shift6
  7. }
  8. UNITS {
  9. (S) = (siemens)
  10. (mV) = (millivolt)
  11. (mA) = (milliamp)
  12. }
  13. PARAMETER {
  14. gbar = 0.00001 (S/cm2)
  15. ehcn = -45.0 (mV)
  16. shift1 = 154.9
  17. shift2 = 11.9
  18. shift3 = 0
  19. shift4 = 33.1
  20. shift5 = 6.43
  21. shift6 = 193
  22. }
  23. ASSIGNED {
  24. v (mV)
  25. ihcn (mA/cm2)
  26. g (S/cm2)
  27. mInf
  28. mTau
  29. mAlpha
  30. mBeta
  31. }
  32. STATE {
  33. m
  34. }
  35. BREAKPOINT {
  36. SOLVE states METHOD cnexp
  37. g = gbar*m
  38. ihcn = g*(v-ehcn)
  39. }
  40. DERIVATIVE states {
  41. rates()
  42. m' = (mInf-m)/mTau
  43. }
  44. INITIAL{
  45. rates()
  46. m = mInf
  47. }
  48. PROCEDURE rates(){
  49. UNITSOFF
  50. if(v == -shift1){
  51. v = v + 0.0001
  52. }
  53. if(shift4 == 0){
  54. shift4 = shift4 + 0.0001
  55. }
  56. if(shift2 == 0){
  57. shift2 = shift2 + 0.0001
  58. }
  59. mAlpha = 0.001*(shift5)*(v+shift1)/(exp((v+shift1)/(shift2))-1)
  60. mBeta = 0.001*(shift6)*exp((v+shift3)/(shift4))
  61. mInf = mAlpha/(mAlpha + mBeta)
  62. mTau = 1/(mAlpha + mBeta)
  63. UNITSON
  64. }