get_cable_lengths - jaybgager/tracertools GitHub Wiki
This function gets the cable lengths for a list of root ids.
Arguments:
datastack(string, mandatory)- the name of the CAVE datastack the segment IDs are from (e.g. "brain_and_nerve_cord")
seg_ids(list of integers, mandatory)- a list of segment IDs to get cable lengths for
Returns:
cable_lengths(list of floats)- a list of cable lengths for each segment in the same order as the submitted list
Example
The following code gets the cable lengths for the segments 720575941490813872 and 720575941533316995 in the brain_and_nerve_cord datastack.
INPUT:
import tracertools as tt
cable_lengths = tt.get_cable_lengths(
datastack ="brain_and_nerve_cord",
seg_ids = [
720575941490813872,
720575941533316995,
],
)
print(cable_lengths)
OUTPUT:
[1712022.370770976, 2109110.992525338]