trace distance along dendrite

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
neurite
Posts: 13
Joined: Fri Jun 22, 2007 2:06 pm
Location: Boston University

trace distance along dendrite

Post by neurite »

Hi all,

I'm aware that the distance function returns the straight line distance between two points, but are there any functions built into neuron that would allow me to trace and return the distance along a dendrite?

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

Re: trace distance along dendrite

Post by ted »

neurite wrote:I'm aware that the distance function returns the straight line distance between two points
Did you read that somewhere? The documentation
http://www.neuron.yale.edu/neuron/stati ... l#distance
says
"Compute the path distance between two points on a neuron."
but perhaps something different is posted elsewhere on the WWW.

If this needs disambiguation, create a model with known structure and use it to discover
what value distance returns. This

Code: Select all

create soma
access soma
pt3dclear()
pt3dadd(0,0,0,1)
pt3dadd(10,0,0,1)
pt3dadd(0,1,0,1)
distance()
sets up a single section model cell with 0 end at (0,0,0), midpoint at (10,0,0), and 1 end
at (0,1,0), and specifies that the 0 end of this model is the origin for distance measurements. If your interpretation is correct, distance(1) should return a value of 1.
neurite
Posts: 13
Joined: Fri Jun 22, 2007 2:06 pm
Location: Boston University

Post by neurite »

Thanks Ted, that means I don't have to change things in the code I wrote after all. I do remember reading, although not from the documentation itself, about distance tracing a straight line distance. Perhaps what I read was worded poorly or I just misinterpreted it, but next time I will make sure double check in the documentation. Thanks again.
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

that means I don't have to change things in the code I wrote after all.
For the benefit of future readers of this thread: distance(1) will return 20 (the path distance
from the soma's 1 end to its 0 end), not 1 (the pythagorean, or "straight line," distance
between (0,1,0) and (0,0,0)).
I do remember reading, although not from the documentation itself, about distance tracing a straight line distance.
It would be helpful to know the source so that the statement can be corrected. The official
documentation itself is not always as explicit as it could be, so that some statements may
be subject to alternative interpretations. In such cases, it is often easiest to discover the
correct interpretation by constructing a simple test program that produces an unambiguous
result.
thats_karlo

Post by thats_karlo »

This was an old posted topic, but i have a new question;

how we can measure the distance between a point on the neuron from soma? In other words, do we have a function in Neuron that returns the distance,"straight line", e.g, between soma and dend10[7]?
Post Reply