surface area of a whole morphology

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
mikey
Posts: 37
Joined: Mon Jun 19, 2006 3:06 pm

surface area of a whole morphology

Post by mikey »

I wonder if there is any tool that can sum up the surface area of a full morphology? As to do it manually would take an age. Thanks so much.
hines
Site Admin
Posts: 1691
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

Code: Select all

a=0
forall for (x) a += area(x)
print a
hines
Site Admin
Posts: 1691
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

I forgot to mention that the previous code fragment assumed only one cell (e.g, no acell_home_). Slightly more elaborate for a network model is the following function which returns the area of the cell containing the currently accessed section

Code: Select all

func cellarea() { local a, x   localobj cell
    cell = new SectionList()
    cell.wholetree()
    a = 0
    forsec cell for (x,0) { a += area(x) }
    return a
}

    
Post Reply