neuron_morphology.features.branching.bifurcations module¶
-
neuron_morphology.features.branching.bifurcations.calculate_outer_bifs(morphology: neuron_morphology.morphology.Morphology, soma: Dict, node_types: Union[List[int], NoneType]) → int[source]¶ Counts the number of bifurcation points beyond the a sphere with 1/2 the radius from the soma to the most distant point in the morphology, with that sphere centered at the soma.
Parameters: - morphology: Describes the structure of a neuron
- soma: Must have keys “x”, “y”, and “z”, describing the position of this
morphology’s soma in
- node_types: Restrict included nodes to these types. See
neuron_morphology.constants for avaiable node types.
Returns: - the number of bifurcations