Documentation
¶
Overview ¶
Package knadapt provides code for 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). Multiple different time constants have been identified and this implementation supports 3: M-type (fast), Slick (medium), and Slack (slow)
Here's a good reference:
Kaczmarek, L. K. (2013). Slack, Slick, and Sodium-Activated Potassium Channels. ISRN Neuroscience, 2013. https://doi.org/10.1155/2013/354262
This package supports both spiking and rate-coded activations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chan ¶
type Chan struct { // if On, use this component of K-Na adaptation On bool `desc:"if On, use this component of K-Na adaptation"` // [viewif: On] Rise rate of fast time-scale adaptation as function of Na concentration -- directly multiplies -- 1/rise = tau for rise rate Rise float32 `` /* 143-byte string literal not displayed */ // [viewif: On] Maximum potential conductance of fast K channels -- divide nA biological value by 10 for the normalized units here Max float32 `` /* 133-byte string literal not displayed */ // [viewif: On] time constant in cycles for decay of adaptation, which should be milliseconds typically (roughly, how long it takes for value to change significantly -- 1.4x the half-life) Tau float32 `` /* 191-byte string literal not displayed */ // [view: -] 1/Tau rate constant Dt float32 `view:"-" desc:"1/Tau rate constant"` }
Chan describes one channel type of sodium-gated adaptation, with a specific set of rate constants.
func (*Chan) GcFmRate ¶
GcFmRate updates the KNa conductance based on rate-coded activation. act should already have the compensatory rate multiplier prior to calling.
type Params ¶
type Params struct { // if On, apply K-Na adaptation On bool `desc:"if On, apply K-Na adaptation"` // [def: 0.8] [viewif: On] extra multiplier for rate-coded activations on rise factors -- adjust to match discrete spiking Rate float32 `viewif:"On" def:"0.8" desc:"extra multiplier for rate-coded activations on rise factors -- adjust to match discrete spiking"` // [view: inline] fast time-scale adaptation Fast Chan `view:"inline" desc:"fast time-scale adaptation"` // [view: inline] medium time-scale adaptation Med Chan `view:"inline" desc:"medium time-scale adaptation"` // [view: inline] slow time-scale adaptation Slow Chan `view:"inline" desc:"slow time-scale adaptation"` }
Params describes sodium-gated potassium channel adaptation mechanism. Evidence supports at least 3 different time constants: M-type (fast), Slick (medium), and Slack (slow)
func (*Params) GcFmRate ¶
GcFmRate updates all time scales of KNa adaptation from rate code activation