Load harmonized subcortical atlases via TemplateFlow
Source:R/subcortical_atlases.R
get_subcortical_atlas.RdFetches one of the AtlasPack-derived subcortical atlases (CIT168, HCP thalamus, MDTB10 cerebellum, or HCP hippocampus/amygdala) using the existing TemplateFlow integration. The returned object includes the source template space and resolution so downstream workflows can track provenance.
Usage
get_subcortical_atlas(
name,
template_space = NULL,
resolution = NULL,
desc = NULL,
outspace = NULL,
use_cache = TRUE,
path_only = FALSE,
...
)Arguments
- name
Atlas identifier; see
subcortical_atlas_options(). Aliases such as "thalamus_hcp" or "cerebellum" are accepted.- template_space
TemplateFlow space to download (e.g.,
"MNI152NLin6Asym"or"MNI152NLin2009cAsym"). Defaults to the atlas-specific recommended space.- resolution
TemplateFlow resolution (e.g., "01"). Defaults to the atlas recommendation; validated against known options for the atlas.
- desc
Optional TemplateFlow
descto override the atlas default (e.g., "LRSplit" for CIT168 hemispheric split).- outspace
Optional
NeuroSpaceor TemplateFlow query (string/list) to resample the atlas into a different space.- use_cache
Logical; pass through to
get_template.- path_only
Logical; if TRUE, return paths to the atlas/label files plus metadata instead of loading into R objects.
- ...
Additional arguments forwarded to
get_template.
Value
When path_only=FALSE (default), a list with classes
c("subcortical", "atlas") containing:
name: human-friendly atlas nameatlas:ClusteredNeuroVolwith parcellation labelsids: integer vector of region IDslabels: character vector of region labelsorig_labels: same aslabelshemi: inferred hemisphere labels when availablecmap: optional RGB mapping if provided by the label filespace,resolution,desc: TemplateFlow metadatatemplate_atlas: TemplateFlowatlasparameter used
When path_only=TRUE, a list with class
c("subcortical_paths","list") containing atlas_path,
label_path, and the same metadata fields above.