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.

7.2.17. nilearn.datasets.fetch_localizer_button_task

nilearn.datasets.fetch_localizer_button_task(n_subjects=[2], data_dir=None, url=None, get_anats=False, verbose=1)

Fetch left vs right button press contrast maps from the localizer.

Parameters:

n_subjects: int or list, optional

The number or list of subjects to load. If None is given, all 94 subjects are used.

data_dir: string, optional

Path of the data directory. Used to force data storage in a specified location.

url: string, optional

Override download URL. Used for test only (or if you setup a mirror of the data).

get_anats: boolean

Whether individual structural images should be fetched or not.

verbose: int, optional

verbosity level (0 means no message).

Returns:

data: Bunch

Dictionary-like object, the interest attributes are : ‘cmaps’: string list, giving paths to nifti contrast maps

Notes

This function is only a caller for the fetch_localizer_contrasts in order to simplify examples reading and understanding. The ‘left vs right button press’ contrast is used.