Calculate geodesic distance from nodes to a neuron's primary, axon-dendrite branchpoint

distance.from.first.branchpoint(x, ...)

# S3 method for neuron
distance.from.first.branchpoint(x,
  graph.distance = TRUE, ...)

# S3 method for neuronlist
distance.from.first.branchpoint(x,
  graph.distance = TRUE, ...)

Arguments

x

a neuron/neuronlist object that has primary neurites marked (Label = 7) and soma as the root

...

Additional arguments passed to nlapply

graph.distance

whether to calculate the graph distance (default) between nodes and the primary branchpoint, or the cable length