neurom.analysis.morphtreeΒΆ

Basic functions used for tree analysis

These functions all depend on the internal structure of the tree or its different iteration modes.

Functions

branch_order Branching order of a tree section
compare_trees Comparison between all the nodes and their respective radii between two trees.
find_tree_type Calculates the ‘mean’ type of the tree.
get_bounding_box
returns:[[xmin, ymin, zmin],
get_tree_type Return a tree’s type
i_section_radial_dist Return an iterator of radial distances of tree sections to a given point
local_bifurcation_angle Return the opening angle between two out-going segments
n_bifurcations Return number of bifurcations in tree
n_sections Return number of sections in tree
n_segments Return number of segments in tree
n_terminations Return number of terminations in tree
partition Measures the distribution of sections to the children subtrees at each bifurcation point.
path_length Get the path length from a sub-tree to the root node
principal_direction_extent Calculate the extent of a tree, that is the maximum distance between the projections on the principal directions of the covariance matrix of the x,y,z points of the nodes of the tree.
set_tree_type Set the type of a tree as ‘type’ attribute
trunk_origin_azimuth Angle between x-axis and vector defined by (initial tree point - soma center) on the x-z plane.
trunk_origin_direction Vector of trunk origin direction defined as (initial tree point - soma center) of the tree.
trunk_origin_elevation Angle between x-axis and vector defined by (initial tree point - soma center) on the x-y half-plane.
trunk_origin_radius Radius of the first point of a tree
trunk_section_length Length of the initial tree section