neuron_morphology.features.size module

neuron_morphology.features.size.parent_daughter_ratio_visitor(node: Dict[str, Any], morphology: neuron_morphology.morphology.Morphology, counters: Dict[str, Union[int, float]], node_types: Union[List[int], NoneType] = None)[source]

Calculates for a single node the ratio of the node’s parent’s radius to the node’s radius. Stores these values in a provided dictionary.

Parameters:
node : The node under consideration
morphology : The reconstruction to which this node belongs
counters : a dictionary used for storing running ratio totals and counts.
node_types : skip nodes not of one of these types

Notes

see mean_parent_daughter_ratio for usage