biophysics_fitting
❭ utils
❭ get_inner_section_at_distance
get_inner_section_at_distance¶
- biophysics_fitting.utils.get_inner_section_at_distance(cell, dist, beyond_dist=1000, beyond_struct=['ApicalDendrite'])¶
Get sections that connect to specific structures at a particular distance.
Fetches all sections that are connected to compartments with labels in
beyond_struct
, and that have a 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.dist (float) – The distance from the soma (um).
beyond_dist (float) – The minimum distance from the soma (um).
beyond_struct (list) – The labels of the structures to check.
- Returns:¶
The section and the relative distance from the section to the soma. Only returns the section that’s closest to the provided
dist
.- Return type:¶
tuple
See also
See also:
get_inner_sec_dist_dict()
that returns all sections beyond some distance, rather than only the closest section at a specific distance.