skeleton_keys.layer_alignment.layer_aligned_y_values_for_morph#

skeleton_keys.layer_alignment.layer_aligned_y_values_for_morph(morph, avg_layer_depths, layer_list, depth_field, gradient_field, snapped_polys_surfs)#

Point depths for a morphology aligned to a set of layer thicknesses.

Parameters:
  • morph (Morphology) – Morphology object

  • avg_layer_depths (dict) – Dictionary of distances from top of layer to pia (in microns)

  • layer_list (dict) – List of layers

  • depth_field (xarray DataArray) – Data array of the depth field

  • gradient_field (xarray DataArray) – Data array of the depth field

  • snapped_polys_surfs (dict) – Dictionary of surface and layer drawings

Returns:

y_values – Dictionary of node ids (keys) and layer-aligned depths (values)

Return type:

dict