geodesic_distance: Calculate the geodesic distance through an arbour between...

View source: R/neuron_morphology.R

geodesic_distanceR Documentation

Calculate the geodesic distance through an arbour between synapses.

Description

Calculate the geodesic distance through an arbour between synapses.

Usage

geodesic_distance(x, graph.distance = TRUE, Label = 1, ...)

## S3 method for class 'neuron'
geodesic_distance(x, graph.distance = TRUE, Label = 1, ...)

## S3 method for class 'neuronlist'
geodesic_distance(x, graph.distance = TRUE, Label = 1, ...)

Arguments

x

a neuron or neuronlist object.

graph.distance

logical, whether to use geodesic distance in terms of node number (TRUE) or real unit distance.

Label

defaults to 1, so distances to soma are chosen. If 7, then distance from primary neurite's branchpoint.

...

methods passed to nat::nlapply


natverse/hemibrainr documentation built on Nov. 27, 2024, 9:01 p.m.