The API needs to be able to handle hierarchical information about the regions of a dataset. Not all of these are at the most granular level (the nodes), but may instead be groupings of several nodes in the dataset.
Broadly speaking, there are multiple parts to this, that we may want to split out into sub-issues:
The API needs to be able to handle hierarchical information about the regions of a dataset. Not all of these are at the most granular level (the nodes), but may instead be groupings of several nodes in the dataset.
Broadly speaking, there are multiple parts to this, that we may want to split out into sub-issues:
Connectionsobjects should be able to read in Brainglobe hierarchical data concerning the regions of a given dataset, making this information accessible in some way through the API.node_infoattribute of the relevant objects.Connectionsclass, likecollapse_to(*regions)that takes a variable number of positional arguments and returns a version of the network where the given regions are collapsed to a single node?