get_structure_terminal_nodes#
- brainglobe_atlasapi.atlas_generation.structures.get_structure_terminal_nodes(structures, region)[source]#
Get the terminal (leaf) child nodes of a given brain region.
Given a list of dictionaries with structures data and a specific region from that list, this function returns the IDs of all structures that are children of the given region and are also leaf nodes in the structure tree (i.e., they have no further children).
- Parameters:
structures (list of dict) – A list of dictionaries, where each dictionary represents a brain structure with its properties.
region (dict) – A dictionary representing the parent brain region, which must contain an ‘id’ key.
- Returns:
A list of integer IDs for all terminal child structures, or None if the region contains no terminal child regions.
- Return type:
list of int or None