Adding extracellular stimulation to existing model
Posted: Thu Oct 05, 2017 11:00 pm
Hi -
I am attempting to add extracellular stimulation to an existing model (https://senselab.med.yale.edu/modeldb/s ... del=187473) from modelDB. I have:
1. Validated that I can reproduce the figures from the paper using the model.
2. Added "insert extracellular" and "insert xtra" into all compartments and called define_shape()
3. Added the necessary *.hoc files to the existing model
After compiling and attempting to run the model, I receive (and am stuck at) the following error:
I dug around the extracellular code and tried to hunt down the source. I commented out the calcrxc.hoc file and that at least let's me run a simulation but alas no activation of the structure. I plotted e_extracellular and see a rectangular pulse, but it's unclear to me if the structure is actually "feeling" the extracellular stim.
I am attempting to add extracellular stimulation to an existing model (https://senselab.med.yale.edu/modeldb/s ... del=187473) from modelDB. I have:
1. Validated that I can reproduce the figures from the paper using the model.
2. Added "insert extracellular" and "insert xtra" into all compartments and called define_shape()
Code: Select all
forall{
insert extracellular xraxial=1e+09 xg=1e+09 xc=0 e_extracellular=0
insert xtra
define_shape()
}
Code: Select all
load_file("nrngui.hoc")
load_file("interpxyz.hoc") // only interpolates sections that have extracellular
load_file("setpointers.hoc") // automatically calls grindaway() in interpxyz.hoc
load_file("calcrxc.hoc") // computes transfer r between segments and recording electrodes
load_file("stim.hoc") // extracellular stimulus
setelec(20000,0,0) // set position of extracellular electode
Code: Select all
na_ion mechanism not inserted in section sElec