Page 1 of 1

trace distance along dendrite

Posted: Thu Aug 02, 2007 2:47 pm
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

Re: trace distance along dendrite

Posted: Fri Aug 03, 2007 9:46 am
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.

Posted: Fri Aug 03, 2007 10:13 am
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.

Posted: Fri Aug 03, 2007 12:39 pm
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.

Posted: Wed Oct 17, 2007 4:57 pm
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]?