neat.MorphTree.distances_to_soma

MorphTree.distances_to_soma(loc_arg, recompute=False)[source]

Compute the distance of each location in a given set to the soma

Parameters:

loc_arg (list of locations or string) – if list of locations, specifies the locations, if str, specifies the name under which the set of location is stored that should be used to create the new tree

Returns:

  • np.array of float – the distances to the soma of the corresponding locations

  • recompute (bool (optional)) – whether or not to force recomputing the distances