single_cell_parsercellCellget_section_adjacancy_map

Cell.get_section_adjacancy_map

single_cell_parser.cell.Cell.get_section_adjacancy_map()

Generates a map that shows which sections are connected to which sections.

Each section is mapped to its parent sections and children sections.

Example

>>> cell.get_section_adjacancy_map()
>>> cell.section_adjacency_map[0]["parents"]
[None]  # soma has no parent sections
>>> cell.section_adjacency_map[0]["children"]
[1, 2, 3]
Returns:

a dictionary where each key is the section id, and the value is a list of adjacent section ids

Return type:

dict