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_atlas_msdl¶
- nilearn.datasets.fetch_atlas_msdl(data_dir=None, url=None, resume=True, verbose=1)[source]¶
Download and load the MSDL brain Probabilistic atlas.
For more information, see the dataset description.
- Parameters:
- data_dir
pathlib.Pathorstror None, optional Path where data should be downloaded. By default, files are downloaded in a
nilearn_datafolder in the home directory of the user. See alsonilearn.datasets.utils.get_data_dirs.- url
stror 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
boolorint, default=1 Verbosity level (
0orFalsemeans no message).
- data_dir
- Returns:
- data
sklearn.utils.Bunch Dictionary-like object, contains:
atlas_type:str. Type of atlas. See Probabilistic atlas and Deterministic atlas.labels:listofstr. List of the names of the regions. There are 39 labels such thatdata.labels[i]corresponds to mapi.maps:str. Full path to nifti file containing the Probabilistic atlas image (shape is equal to(40, 48, 35, 39)).networks:listofstr. List containing the names of the networks. There are 39 network names such thatdata.networks[i]is the network name of regioni.region_coords:listoflistoffloat. Length-3tupledata.region_coords[i]contains the coordinates(x, y, z)of regioniin MNI space.template:str. The standardized space of analysis in which the data is provided.
- data
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_atlas_msdl¶
Classification of age groups using functional connectivity
Computing a connectome with sparse inverse covariance
Extracting signals of a probabilistic atlas of functional regions
Group Sparse inverse covariance for multi-subject connectome