Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

fetch_icbm152_2009

nilearn.datasets.fetch_icbm152_2009(data_dir=None, url=None, resume=True, verbose=1)[source]

Download and load the ICBM152 template (dated 2009).

For more information see the dataset description.

Nilearn MNI template

The Nilearn template is asymmetrical ICBM152 2009, release a.

The default template of fMRIPrep is the asymmetrical ICBM152 2009, release c (MNI152NLin2009cSAsym).

If you wish to use the exact same release as fMRIPrep, please refer to TemplateFlow.

Parameters:
data_dirpathlib.Path or str or None, optional

Path where data should be downloaded. By default, files are downloaded in a nilearn_data folder in the home directory of the user. See also nilearn.datasets.utils.get_data_dirs.

urlstr or None, default=None

URL of file to download. Override download URL. Used for test only (or if you setup a mirror of the data).

resumebool, default=True

Whether to resume download of a partly-downloaded file.

verbosebool or int, default=1

Verbosity level (0 or False means no message).

Returns:
datasklearn.utils.Bunch

Dictionary-like object, contains:

  • csf: str. Full path to probabilistic map for cerebrospinal fluid

  • eye_mask: str. Full path to eye mask useful to mask out part of MRI images

  • face_mask: str. Full path to face mask useful to mask out part of MRI images

  • gm: str. Full path to probabilistic map for gray matter

  • mask: str. Full path to whole brain mask useful to mask out skull areas

  • pd: str. Full path to proton density-weighted anatomical templates (non-linear average)

  • t1: str. Full path to T1-weighted anatomical template (non-linear average)

  • t2: str. Full path to T2-weighted anatomical template (non-linear average)

  • t2_relax: str. Full path to T2-weighted/relaxed anatomical template

  • wm: str. Full path to probabilistic map for white matter

See also

nilearn.datasets.load_mni152_template

to load MNI152 T1 template.

nilearn.datasets.load_mni152_gm_template

to load MNI152 gray matter template.

nilearn.datasets.load_mni152_wm_template

to load MNI152 white matter template.

nilearn.datasets.load_mni152_brain_mask

to load MNI152 whole brain mask.

nilearn.datasets.load_mni152_gm_mask

to load MNI152 gray matter mask.

nilearn.datasets.load_mni152_wm_mask

to load MNI152 white matter mask.

nilearn.datasets.fetch_icbm152_brain_gm_mask

to fetch only ICBM gray matter mask.

Notes

If the dataset files are already present in the user’s Nilearn data directory, this fetcher will not re-download them. To force a fresh download, you can remove the existing dataset folder from your local Nilearn data directory.

For more details on how Nilearn stores datasets.

Examples using nilearn.datasets.fetch_icbm152_2009

Visualizing 4D probabilistic atlas maps

Visualizing 4D probabilistic atlas maps

Visualizing global patterns with a carpet plot

Visualizing global patterns with a carpet plot

Voxel-Based Morphometry: group level analysis

Voxel-Based Morphometry: group level analysis