Template¶
A Template is the reference image that defines (or is rigidly/affinely aligned to) a Coordinate Space. It serves as the anatomical backdrop for annotation, registration, and visualization.
Directory Structure¶
templates/
└── <template_name>/
└── <version>/
├── data_description.json (REQUIRED)
├── manifest.json (REQUIRED)
├── processing.json (REQUIRED IF COMPUTED)
├── template.ome.zarr (REQUIRED)
└── template_{resolution}.nii.gz (OPTIONAL)
Naming Convention¶
<template_name> = <organization>-<age>-<species>-<modality>-<technique>-template
Examples:
allen-adult-mouse-spim-lca-templateallen-adult-mouse-stpt-template
Files¶
template.ome.zarrOME-Zarr >= 0.5
Coordinate transformations + orientation present
Millimeter units
template.nii.gzMillimeter units
Correct affine orientation (RAS recommended)
data_description.jsonaind_data_schema >= 2.0
manifest.jsonReferences the Coordinate Space this template defines or is aligned to. Minimal required keys (draft):
coordinate_space– object withnameandversionalignment– this template’s relationship to the Coordinate Space:defining(the template defines the space) oraligned(rigidly/affinely aligned to it)created– ISO 8601 date/timeschema_version– version of the manifest contract
processing.jsonAveraging / registration methods; reference datasets
Validation Rules¶
OME-Zarr multiscales metadata valid and consistent (scale factors monotonic).
Anatomical orientation and coordinate transformations are defined and consistent across provided formats.
No missing scale levels referenced by transformations.
The Coordinate Space referenced in
manifest.json(matching name and version) must exist.
Versioning¶
Increment version when any of:
Source cohort or specimens change
Registration pipeline changes materially
Spatial resolution or orientation/origin changes
Intensity normalization method changes (affecting comparability)
Define a new template when:
Species or age group changes
Imaging modality or technique changes