nimare.utils.get_template

get_template(space='mni152_2mm', mask=None)[source]

Load template file.

Changed in version 0.0.11:

  • Remove the mask="gm" option.

  • Replace the nilearn templates with ones downloaded directly from TemplateFlow.

Parameters:
  • space ({'mni152_1mm', 'mni152_2mm', 'ale_2mm'}, optional) –

    Template to load. Default is ‘mni152_2mm’. The options are:

    • mni152_1mm: The MNI152NLin6Asym template at 1mm3 resolution, downloaded from TemplateFlow. The shape of this template is 182x218x182 voxels.

    • mni152_2mm: The MNI152NLin6Asym template at 2mm3 resolution, downloaded from TemplateFlow. The shape of this template is 91x109x91 voxels.

    • ale_2mm: The template used is the MNI152NLin6Asym template at 2mm3 resolution, but if mask='brain', then a brain mask taken from GingerALE will be used. The brain mask corresponds to GingerALE’s “more conservative” mask. The shape of this template is 91x109x91 voxels.

  • mask ({None, 'brain'}, optional) – Whether to return the raw T1w template (None) or a brain mask (‘brain’). Default is None.

Returns:

img – Template image object.

Return type:

Nifti1Image