structure_id_path_to_string#

brainglobe_atlasapi.atlas_generation.structure_json_to_csv.structure_id_path_to_string(structure_id_path)[source]#

Convert a structure ID path list to a string.

Given a path (as a list of structure IDs) to a specific structure, return it as a string of “/” separated structure IDs.

Parameters:

structure_id_path (list of int) – A list of integers defining the hierarchical path to a region, where the last element is the ID of the region itself.

Returns:

A string with structure IDs separated by “/”. Example: “/997/8/567/”

Return type:

str