Documentation ¶
Overview ¶
Package chans provides standard neural conductance channels for computing a point-neuron approximation based on the standard equivalent RC circuit model of a neuron (i.e., basic Ohms law equations). Includes excitatory, leak, inhibition, and dynamic potassium channels.
Package chans provides standard neural conductance channels for computing a point-neuron approximation based on the standard equivalent RC circuit model of a neuron (i.e., basic Ohms law equations). Includes excitatory, leak, inhibition, and dynamic potassium channels.
It also includes implementations of other important types of channels such as NMDA, GABA-B, and VGCC.
Index ¶
- func VFromBio(vm float32) float32
- func VToBio(vm float32) float32
- type AKParams
- func (ap *AKParams) AlphaFromVK(vbio, k float32) float32
- func (ap *AKParams) BetaFromVK(vbio, k float32) float32
- func (ap *AKParams) DMHFromV(v, m, h float32) (float32, float32)
- func (ap *AKParams) Defaults()
- func (ap *AKParams) Distal()
- func (ap *AKParams) Gak(m, h float32) float32
- func (ap *AKParams) HFromV(vbio float32) float32
- func (ap *AKParams) HTauFromV(vbio float32) float32
- func (ap *AKParams) KFromV(vbio float32) float32
- func (ap *AKParams) MFromAlpha(alpha float32) float32
- func (ap *AKParams) MTauFromAlphaBeta(alpha, beta float32) float32
- func (ap *AKParams) Proximal()
- func (ap *AKParams) ShouldDisplay(field string) bool
- func (ap *AKParams) Update()
- type AKsParams
- type Chans
- type GABABParams
- func (gp *GABABParams) BiExp(g, x float32, dG, dX *float32)
- func (gp *GABABParams) Defaults()
- func (gp *GABABParams) GABAB(gi float32, gabaB, gabaBx *float32)
- func (gp *GABABParams) GFromS(s float32) float32
- func (gp *GABABParams) GFromV(v float32) float32
- func (gp *GABABParams) GgabaB(gabaB, vm float32) float32
- func (gp *GABABParams) ShouldDisplay(field string) bool
- func (gp *GABABParams) Update()
- type KNaMedSlow
- type KNaParams
- type KirParams
- func (kp *KirParams) DM(vbio, m float32) float32
- func (kp *KirParams) Defaults()
- func (kp *KirParams) Gkir(v float32, m *float32) float32
- func (kp *KirParams) MRates(vbio float32, minf, mtau *float32)
- func (kp *KirParams) Minf(vbio float32) float32
- func (kp *KirParams) MinfRest() float32
- func (kp *KirParams) ShouldDisplay(field string) bool
- func (kp *KirParams) Update()
- type MahpParams
- func (mp *MahpParams) DNFromV(v, n float32) float32
- func (mp *MahpParams) Defaults()
- func (mp *MahpParams) EFun(z float32) float32
- func (mp *MahpParams) GmAHP(v float32, n *float32) float32
- func (mp *MahpParams) NinfTauFromV(vbio float32, ninf, tau *float32)
- func (mp *MahpParams) NinfTauFromVnorm(v float32, ninf, tau *float32)
- func (mp *MahpParams) ShouldDisplay(field string) bool
- func (mp *MahpParams) Update()
- type NMDAParams
- func (np *NMDAParams) CaFromV(v float32) float32
- func (np *NMDAParams) CaFromVbio(vbio float32) float32
- func (np *NMDAParams) Defaults()
- func (np *NMDAParams) Gnmda(nmda, vm float32) float32
- func (np *NMDAParams) MgGFromV(v float32) float32
- func (np *NMDAParams) MgGFromVbio(vbio float32) float32
- func (np *NMDAParams) NMDASyn(nmda, raw float32) float32
- func (np *NMDAParams) ShouldDisplay(field string) bool
- func (np *NMDAParams) SnmdaFromSpike(spike float32, snmdaO, snmdaI *float32)
- func (np *NMDAParams) Update()
- func (np *NMDAParams) VFactors(v float32, mgg, cav *float32)
- type SKCaParams
- func (sp *SKCaParams) CaInRFromSpike(spike, caD float32, caIn, caR *float32)
- func (sp *SKCaParams) Defaults()
- func (sp *SKCaParams) MAsympGW06(cai float32) float32
- func (sp *SKCaParams) MAsympHill(cai float32) float32
- func (sp *SKCaParams) MFromCa(caR, mcur float32) float32
- func (sp *SKCaParams) ShouldDisplay(field string) bool
- func (sp *SKCaParams) Update()
- type SahpParams
- func (mp *SahpParams) CaInt(caInt, ca float32) float32
- func (mp *SahpParams) DNFromV(ca, n float32) float32
- func (mp *SahpParams) Defaults()
- func (mp *SahpParams) EFun(z float32) float32
- func (mp *SahpParams) GsAHP(n float32) float32
- func (mp *SahpParams) NinfTauFromCa(ca float32, ninf, tau *float32)
- func (mp *SahpParams) ShouldDisplay(field string) bool
- func (mp *SahpParams) Update()
- type VGCCParams
- func (np *VGCCParams) CaFromG(v, g, ca float32) float32
- func (np *VGCCParams) DMHFromV(v, m, h float32, dm, dh *float32)
- func (np *VGCCParams) Defaults()
- func (np *VGCCParams) GFromV(v float32) float32
- func (np *VGCCParams) Gvgcc(vm, m, h float32) float32
- func (np *VGCCParams) HFromV(vbio float32) float32
- func (np *VGCCParams) MFromV(vbio float32) float32
- func (np *VGCCParams) ShouldDisplay(field string) bool
- func (np *VGCCParams) Update()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AKParams ¶
type AKParams struct { // strength of AK current Gbar float32 `default:"1,0.1,0.01"` // multiplier for the beta term; 0.01446 for distal, 0.02039 for proximal dendrites Beta float32 `default:"0.01446,02039"` // Dm factor: 0.5 for distal, 0.25 for proximal Dm float32 `default:"0.5,0.25"` // offset for K, 1.8 for distal, 1.5 for proximal Koff float32 `default:"1.8,1.5"` // voltage offset for alpha and beta functions: 1 for distal, 11 for proximal Voff float32 `default:"1,11"` // h multiplier factor, 0.1133 for distal, 0.1112 for proximal Hf float32 `default:"0.1133,0.1112"` // contains filtered or unexported fields }
AKParams control an A-type K channel, which is voltage gated with maximal activation around -37 mV. It has two state variables, M (v-gated opening) and H (v-gated closing), which integrate with fast and slow time constants, respectively. H relatively quickly hits an asymptotic level of inactivation for sustained activity patterns. It is particularly important for counteracting the excitatory effects of voltage gated calcium channels which can otherwise drive runaway excitatory currents. See AKsParams for a much simpler version that works fine when full AP-like spikes are not simulated, as in our standard axon models.
func (*AKParams) AlphaFromVK ¶
AlphaFromVK returns the Alpha function from vbio (not normalized, must not exceed 0)
func (*AKParams) BetaFromVK ¶
BetaFromVK returns the Beta function from vbio (not normalized, must not exceed 0)
func (*AKParams) DMHFromV ¶
DMHFromV returns the change at msec update scale in M, H factors as a function of V normalized (0-1)
func (*AKParams) Defaults ¶
func (ap *AKParams) Defaults()
Defaults sets the parameters for distal dendrites
func (*AKParams) Distal ¶
func (ap *AKParams) Distal()
Distal sets the parameters for distal dendrites
func (*AKParams) HFromV ¶
HFromV returns the H gate value from vbio (not normalized, must not exceed 0)
func (*AKParams) HTauFromV ¶
HTauFromV returns the HTau rate constant in msec from vbio (not normalized, must not exceed 0)
func (*AKParams) MFromAlpha ¶
MFromAlpha returns the M gate factor from alpha
func (*AKParams) MTauFromAlphaBeta ¶
MTauFromAlphaBeta returns the MTau rate constant in msec from alpha, beta
func (*AKParams) Proximal ¶
func (ap *AKParams) Proximal()
Proximal sets parameters for proximal dendrites
func (*AKParams) ShouldDisplay ¶
type AKsParams ¶
type AKsParams struct { // strength of AK current Gbar float32 `default:"2,0.1,0.01"` // H factor as a constant multiplier on overall M factor result -- rescales M to level consistent with H being present at full strength Hf float32 `default:"0.076"` // multiplier for M -- determines slope of function Mf float32 `default:"0.075"` // voltage offset in biological units for M function Voff float32 `default:"2"` // Vmax float32 `def:-37" desc:"voltage level of maximum channel opening -- stays flat above that"` // contains filtered or unexported fields }
AKsParams provides a highly simplified stateless A-type K channel that only has the voltage-gated activation (M) dynamic with a cutoff that ends up capturing a close approximation to the much more complex AK function. This is voltage gated with maximal activation around -37 mV. It is particularly important for counteracting the excitatory effects of voltage gated calcium channels which can otherwise drive runaway excitatory currents.
func (*AKsParams) Defaults ¶
func (ap *AKsParams) Defaults()
Defaults sets the parameters for distal dendrites
func (*AKsParams) Gak ¶
Gak returns the conductance as a function of normalized Vm GBar * MFromVnorm(v)
func (*AKsParams) MFromVnorm ¶
MFromVnorm returns the M gate function from vnorm
func (*AKsParams) ShouldDisplay ¶
type Chans ¶
type Chans struct { // excitatory sodium (Na) AMPA channels activated by synaptic glutamate E float32 // constant leak (potassium, K+) channels -- determines resting potential (typically higher than resting potential of K) L float32 // inhibitory chloride (Cl-) channels activated by synaptic GABA I float32 // gated / active potassium channels -- typically hyperpolarizing relative to leak / rest K float32 }
Chans are ion channels used in computing point-neuron activation function
func (*Chans) SetFromMinusOther ¶
SetFromMinusOther sets all the values from given value minus other Chans
func (*Chans) SetFromOtherMinus ¶
SetFromOtherMinus sets all the values from other Chans minus given value
type GABABParams ¶
type GABABParams struct { // overall strength multiplier of GABA-B current. The 0.015 default is a high value that works well in smaller networks -- larger networks may benefit from lower levels (e.g., 0.012). Gbar float32 `default:"0,0.012,0.015"` // rise time for bi-exponential time dynamics of GABA-B RiseTau float32 `default:"45"` // decay time for bi-exponential time dynamics of GABA-B DecayTau float32 `default:"50"` // baseline level of GABA-B channels open independent of inhibitory input (is added to spiking-produced conductance) Gbase float32 `default:"0.2"` // multiplier for converting Gi to equivalent GABA spikes GiSpike float32 `default:"10"` // time offset when peak conductance occurs, in msec, computed from RiseTau and DecayTau MaxTime float32 `edit:"-"` // time constant factor used in integration: (Decay / Rise) ^ (Rise / (Decay - Rise)) TauFact float32 `display:"-"` // 1/Tau RiseDt float32 `display:"-" edit:"-"` // 1/Tau DecayDt float32 `display:"-" edit:"-"` // contains filtered or unexported fields }
GABABParams control the GABAB dynamics in PFC Maint neurons, based on Brunel & Wang (2001) parameters.
func (*GABABParams) BiExp ¶
func (gp *GABABParams) BiExp(g, x float32, dG, dX *float32)
BiExp computes bi-exponential update, returns dG and dX deltas to add to g and x
func (*GABABParams) Defaults ¶
func (gp *GABABParams) Defaults()
func (*GABABParams) GABAB ¶
func (gp *GABABParams) GABAB(gi float32, gabaB, gabaBx *float32)
GABAB returns the updated GABA-B / GIRK activation and underlying x value based on current values and gi inhibitory conductance (proxy for GABA spikes)
func (*GABABParams) GFromS ¶
func (gp *GABABParams) GFromS(s float32) float32
GFromS returns the GABA-B conductance as a function of GABA spiking rate, based on normalized spiking factor (i.e., Gi from FFFB etc)
func (*GABABParams) GFromV ¶
func (gp *GABABParams) GFromV(v float32) float32
GFromV returns the GABA-B conductance as a function of normalized membrane potential
func (*GABABParams) GgabaB ¶
func (gp *GABABParams) GgabaB(gabaB, vm float32) float32
GgabaB returns the overall net GABAB / GIRK conductance including Gbar, Gbase, and voltage-gating
func (*GABABParams) ShouldDisplay ¶
func (gp *GABABParams) ShouldDisplay(field string) bool
func (*GABABParams) Update ¶
func (gp *GABABParams) Update()
type KNaMedSlow ¶
type KNaMedSlow struct { // if On, apply K-Na adaptation On slbool.Bool // engages an optional version of Slow that discretely turns on at start of new trial (NewState): nrn.GknaSlow += Slow.Max * nrn.SpkPrv -- achieves a strong form of adaptation TrialSlow slbool.Bool // medium time-scale adaptation Med KNaParams `display:"inline"` // slow time-scale adaptation Slow KNaParams `display:"inline"` // contains filtered or unexported fields }
KNaMedSlow describes sodium-gated potassium channel adaptation mechanism. Evidence supports 2 different time constants: Slick (medium) and Slack (slow)
func (*KNaMedSlow) Defaults ¶
func (ka *KNaMedSlow) Defaults()
func (*KNaMedSlow) GcFromSpike ¶
func (ka *KNaMedSlow) GcFromSpike(gKNaM, gKNaS *float32, spike bool)
GcFromSpike updates med, slow time scales of KNa adaptation from spiking
func (*KNaMedSlow) ShouldDisplay ¶
func (ka *KNaMedSlow) ShouldDisplay(field string) bool
func (*KNaMedSlow) Update ¶
func (ka *KNaMedSlow) Update()
type KNaParams ¶
type KNaParams struct { // if On, use this component of K-Na adaptation On slbool.Bool // Rise rate of fast time-scale adaptation as function of Na concentration due to spiking -- directly multiplies -- 1/rise = tau for rise rate Rise float32 // Maximum potential conductance of fast K channels -- divide nA biological value by 10 for the normalized units here Max float32 // time constant in cycles for decay of adaptation, which should be milliseconds typically (tau is roughly how long it takes for value to change significantly -- 1.4x the half-life) Tau float32 // 1/Tau rate constant Dt float32 `display:"-"` // contains filtered or unexported fields }
KNaParams implements sodium (Na) gated potassium (K) currents that drive adaptation (accommodation) in neural firing. As neurons spike, driving an influx of Na, this activates the K channels, which, like leak channels, pull the membrane potential back down toward rest (or even below).
func (*KNaParams) GcFromSpike ¶
GcFromSpike updates the KNa conductance based on spike or not
func (*KNaParams) ShouldDisplay ¶
type KirParams ¶
type KirParams struct { // overall strength multiplier of Kir current. Gbar float32 `default:"0,0.012,0.015"` // Asymptotic gating factor M, offset MinfOff float32 `default:"-102"` // Asymptotic gating factor M, time constant MinfTau float32 `default:"13"` // Rise time constant as a function of voltage, offset RiseOff float32 `default:"-60"` // Rise time constant as a function of voltage, time constant factor RiseTau float32 `default:"14"` // Decay time constant as a function of voltage, offset DecayOff float32 `default:"-31"` // Decay time constant as a function of voltage, time constant factor DecayTau float32 `default:"23"` // Mrest is Minf at resting membrane potential of -70, computed from other params Mrest float32 `edit:"-"` }
KirParams control the Kir potassium inwardly rectifying current, based on the equations from Lindroos et al (2018). The conductance is highest at low membrane potentials
func (*KirParams) Gkir ¶
Gkir returns the overall net Kir conductance, and updates the m gating parameter, as a function of given normalized voltage
func (*KirParams) MinfRest ¶
MinfRest returns Minf at nominal resting membrane potential of -70mV which serves as the initial value
func (*KirParams) ShouldDisplay ¶
type MahpParams ¶
type MahpParams struct { // strength of mAHP current Gbar float32 // voltage offset (threshold) in biological units for infinite time N gating function -- where the gate is at 50% strength Voff float32 `default:"-30"` // slope of the arget (infinite time) gating function Vslope float32 `default:"9"` // maximum slow rate time constant in msec for activation / deactivation. The effective Tau is much slower -- 1/20th in original temp, and 1/60th in standard 37 C temp TauMax float32 `default:"1000"` // temperature adjustment factor: assume temp = 37 C, whereas original units were at 23 C Tadj float32 `display:"-" edit:"-"` // 1/Tau DtMax float32 `display:"-" edit:"-"` // contains filtered or unexported fields }
MahpParams implements an M-type medium afterhyperpolarizing (mAHP) channel, where m also stands for muscarinic due to the ACh inactivation of this channel. It has a slow activation and deactivation time constant, and opens at a lowish membrane potential. There is one gating variable n updated over time with a tau that is also voltage dependent. The infinite-time value of n is voltage dependent according to a logistic function of the membrane potential, centered at Voff with slope Vslope.
func (*MahpParams) DNFromV ¶
func (mp *MahpParams) DNFromV(v, n float32) float32
DNFromV returns the change in gating factor N based on normalized Vm
func (*MahpParams) EFun ¶
func (mp *MahpParams) EFun(z float32) float32
EFun handles singularities in an elegant way -- from Mainen impl
func (*MahpParams) GmAHP ¶
func (mp *MahpParams) GmAHP(v float32, n *float32) float32
GmAHP returns the conductance as a function of n
func (*MahpParams) NinfTauFromV ¶
func (mp *MahpParams) NinfTauFromV(vbio float32, ninf, tau *float32)
NinfTauFromV returns the target infinite-time N gate value and voltage-dependent time constant tau, from vbio
func (*MahpParams) NinfTauFromVnorm ¶
func (mp *MahpParams) NinfTauFromVnorm(v float32, ninf, tau *float32)
NinfTauFromV returns the target infinite-time N gate value and voltage-dependent time constant tau, from normalized vm
func (*MahpParams) ShouldDisplay ¶
func (mp *MahpParams) ShouldDisplay(field string) bool
func (*MahpParams) Update ¶
func (mp *MahpParams) Update()
type NMDAParams ¶
type NMDAParams struct { // overall multiplier for strength of NMDA current -- multiplies GnmdaSyn to get net conductance. Gbar float32 `default:"0,0.006,0.007"` // decay time constant for NMDA channel activation -- rise time is 2 msec and not worth extra effort for biexponential. 30 fits the Urakubo et al (2008) model with ITau = 100, but 100 works better in practice is small networks so far. Tau float32 `default:"30,50,100,200,300"` // decay time constant for NMDA channel inhibition, which captures the Urakubo et al (2008) allosteric dynamics (100 fits their model well) -- set to 1 to eliminate that mechanism. ITau float32 `default:"1,100"` // magnesium ion concentration: Brunel & Wang (2001) and Sanders et al (2013) use 1 mM, based on Jahr & Stevens (1990). Urakubo et al (2008) use 1.5 mM. 1.4 with Voff = 5 works best so far in large models, 1.2, Voff = 0 best in smaller nets. MgC float32 `default:"1:1.5"` // offset in membrane potential in biological units for voltage-dependent functions. 5 corresponds to the -65 mV rest, -45 threshold of the Urakubo et al (2008) model. 5 was used before in a buggy version of NMDA equation -- 0 is new default. Voff float32 `default:"0"` // rate = 1 / tau Dt float32 `display:"-" json:"-" xml:"-"` // rate = 1 / tau IDt float32 `display:"-" json:"-" xml:"-"` // MgFact = MgC / 3.57 MgFact float32 `display:"-" json:"-" xml:"-"` }
NMDAParams control the NMDA dynamics, based on Jahr & Stevens (1990) equations which are widely used in models, from Brunel & Wang (2001) to Sanders et al. (2013). The overall conductance is a function of a voltage-dependent postsynaptic factor based on Mg ion blockage, and presynaptic Glu-based opening, which in a simple model just increments
func (*NMDAParams) CaFromV ¶
func (np *NMDAParams) CaFromV(v float32) float32
CaFromV returns the calcium current factor as a function of normalized membrane potential -- this factor is needed for computing the calcium current * MgGFromV
func (*NMDAParams) CaFromVbio ¶
func (np *NMDAParams) CaFromVbio(vbio float32) float32
CaFromVbio returns the calcium current factor as a function of biological membrane potential -- this factor is needed for computing the calcium current * MgGFromV. This is the same function used in VGCC for their conductance factor. based on implementation in Urakubo et al (2008). http://kurodalab.bs.s.u-tokyo.ac.jp/info/STDP/
func (*NMDAParams) Defaults ¶
func (np *NMDAParams) Defaults()
func (*NMDAParams) Gnmda ¶
func (np *NMDAParams) Gnmda(nmda, vm float32) float32
Gnmda returns the NMDA net conductance from nmda Glu binding and Vm including the GBar factor
func (*NMDAParams) MgGFromV ¶
func (np *NMDAParams) MgGFromV(v float32) float32
MgGFromV returns the NMDA conductance as a function of normalized membrane potential based on Mg ion blocking
func (*NMDAParams) MgGFromVbio ¶
func (np *NMDAParams) MgGFromVbio(vbio float32) float32
MgGFromVbio returns the NMDA conductance as a function of biological membrane potential based on Mg ion blocking Using parameters from Brunel & Wang (2001) see also Urakubo et al (2008)
func (*NMDAParams) NMDASyn ¶
func (np *NMDAParams) NMDASyn(nmda, raw float32) float32
NMDASyn returns the updated synaptic NMDA Glu binding based on new raw spike-driven Glu binding.
func (*NMDAParams) ShouldDisplay ¶
func (np *NMDAParams) ShouldDisplay(field string) bool
func (*NMDAParams) SnmdaFromSpike ¶
func (np *NMDAParams) SnmdaFromSpike(spike float32, snmdaO, snmdaI *float32)
SnmdaFromSpike updates sender-based NMDA channel opening based on neural spiking using the inhibition and decay factors. These dynamics closely match the Urakubo et al (2008) allosteric NMDA receptor behavior, with ITau = 100, Tau = 30
func (*NMDAParams) Update ¶
func (np *NMDAParams) Update()
func (*NMDAParams) VFactors ¶
func (np *NMDAParams) VFactors(v float32, mgg, cav *float32)
VFactors returns MgGFromV and CaFromV based on normalized membrane potential. Just does the voltage conversion once.
type SKCaParams ¶
type SKCaParams struct { // overall strength of sKCa current -- inactive if 0 Gbar float32 `default:"0,2,3"` // 50% Ca concentration baseline value in Hill equation -- set this to level that activates at reasonable levels of SKCaR C50 float32 `default:"0.4,0.5"` // K channel gating factor activation time constant -- roughly 5-15 msec in literature ActTau float32 `default:"15"` // K channel gating factor deactivation time constant -- roughly 30-50 msec in literature DeTau float32 `default:"30"` // proportion of CaIn intracellular stores that are released per spike, going into CaR KCaR float32 `default:"0.4,0.8"` // SKCaR released calcium decay time constant CaRDecayTau float32 `default:"150,200"` // level of time-integrated spiking activity (CaSpkD) below which CaIn intracelluar stores are replenished -- a low threshold can be used to require minimal activity to recharge -- set to a high value (e.g., 10) for constant recharge. CaInThr float32 `default:"0.01"` // time constant in msec for storing CaIn when activity is below CaInThr CaInTau float32 `default:"50"` // rate = 1 / tau ActDt float32 `display:"-" json:"-" xml:"-"` // rate = 1 / tau DeDt float32 `display:"-" json:"-" xml:"-"` // rate = 1 / tau CaRDecayDt float32 `display:"-" json:"-" xml:"-"` // rate = 1 / tau CaInDt float32 `display:"-" json:"-" xml:"-"` }
SKCaParams describes the small-conductance calcium-activated potassium channel, activated by intracellular stores in a way that drives pauses in firing, and can require inactivity to recharge the Ca available for release. These intracellular stores can release quickly, have a slow decay once released, and the stores can take a while to rebuild, leading to rapidly triggered, long-lasting pauses that don't recur until stores have rebuilt, which is the observed pattern of firing of STNp pausing neurons. CaIn = intracellular stores available for release; CaR = released amount from stores CaM = K channel conductance gating factor driven by CaR binding, computed using the Hill equations described in Fujita et al (2012), Gunay et al (2008) (also Muddapu & Chakravarthy, 2021): X^h / (X^h + C50^h) where h ~= 4 (hard coded)
func (*SKCaParams) CaInRFromSpike ¶
func (sp *SKCaParams) CaInRFromSpike(spike, caD float32, caIn, caR *float32)
CaInRFromSpike updates CaIn, CaR from Spiking and CaD time-integrated spiking activity
func (*SKCaParams) Defaults ¶
func (sp *SKCaParams) Defaults()
func (*SKCaParams) MAsympGW06 ¶
func (sp *SKCaParams) MAsympGW06(cai float32) float32
MAsympGW06 gives the asymptotic (driving) gating factor M as a function of CAi for the GilliesWillshaw06 equation version -- not used by default. this is a log-saturating function
func (*SKCaParams) MAsympHill ¶
func (sp *SKCaParams) MAsympHill(cai float32) float32
MAsympHill gives the asymptotic (driving) gating factor M as a function of CAi for the Hill equation version used in Fujita et al (2012)
func (*SKCaParams) MFromCa ¶
func (sp *SKCaParams) MFromCa(caR, mcur float32) float32
MFromCa returns updated m gating value as a function of current CaR released Ca and the current m gating value, with activation and deactivation time constants.
func (*SKCaParams) ShouldDisplay ¶
func (sp *SKCaParams) ShouldDisplay(field string) bool
func (*SKCaParams) Update ¶
func (sp *SKCaParams) Update()
type SahpParams ¶
type SahpParams struct { // strength of sAHP current Gbar float32 `default:"0.05,0.1"` // time constant for integrating Ca across theta cycles CaTau float32 `default:"5,10"` // integrated Ca offset (threshold) for infinite time N gating function -- where the gate is at 50% strength Off float32 `default:"0.8"` // slope of the infinite time logistic gating function Slope float32 `default:"0.02"` // maximum slow rate time constant in msec for activation / deactivation. The effective Tau is much slower -- 1/20th in original temp, and 1/60th in standard 37 C temp TauMax float32 `default:"1"` // 1/Tau CaDt float32 `display:"-" edit:"-"` // 1/Tau DtMax float32 `display:"-" edit:"-"` // contains filtered or unexported fields }
SahpParams implements a slow afterhyperpolarizing (sAHP) channel, It has a slowly accumulating calcium value, aggregated at the theta cycle level, that then drives the logistic gating function, so that it only activates after a significant accumulation. After which point it decays. For the theta-cycle updating, the normal m-type tau is all within the scope of a single theta cycle, so we just omit the time integration of the n gating value, but tau is computed in any case.
func (*SahpParams) CaInt ¶
func (mp *SahpParams) CaInt(caInt, ca float32) float32
CaInt returns the updated time-integrated Ca value from current value and current Ca
func (*SahpParams) DNFromV ¶
func (mp *SahpParams) DNFromV(ca, n float32) float32
DNFromCa returns the change in gating factor N based on integrated Ca Omit this and just use ninf directly for theta-cycle updating.
func (*SahpParams) EFun ¶
func (mp *SahpParams) EFun(z float32) float32
EFun handles singularities in an elegant way -- from Mainen impl
func (*SahpParams) GsAHP ¶
func (mp *SahpParams) GsAHP(n float32) float32
GsAHP returns the conductance as a function of n
func (*SahpParams) NinfTauFromCa ¶
func (mp *SahpParams) NinfTauFromCa(ca float32, ninf, tau *float32)
NinfTauFromCa returns the target infinite-time N gate value and time constant tau, from integrated Ca value
func (*SahpParams) ShouldDisplay ¶
func (mp *SahpParams) ShouldDisplay(field string) bool
func (*SahpParams) Update ¶
func (mp *SahpParams) Update()
type VGCCParams ¶
type VGCCParams struct { // strength of VGCC current -- 0.12 value is from Urakubo et al (2008) model -- best fits actual model behavior using axon equations (1.5 nominal in that model), 0.02 works better in practice for not getting stuck in high plateau firing Gbar float32 `default:"0.02,0.12"` // calcium from conductance factor -- important for learning contribution of VGCC Ca float32 `default:"25"` // contains filtered or unexported fields }
VGCCParams control the standard L-type Ca channel All functions based on Urakubo et al (2008). Source code available at http://kurodalab.bs.s.u-tokyo.ac.jp/info/STDP/Urakubo2008.tar.gz. In particular look at the file MODEL/Poirazi_cell/CaL.g.
func (*VGCCParams) CaFromG ¶
func (np *VGCCParams) CaFromG(v, g, ca float32) float32
CaFromG returns the Ca from Gvgcc conductance, current Ca level, and normalized membrane potential.
func (*VGCCParams) DMHFromV ¶
func (np *VGCCParams) DMHFromV(v, m, h float32, dm, dh *float32)
DMHFromV returns the change at msec update scale in M, H factors as a function of V normalized (0-1)
func (*VGCCParams) Defaults ¶
func (np *VGCCParams) Defaults()
func (*VGCCParams) GFromV ¶
func (np *VGCCParams) GFromV(v float32) float32
GFromV returns the VGCC conductance as a function of normalized membrane potential Based on Urakubo's calculation of `max` in CaL.g in the section commented 'i gate'.
func (*VGCCParams) Gvgcc ¶
func (np *VGCCParams) Gvgcc(vm, m, h float32) float32
Gvgcc returns the VGCC net conductance from m, h activation and vm
func (*VGCCParams) HFromV ¶
func (np *VGCCParams) HFromV(vbio float32) float32
HFromV returns the H gate function from vbio (not normalized, must not exceed 0) Based on Urakubo's calculation of `max` in CaL.g in the section commented 'h gate'.
func (*VGCCParams) MFromV ¶
func (np *VGCCParams) MFromV(vbio float32) float32
MFromV returns the M gate function from vbio (not normalized, must not exceed 0). Based on Urakubo's calculation of `max` in CaL.g in the section commented 'm gate'.
func (*VGCCParams) ShouldDisplay ¶
func (np *VGCCParams) ShouldDisplay(field string) bool
func (*VGCCParams) Update ¶
func (np *VGCCParams) Update()
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
ak_plot plots an equation updating over time in a table.Table and PlotView.
|
ak_plot plots an equation updating over time in a table.Table and PlotView. |
gabab_plot plots an equation updating over time in a table.Table and PlotView.
|
gabab_plot plots an equation updating over time in a table.Table and PlotView. |
kir_plot plots an equation updating over time in a table.Table and PlotView.
|
kir_plot plots an equation updating over time in a table.Table and PlotView. |
mahp_plot plots an equation updating over time in a table.Table and PlotView.
|
mahp_plot plots an equation updating over time in a table.Table and PlotView. |
nmda_plot plots an equation updating over time in a table.Table and PlotView.
|
nmda_plot plots an equation updating over time in a table.Table and PlotView. |
sahp_plot plots an equation updating over time in a table.Table and PlotView.
|
sahp_plot plots an equation updating over time in a table.Table and PlotView. |
ska_plot plots an equation updating over time in a table.Table and PlotView.
|
ska_plot plots an equation updating over time in a table.Table and PlotView. |
vgcc_plot plots an equation updating over time in a table.Table and PlotView.
|
vgcc_plot plots an equation updating over time in a table.Table and PlotView. |