neuromaps_mouse.regions.align_structures_allenccfv3

neuromaps_mouse.regions.align_structures_allenccfv3(acronyms_fixed, acronyms_moving, debug=False)[source]

Align moving structures to fixed structures via ancestor matching.

For each region in acronyms_moving, finds its nearest ancestor that exists in acronyms_fixed.

Parameters:
  • acronyms_fixed (array-like of str) – Target region acronyms (the fixed reference set).

  • acronyms_moving (array-like of str) – Source region acronyms to align to the fixed set.

  • debug (bool, optional) – If True, also compute descendant mappings and add them to the returned DataFrame. Default is False.

Returns:

DataFrame for moving regions with an added ‘id_ancestor_fixed’ column.

Return type:

pandas.DataFrame