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_oasis_vbm#

nilearn.datasets.fetch_oasis_vbm(n_subjects=None, dartel_version=True, data_dir=None, url=None, resume=True, verbose=1, legacy_format=True)[source]#

Download and load Oasis “cross-sectional MRI” dataset (416 subjects).

For more information, see Open Access Series of Imaging Studies (OASIS)[1], and Marcus et al.[2].

Parameters:
n_subjectsint, optional

The number of subjects to load. If None is given, all the subjects are used.

dartel_versionboolean, default=True

Whether or not to use data normalized with DARTEL instead of standard SPM8 normalization.

data_dirpathlib.Path or str, 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, 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.

verboseint, default=1

Verbosity level (0 means no message).

legacy_formatbool, default=True

If set to True, the fetcher will return recarrays. Otherwise, it will return pandas dataframes.

Returns:
dataBunch

Dictionary-like object, the interest attributes are :

  • ‘gray_matter_maps’: string list Paths to nifti gray matter density probability maps

  • ‘white_matter_maps’ string list Paths to nifti white matter density probability maps

  • ‘ext_vars’: np.recarray Data from the .csv file with information about selected subjects

  • ‘data_usage_agreement’: string Path to the .txt file containing the data usage agreement.

Notes

In the DARTEL version, original Oasis data have been preprocessed with the following steps:

  1. Dimension swapping (technically required for subsequent steps)

  2. Brain Extraction

  3. Segmentation with SPM8

  4. Normalization using DARTEL algorithm

  5. Modulation

  6. Replacement of NaN values with 0 in gray/white matter density maps.

  7. Resampling to reduce shape and make it correspond to the shape of the non-DARTEL data (fetched with dartel_version=False).

  8. Replacement of values < 1e-4 with zeros to reduce the file size.

In the non-DARTEL version, the following steps have been performed instead:

  1. Dimension swapping (technically required for subsequent steps)

  2. Brain Extraction

  3. Segmentation and normalization to a template with SPM8

  4. Modulation

  5. Replacement of NaN values with 0 in gray/white matter density maps.

An archive containing the gray and white matter density probability maps for the 416 available subjects is provided. Gross outliers are removed and filtered by this data fetcher (DARTEL: 13 outliers; non-DARTEL: 1 outlier) Externals variates (age, gender, estimated intracranial volume, years of education, socioeconomic status, dementia score) are provided in a CSV file that is a copy of the original Oasis CSV file. The current downloader loads the CSV file and keeps only the lines corresponding to the subjects that are actually demanded.

The Open Access Structural Imaging Series (OASIS) is a project dedicated to making brain imaging data openly available to the public. Using data available through the OASIS project requires agreeing with the Data Usage Agreement that can be found at https://www.oasis-brains.org/#access

References

Examples using nilearn.datasets.fetch_oasis_vbm#

Voxel-Based Morphometry on Oasis dataset

Voxel-Based Morphometry on Oasis dataset

Voxel-Based Morphometry on OASIS dataset

Voxel-Based Morphometry on OASIS dataset