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.
nilearn.datasets.fetch_atlas_yeo_2011¶
- nilearn.datasets.fetch_atlas_yeo_2011(data_dir=None, url=None, resume=True, verbose=1, n_networks=None, thickness=None)[source]¶
Download and return file names for the Yeo 2011 parcellation.
This function retrieves the so-called yeo deterministic atlases. The provided images are in MNI152 space and have shapes equal to
(256, 256, 256, 1)
. They contain consecutive integers values from 0 (background) to either 7 or 17 depending on the atlas version considered.For more information on this dataset’s structure, see Cortical Parcellation Estimated by Intrinsic Functional Connectivity[1], and Thomas Yeo et al.[2].
- Parameters:
- data_dir
pathlib.Path
orstr
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 alsonilearn.datasets.utils.get_data_dirs
.- url
str
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).
- resume
bool
, default=True Whether to resume download of a partly-downloaded file.
- verbose
int
, default=1 Verbosity level (0 means no message).
- n_networks{7, 17, None}, default = None
If not None, then only specific version of the atlas is returned:
7 networks parcellation,
17 networks parcellation.
If
thickness
is not None, this will default to7
. The default will be set to7
in version 0.13.2.Added in version 0.11.2dev.
- thickness{“thin”, “thick”, None}, default = None
If not None, then only specific version of the atlas is returned:
"thick"
: parcellation fitted to thick cortex segmentations,"thin"
: parcellation fitted to thin cortex segmentations.
If
n_networks
is not None, this will default to"thick"
. The default will be set to"thick"
in version 0.13.2.Added in version 0.11.2dev.
- data_dir
- Returns:
- data
sklearn.utils.Bunch
Dictionary-like object.
If
n_networks
andthickness
are None, keys are:- ‘thin_7’:
str
Path to nifti file containing the 7 networks parcellation fitted to thin template cortex segmentations. The image contains integer values which can be interpreted as the indices in
colors_7
.
- ‘thin_7’:
- ‘thick_7’:
str
Path to nifti file containing the 7 networks parcellation fitted to thick template cortex segmentations. The image contains integer values which can be interpreted as the indices in
colors_7
.
- ‘thick_7’:
- ‘thin_17’:
str
Path to nifti file containing the 17 networks parcellation fitted to thin template cortex segmentations. The image contains integer values which can be interpreted as the indices in
colors_17
.
- ‘thin_17’:
- ‘thick_17’:
str
Path to nifti file containing the 17 networks parcellation fitted to thick template cortex segmentations. The image contains integer values which can be interpreted as the indices in
colors_17
.
- ‘thick_17’:
- ‘colors_7’:
str
Path to colormaps text file for 7 networks parcellation. This file maps voxel integer values from
data.thin_7
anddata.tick_7
to network names.
- ‘colors_7’:
- ‘colors_17’:
str
Path to colormaps text file for 17 networks parcellation. This file maps voxel integer values from
data.thin_17
anddata.tick_17
to network names.
- ‘colors_17’:
- ‘anat’:
str
Path to nifti file containing the anatomy image.
- ‘anat’:
- ‘description’
str
Description of the dataset.
- ‘description’
- ‘template’
str
The standardized space of analysis in which the atlas results are provided. When known it should be a valid template name taken from the spaces described in the BIDS specification.
- ‘template’
- ‘atlas_type’
str
Type of atlas. See Probabilistic atlas and Deterministic atlas.
- ‘atlas_type’
otherwise the keys are:
- ‘anat’:
str
Path to nifti file containing the anatomy image.
- ‘anat’:
‘maps’: 3D
Nifti1Image
. The image contains integer values for each network.- ‘lut’
pandas.DataFrame
Act as a look up table (lut) with at least columns ‘index’ and ‘name’. Formatted according to ‘dseg.tsv’ format from BIDS.
- ‘lut’
- ‘description’
str
Description of the dataset.
- ‘description’
- ‘template’
str
The standardized space of analysis in which the atlas results are provided. When known it should be a valid template name taken from the spaces described in the BIDS specification.
- ‘template’
- ‘atlas_type’
str
Type of atlas. See Probabilistic atlas and Deterministic atlas.
- ‘atlas_type’
- data
Notes
License: unknown.
References
Examples using nilearn.datasets.fetch_atlas_yeo_2011
¶

Comparing connectomes on different reference atlases