nispace.datasets.fetch_template#
- nispace.datasets.fetch_template(template='MNI152NLin2009cAsym', res=None, desc=None, hemi=['L', 'R'], nispace_data_dir=None, overwrite=False, check_file_hash=True, verbose=True)[source]#
Fetch a brain template.
- Parameters:
template (str, optional) – The template to fetch. Default is “MNI152NLin2009cAsym”.
res (str, optional) – The resolution of the template to fetch. If None, will default to “1mm” for MNI152 and “10k” for fsaverage.
desc (str, optional) – The description of the template to fetch. If None, will default to “T1w” for MNI152 and “pial” for fsaverage.
hemi (list of str, optional) – The hemispheres to fetch. Default is [“L”, “R”].
nispace_data_dir (str or pathlib.Path, optional) – The directory containing the NiSpace data. Default is None.
overwrite (bool) –
check_file_hash (bool) –
verbose (bool) –
- Return type:
The template.