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_adhd

nilearn.datasets.fetch_adhd(n_subjects=30, data_dir=None, url=None, resume=True, verbose=1)[source]

Download and load the ADHD resting-state dataset.

See Nitrc ADHD resting-state dataset[1].

Parameters:
n_subjectsint, default=30

The number of subjects to load from maximum of 40 subjects. By default, 30 subjects will be loaded. If None is given, all 40 subjects will be loaded.

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).

Returns:
datasklearn.datasets.base.Bunch

Dictionary-like object, the interest attributes are :

  • ‘func’: Paths to functional resting-state images

  • ‘phenotypic’: Explanations of preprocessing steps

  • ‘confounds’: CSV files containing the nuisance variables

References

Examples using nilearn.datasets.fetch_adhd

Visualizing global patterns with a carpet plot

Visualizing global patterns with a carpet plot

Default Mode Network extraction of ADHD dataset

Default Mode Network extraction of ADHD dataset

Copying headers from input images with math_img

Copying headers from input images with math_img