altering length and diameter over a subset

Managing anatomically complex model cells with the CellBuilder. Importing morphometric data with NEURON's Import3D tool or Robert Cannon's CVAPP. Where to find detailed morphometric data.
Post Reply
fabien tell
Posts: 46
Joined: Mon Mar 25, 2013 1:36 pm
Location: france
Contact:

altering length and diameter over a subset

Post by fabien tell » Fri Dec 20, 2019 9:41 am

Hello,

Just a short question: is it possible to change section length or diameter for all the sections in a subset as a whole?

I would expect to write :
if I have a subset called all_dendrite

Code: Select all

for i=1, 8  {
forsec  all_dendrite {L=L/i}

 forsec all { nseg = int((L/(0.1*lambda_f(100))+.999)/2)*2 + 1  } // to take into account the reduction in length
....

analysis()
}
I should try it but if it doesn't work I could use a loop to go through every section in a subset.

Thanks

ted
Site Admin
Posts: 5671
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: altering length and diameter over a subset

Post by ted » Sun Dec 22, 2019 9:36 pm

for i=1, 8 {
forsec all_dendrite {L=L/i} <--- you changed the length of every section in "all_dendrite"

forsec all { nseg = int((L/(0.1*lambda_f(100))+.999)/2)*2 + 1 } <--- now you're changing nseg in every section in "all"
...

analysis()
}

Post Reply