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 1, and 2.

Parameters
n_subjectsint, optional

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

dartel_versionboolean, optional

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

data_dirpathlib.Path or str, optional

Path where data should be downloaded. By default, files are downloaded in home directory.

urlstr, optional

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

resumebool, optional

Whether to resume download of a partly-downloaded file. Default=True.

verboseint, optional

Verbosity level (0 means no message). Default=1.

legacy_formatbool, optional

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

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 http://www.oasis-brains.org/app/template/UsageAgreement.vm

References

1

Open access series of imaging studies (oasis). http://www.oasis-brains.org/. Accessed: 2021-05-19.

2

Daniel S. Marcus, Tracy H. Wang, Jamie Parker, John G. Csernansky, John C. Morris, and Randy L. Buckner. Open Access Series of Imaging Studies (OASIS): Cross-sectional MRI Data in Young, Middle Aged, Nondemented, and Demented Older Adults. Journal of Cognitive Neuroscience, 19(9):1498–1507, 09 2007. URL: https://doi.org/10.1162/jocn.2007.19.9.1498, arXiv:https://direct.mit.edu/jocn/article-pdf/19/9/1498/1756878/jocn.2007.19.9.1498.pdf, doi:10.1162/jocn.2007.19.9.1498.

Examples using nilearn.datasets.fetch_oasis_vbm#

Voxel-Based Morphometry on Oasis dataset with Space-Net prior

Voxel-Based Morphometry on Oasis dataset with Space-Net prior

Voxel-Based Morphometry on Oasis dataset with Space-Net prior
Voxel-Based Morphometry on Oasis dataset

Voxel-Based Morphometry on Oasis dataset

Voxel-Based Morphometry on Oasis dataset
Voxel-Based Morphometry on OASIS dataset

Voxel-Based Morphometry on OASIS dataset

Voxel-Based Morphometry on OASIS dataset