registry
lacuna.assets.masks.registry
¶
Brain mask registry.
Binary brain masks per coordinate space and resolution. The masks are the
TemplateFlow desc-brain masks, redistributed via OSF (https://osf.io/yz9mb/)
and downloaded (with SHA-256 verification) and cached on first use. They define
the in-brain voxels for operations that need one — e.g. extracting the GSP1000
functional connectome on the MNI152NLin6Asym 2 mm grid.
BrainMaskMetadata
dataclass
¶
Bases: SpatialAssetMetadata
Metadata for a binary brain mask.
Attributes:
| Name | Type | Description |
|---|---|---|
space |
str
|
Coordinate space (e.g. "MNI152NLin6Asym"). |
resolution |
float
|
Voxel resolution in mm (1.0 or 2.0). |
url |
str
|
Download URL (fetched and cached on first use). |
sha256 |
str
|
Expected SHA-256 of the file (verified on download). |
source |
str
|
Origin of the mask data. |