TITLE Nav1.7 ionic voltage-gated channel with kinetic scheme

COMMENT
A six-states markovian kinetic model of sodium channel.
Part of a study on kinetic models.
Author: Piero Balbi, August 2016
ENDCOMMENT

NEURON {
	SUFFIX na17a
	USEION na READ ena WRITE ina
	RANGE gbar, ina, g
}

UNITS {
	(mA) = (milliamp)
	(mV) = (millivolt)
}

PARAMETER {
	v (mV)
	ena (mV)
	celsius (degC)
	gbar  = 0.1	 (mho/cm2)
	
	C1C2b2	  = 16
	C1C2v2    = -18
	C1C2k2	  = -9
	
	C2C1b1	  = 6
	C2C1v1    = -48
	C2C1k1	  = 9
	C2C1b2	  = 16
	C2C1v2    = -18
	C2C1k2	  = -9

	C2O1b2	  = 16
	C2O1v2    = -23
	C2O1k2	  = -9
	
	O1C2b1	  = 2
	O1C2v1    = -53
	O1C2k1	  = 9
	O1C2b2	  = 16
	O1C2v2    = -23
	O1C2k2	  = -9
	
	C2O2b2	  = 0.01
	C2O2v2	  = -35
	C2O2k2	  = -5
	
	O2C2b1	  = 3
	O2C2v1	  = -75
	O2C2k1	  = 5
	O2C2b2	  = 0.01
	O2C2v2	  = -35
	O2C2k2	  = -5
	
	O1I1b1	  = 4
	O1I1v1	  = -52
	O1I1k1	  = 12
	O1I1b2	  = 8
	O1I1v2	  = -27
	O1I1k2	  = -12
	
	I1O1b1	  = 0.00001
	I1O1v1	  = -52
	I1O1k1	  = 10
	
	I1C1b1	  = 0.085
	I1C1v1	  = -110
	I1C1k1	  = 5
	
	C1I1b2	  = 0.025
	C1I1v2	  = -55
	C1I1k2	  = -20
	
	I1I2b2	  = 0.00001
	I1I2v2	  = -80
	I1I2k2	  = -20

	I2I1b1	  = 0.00001
	I2I1v1	  = -80
	I2I1k1	  = 20
	
}

ASSIGNED {
	ina  (mA/cm2)
	g   (mho/cm2)
	
	C1C2_a (/ms)
	C2C1_a (/ms)
	C2O1_a (/ms)
	O1C2_a (/ms)
	C2O2_a (/ms)
	O2C2_a (/ms)
	O1I1_a (/ms)
	I1O1_a (/ms)
	I1I2_a (/ms)
	I2I1_a (/ms)
	I1C1_a (/ms)
	C1I1_a (/ms)
	
	Q10 (1)
}

STATE {
	C1
	C2
	O1
	O2
	I1
	I2
}


INITIAL {
	Q10 = 3^((celsius-20(degC))/10 (degC))
	SOLVE kin
	STEADYSTATE sparse
}

BREAKPOINT {
	SOLVE kin METHOD sparse
	g = gbar * (O1 + O2)	: (mho/cm2)
	ina = g * (v - ena)   	: (mA/cm2)
}

KINETIC kin {
	rates(v)
	
	~ C1 <->  C2 (C1C2_a, C2C1_a)
	~ C2 <->  O1 (C2O1_a, O1C2_a)
	~ C2 <->  O2 (C2O2_a, O2C2_a)
	~ O1 <->  I1 (O1I1_a, I1O1_a)
	~ I1 <->  C1 (I1C1_a, C1I1_a)
	~ I1 <->  I2 (I1I2_a, I2I1_a)
	
	CONSERVE O1 + O2 + C1 + C2 + I1 + I2 = 1
}

FUNCTION rates2(v, b, vv, k) {
	rates2 = (b/(1+exp((v-vv)/k)))
}

PROCEDURE rates(v(mV)) {
UNITSOFF
	C1C2_a = Q10*(rates2(v, C1C2b2, C1C2v2, C1C2k2))
	C2C1_a = Q10*(rates2(v, C2C1b1, C2C1v1, C2C1k1) + rates2(v, C2C1b2, C2C1v2, C2C1k2))
	C2O1_a = Q10*(rates2(v, C2O1b2, C2O1v2, C2O1k2))
	O1C2_a = Q10*(rates2(v, O1C2b1, O1C2v1, O1C2k1) + rates2(v, O1C2b2, O1C2v2, O1C2k2))
	C2O2_a = Q10*(rates2(v, C2O2b2, C2O2v2, C2O2k2))
	O2C2_a = Q10*(rates2(v, O2C2b1, O2C2v1, O2C2k1) + rates2(v, O2C2b2, O2C2v2, O2C2k2))
	O1I1_a = Q10*(rates2(v, O1I1b1, O1I1v1, O1I1k1) + rates2(v, O1I1b2, O1I1v2, O1I1k2))
	I1O1_a = Q10*(rates2(v, I1O1b1, I1O1v1, I1O1k1))
	I1C1_a = Q10*(rates2(v, I1C1b1, I1C1v1, I1C1k1))
	C1I1_a = Q10*(rates2(v, C1I1b2, C1I1v2, C1I1k2))
	I1I2_a = Q10*(rates2(v, I1I2b2, I1I2v2, I1I2k2))
	I2I1_a = Q10*(rates2(v, I2I1b1, I2I1v1, I2I1k1))
UNITSON
}