How to call multiple morphologies
Posted: Tue Nov 23, 2010 12:00 pm
Dear all,
I have a problem with the following file:
I think that for some reason NEURON is not going inside the while to define TOTALDEND.
The "neurons.txt" file is just a list of neurons:
"1.hoc" and "2.hoc" are identical and with the following code:
I would really appreciate any of your suggestions.
Thanks a lot for your help,
Michele
I have a problem with the following file:
Code: Select all
load_file("nrngui.hoc")
objref general
strdef infilename
general = new File()
general.ropen("neurons.txt")
while (!general.eof()) {
general.scanstr(infilename)
xopen(infilename)
TOTALDEND = APIDENDMAX + BASDENDMAX + 3
objref dend[TOTALDEND]
index = 0
forsec "dendrite" {
dend[index] = new SectionRef()
index += 1
}
forall delete_section()
}
general.close()
The "neurons.txt" file is just a list of neurons:
Code: Select all
1.hoc
2.hoc
Code: Select all
{create axon[29]}
{create soma[3]}
{create dendrite[89]}
{create apical_dendrite[72]}
{create user5[59]}
USER5MAX = 58
APIDENDMAX = 71
BASDENDMAX = 88
Thanks a lot for your help,
Michele