common_region.py
BrainRegion
¶
Bases: SpyglassMixin
, Lookup
Source code in src/spyglass/common/common_region.py
fetch_add(region_name, subregion_name=None, subsubregion_name=None)
classmethod
¶
Return the region ID for names. If no match, add to the BrainRegion.
The combination of (region_name, subregion_name, subsubregion_name) is effectively unique, then.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
region_name |
str
|
The name of the brain region. |
required |
subregion_name |
str
|
The name of the subregion within the brain region. |
None
|
subsubregion_name |
str
|
The name of the subregion within the subregion. |
None
|
Returns:
Name | Type | Description |
---|---|---|
region_id |
int
|
The index of the region in the BrainRegion table. |