Code: Select all
loading membrane mechanisms from /Users/audreyburke/Documents/Grill/Copy (2) of Otsuka STN/i686/.libs/libnrnmech.so
dlopen failed -
dlopen(/Users/audreyburke/Documents/Grill/Copy (2) of Otsuka STN/i686/.libs/libnrnmech.so, 2): Symbol not found: _ss
Referenced from: /Users/audreyburke/Documents/Grill/Copy (2) of Otsuka STN/i686/.libs/libnrnmech.so
Expected in: flat namespace
1
/Applications/NEURON-5.9/nrn/i686/bin/nrniv.app/Contents/MacOS/nrniv: parse error
in start_STN.hoc near line 6
insert kv3 ek=-90
^
Code: Select all
load_file("nrngui.hoc")
create stn
stn {nseg=1 diam=5.5 L= 100/(PI*diam)
Ra= 300 cm=100
insert kv3 ek=-90
insert atypeK ek=-90
insert nacurrent ena=60
insert LlikeCa
insert TtypeCa
insert Calc
insert caK ek=-90
insert leak el=-60}
access stn
dt = 0.0125
tstop = 1000
Code: Select all
NEURON {
SUFFIX kv3
USEION k READ ek WRITE ik
RANGE gk_bar, ik, n_inf
}
UNITS {
(S) = (siemens)
(mV) = (millivolts)
(mA) = (milliamps)
(mmA) = (microamps)
(M) = (moles/liter)
}
PARAMETER {
gk_bar = 57 : mS/cm^2, K conductance
ek = -90 : mV, K Nernst potential
theta_n = -41 : mV, K half-activation voltage
k_n = -14 : mV, K activation slope
tau0_n = 0 : ms, K time constant activation minimum
tau1_n = 11 : ms, K time constant activation gain
theta_tau1n = -40 : mV, K time constant - half-activation voltage
sigma1_n = -40 : mV, K time constant - activation slope
theta_tau2n = -40 : mV, K time constant + half-activation voltage
sigma2_n = 50 : mV, K time constant + activation slope
}
ASSIGNED {
v (mv)
ik (mA/cm2)
n_inf
tau_n
}
STATE { n }
BREAKPOINT {
SOLVE states METHOD cnexp
ss()
ik = gk_bar * n^4 * (v - ek)
}
INITIAL {
ss()
n = n_inf
}
DERIVATIVE states {
n' = (n_inf - n) / tau_n
}
PROCEDURE ss() {
n_inf = w_inf(v,theta_n,k_n)
tau_n = tau_ws(v,tau0_n,tau1_n,theta_tau1n,sigma1_n,theta_tau2n,sigma2_n)
}
FUNCTION w_inf (Vm (mV), theta, kk) {
UNITSOFF
w_inf = 1 / (1 + exp((Vm-theta)/kk))
UNITSON
}
FUNCTION tau_wf (Vm (mv), tau0, tau1, theta_tau, sigma) {
UNITSOFF
tau_wf = tau0 + tau1 / (1 + exp((theta_tau-Vm)/sigma))
UNITSON
}
FUNCTION tau_ws (Vm (mV), tau0, tau1, theta_tau1, sigma1, theta_tau2, sigma2) {
UNITSOFF
tau_ws = tau0 + tau1 / (exp((theta_tau1-Vm)/sigma1) + exp((theta_tau2-Vm)/sigma2))
UNITSON
}
Any help would be greatly appreciated. Thanks!