biophysics_fitting
❭ utils
❭ get_inner_sec_dist_dict
get_inner_sec_dist_dict¶
- biophysics_fitting.utils.get_inner_sec_dist_dict(cell, beyond_dist=1000, beyond_struct=['ApicalDendrite'], n_children_required=1)¶
Get sections that connect to specific structures beyond a minimum distance.
Fetches all sections that are connected to compartments with labels in
beyond_struct
, and that have a minimum soma distance ofbeyond_dist
. This is useful to get sections of the apical trunk of an L5PT, filtering out oblique dendrites.- Parameters:¶
cell (
Cell
) – The cell object.beyond_dist (float) – The minimum distance from the soma (um).
beyond_struct (list) – The labels of the structures to check.
n_children_required (int) – The minimum number of children required to have a connection.
- Returns:¶
A dictionary with the soma distance as key and the section as value.
- Return type:¶
dict
See also
See also:
get_inner_section_at_distance()
that returns the closest section at a specific distance, rather than all sections beyond some distance.