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=False)[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_dir
pathlib.Path
orstr
, 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
, 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).
- legacy_format
bool
, 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:
Dimension swapping (technically required for subsequent steps)
Brain Extraction
Segmentation with SPM8
Normalization using DARTEL algorithm
Modulation
Replacement of NaN values with 0 in gray/white matter density maps.
Resampling to reduce shape and make it correspond to the shape of the non-DARTEL data (fetched with dartel_version=False).
Replacement of values < 1e-4 with zeros to reduce the file size.
In the non-DARTEL version, the following steps have been performed instead:
Dimension swapping (technically required for subsequent steps)
Brain Extraction
Segmentation and normalization to a template with SPM8
Modulation
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://sites.wustl.edu/oasisbrains/
References
Examples using nilearn.datasets.fetch_oasis_vbm
¶
Voxel-Based Morphometry on Oasis dataset with Space-Net prior
Voxel-Based Morphometry on Oasis dataset
Voxel-Based Morphometry on OASIS dataset