:mod:`neuron_morphology.features.soma` ====================================== .. py:module:: neuron_morphology.features.soma Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: neuron_morphology.features.soma.calculate_soma_surface neuron_morphology.features.soma.calculate_relative_soma_depth neuron_morphology.features.soma.calculate_soma_features neuron_morphology.features.soma.calculate_stem_exit_and_distance .. function:: calculate_soma_surface(data: Data) -> float Approximates the surface area of the soma. Morphologies with only a single soma node are supported. :Parameters: **data: Data Object containing a morphology** .. :Returns: Scalar value .. .. !! processed by numpydoc !! .. function:: calculate_relative_soma_depth(data: Data) -> float Calculate the soma depth relative to pia/wm :Parameters: **data: Data Object containing a morphology** .. :Returns: Scalar value .. .. !! processed by numpydoc !! .. function:: calculate_soma_features(data: Data) Calculate the soma features :Parameters: **data: Data Object containing a morphology** .. :Returns: soma_features .. .. !! processed by numpydoc !! .. function:: calculate_stem_exit_and_distance(data: Data, node_types: Optional[List[int]], z_scale=3.0) Returns the relative radial position (stem_exit) on the soma where the tree holding the tree connects to the soma. 0 is on the bottom, 1 on the top, and 0.5 out a side. Also returns the distance (stem_distance) between the tree root and the soma surface. :Parameters: **data: Data Object containing a morphology** .. **soma: dict** .. **soma node** .. **node_types: list (AXON, BASAL_DENDRITE, APICAL_DENDRITE)** .. **Type to restrict search to** .. :Returns: (float, float): .. First value is relative position (height, on [0,1]) of a .. tree on soma. Second value is distance of the root from soma .. .. !! processed by numpydoc !!