I think I found a way to change the properties of the different segments inside one section, however I am not sure whether indeed this is correct. I will give below an example and I would really appreciate it if someone could tell me if indeed this does what I am aiming for (changing properties in parts/segments of a section).
EXAMPLE: Let's say we have a neuron-cell in NEURON, on which we wish to insert in one axon-branch (e.g. axon[4]) different properties in 90% of its (axon[4]) length: i.e. Have from 0%-10% channel-conductance equal to 0.12, from 10%-90% we want it to be equal to 0.002, and then again from 90%-100% equal to 0.12.
MY SOLUTION : Use the range-variables, but without actually ranging them. Also, we will need to increase the nseg to have accuracy of 0.1 (nseg = 11). That is to say:
Code: Select all
axon[4].nseg = 11 // Increase accuracy for changing properties - odd number over the d_lambda suggested value
gNa1 = 0.12
gNa2 = 0.002
axon[4].gmax_naf(0:0.1) = gNa1:gNa1 // Instead of varying the gNa1 to let's say gNa2, we want it to be gNa1 for all the first 10% of the axon[4]-length
axon[4].gmax_naf(0.1:0.9) = gNa2:gNa2 // Changing properties inside the section to let's say gNa2
axon[4].gmax_naf(0.9:1) = gNa1:gNa1 // Again insert for the last 10% of the axon[4]-length gNa1 as a sodium conductance value
Code: Select all
>> axon[4].gmax_naf(0) // Result on the oc>|after enter : 0.12
>> axon[4].gmax_naf(0.1) // Result on the oc>|after enter : 0.12
>> axon[4].gmax_naf(0.2) // Result on the oc>|after enter : 0.002
>> axon[4].gmax_naf(0.5) // Result on the oc>|after enter : 0.002
>> axon[4].gmax_naf(0.9) // Result on the oc>|after enter : 0.002
>> axon[4].gmax_naf(1) // Result on the oc>|after enter : 0.12
But again I wanted to make sure the syntax is indeed accomplishing correctly what I aimed, by having indeed theses varied conductance-parts inside that one branch, in order to get correct results when tests-are performed on the cell.
Thank you very much in advance!
Best,
Makrina