Skip to content

templateflow

Module: utils/templateflow

Module to fetch a population average template from TemplateFlow.

Keywords : template, population average, reference


Inputs

TypeDescriptionMandatoryPattern
templatefileTemplateFlow template name. e.g. MNI152NLin2009cAsym Refer to the TemplateFlow documentation for available templates. https://www.templateflow.org/browse/true
resintegerResolution of the template. This is optional, but will be used to fetch the template at the specified resolution and make it accessible in the output channels.false
cohortintegerCohort of the template. This is optional, but will be used to fetch the template for the specified cohort and make it accessible in the output channels.false

Outputs

TypeDescriptionPattern
folderdirectoryDirectory containing the requested template, with all available resolutions and masks/maps.
T1wfileT1w image of the requested template.
T2wfileT2w image of the requested template.
brain_maskfileBrain mask of the requested template.
label_CSFfileCSF probability map of the requested template.
label_GMfileGM probability map of the requested template.
label_WMfileWM probability map of the requested template.
metadatafileMetadata file containing information about the template.*.json
citationsfileFile containing citations for the template.*.bib
versionsfileFile containing software versionsversions.yml

Tools

DescriptionDOI
TemplateFlowTemplateFlow is a modular, version-controlled resource that allows researchers to use templates “off-the-shelf”.10.1038/s41592-022-01681-2

Authors

gagnonanthony

Maintainers

gagnonanthony


Last updated : 2025-07-15