Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

current-balance #1

Open
maikia opened this issue Jul 17, 2018 · 0 comments
Open

current-balance #1

maikia opened this issue Jul 17, 2018 · 0 comments

Comments

@maikia
Copy link
Owner

maikia commented Jul 17, 2018

this was temporally patched, but proper correction should be done

in full morphological models the current balance is not conserved. This is due to the difference in the way area is calculated in NEURON and NeuronEAP:

  1. in neuronEAP diameter (diam) is fixed for whole section, whereas in neuron it can change between segemetns - this is a bug and should be changed using the diam3d function

  2. taking the corrected diam and segment length still does not give the same value as the "area" function of NEURON. I don't know where the difference stems from, but from this explanation I understand that the area is interpolated from the 3d specification of the neuron (see below, [1,2])

[1] https://www.neuron.yale.edu/phpBB/viewtopic.php?f=13&t=2332&p=9207&hilit=area+calculation#p9207

Surface area calculation depends on how section geometry was specified. For sections specified with the stylized method (L & diam) all segments are treated as cylinders. For sections specified with the pt3d method (i.e. a series of detailed x,y,z,diam values, read about Geometry, pt3dadd, and related topics in the Programmer's Reference), the section is treated as a sequence of frusta (truncated cones) whose circular ends are at the xyz coordinates and have the associated diameter value.

The way the geometry works in NEURON is explained in the documentation:

[2] https://neuron.yale.edu/neuron/static/docs/help/neuron/neuron/geometry.html#Geometry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant