connection of two neurons
Posted: Tue Apr 12, 2011 2:43 pm
Please tell me what is the error?
The code below has a template with soma, axon, apicular and basilar dendrite. Two copies of this template are made to get two neurons. Here one neuron ca[0] is the source neuron and ca[1] is the target neuron. I have connected the two neurons in one direction only, i.e axon of source neuron ca[0] is connected to the apicular dendrite of target neuron ca[1]. This connection is done with the help of netcon object. But when I plot a graph using gui and plot what for basilar dendrite of ca[1](target)which is not connected I still get an action potential value. Why does this happen ?
The code below has a template with soma, axon, apicular and basilar dendrite. Two copies of this template are made to get two neurons. Here one neuron ca[0] is the source neuron and ca[1] is the target neuron. I have connected the two neurons in one direction only, i.e axon of source neuron ca[0] is connected to the apicular dendrite of target neuron ca[1]. This connection is done with the help of netcon object. But when I plot a graph using gui and plot what for basilar dendrite of ca[1](target)which is not connected I still get an action potential value. Why does this happen ?
Code: Select all
load_file("nrngui.hoc")
begintemplate CA1
public soma, axon, ap_dend, ba_dend, as, bs
create soma, axon, ap_dend, ba_dend
objref as,bs
proc init(){
soma{
L = 20
soma.diam = 20
soma.nseg = 10
soma insert hh
}
axon{
L= 50
diam = 1
nseg = 10
insert hh
gnabar_hh = 0.012
gkbar_hh = 0.0036
gl_hh = 0.00003
}
ap_dend{
L = 5
diam = 4
nseg = 10
insert pas
//~ insert hh
//~ gnabar_hh = 0.012
//~ gkbar_hh = 0.0036
//~ gl_hh = 0.00003
}
ba_dend{
L = 200
diam = 0.8
nseg = 10
insert pas
//~ insert hh
//~ gnabar_hh = 0.012
//~ gkbar_hh = 0.0036
//~ gl_hh = 0.00003
}
connect ap_dend(0),soma(1)
connect ba_dend(0),soma(1)
connect axon(0),soma(0)
ap_dend as= new Exp2Syn(0.5)
as.tau1 = 0.5
as.tau2 = 0.5
as.e=0
//~ ba_dend bs= new Exp2Syn(0.5)
//~ bs.tau1 = 0.5
//~ bs.tau2 = 0.5
//~ bs.e=0
}
endtemplate CA1
objref ca[2]
ca[0]= new CA1()
ca[1] = new CA1()
objref stim
ca[0].soma stim= new IClamp(0.5)
stim.del = 10
stim.dur = 5
stim.amp = 15
stim.i = 0
objref nclist
nclist = new List()
ca[0].axon nclist.append(new NetCon(&v(0.5),ca[1].as,10,1,0.02))
//~ ca[0].axon nclist.append(new NetCon(&v(0.5),ca[1].bs,10,1,0.02))
tstop =100
dt = 0.01
v_init = -65
//~ finitialize(v_init)
//~ fcurrent()