bluepyemodel.model.morphology_utils

Morphology utils.

Functions

get_apical_max_radial_distance(morph_path)

Returns the max radial distance of the apical dendrites.

get_apical_point_soma_distance(morph_path)

Get the euclidian distance between soma and apical point given a morphology.

get_basal_and_apical_max_radial_distances(...)

Returns the max radial distances of the apical and basal dendrites.

get_hotspot_location(morph_path[, ...])

Get hot spot begin and end in terms of soma distance.

get_apical_max_radial_distance(morph_path)

Returns the max radial distance of the apical dendrites.

get_apical_point_soma_distance(morph_path)

Get the euclidian distance between soma and apical point given a morphology.

Parameters:

morph_path (str) – path to the morphology

Returns:

euclidian distance between soma and apical point

Return type:

float

get_basal_and_apical_max_radial_distances(morph_path)

Returns the max radial distances of the apical and basal dendrites.

get_hotspot_location(morph_path, hotspot_percent=20.0)

Get hot spot begin and end in terms of soma distance.

Calcium hot spot should be in distal apical trunk, and in primary and secondary tufts, i.e. around apical point, according to Larkum and Zhu, 2002.

Attention! Apical point detection is not always accurate.

Parameters:
  • morph_path (str) – path to the morphology

  • hotspot_percent (float) – percentage of the radial apical distance that is in the hot spot. Here, we assume that the hotspot size is dependent on the apical radial distance. 20% is in accordance with experiments from Larkum and Zhu, 2002