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

nilearn.datasets.fetch_openneuro_dataset_index(data_dir=None, dataset_version='ds000030_R1.0.4', verbose=1)[source]#

Download a file with OpenNeuro BIDS dataset index.

Deprecated since version 0.9.2: fetch_openneuro_dataset_index will be removed in 0.11.

Downloading the index allows to explore the dataset directories to select specific files to download. The index is a sorted list of urls.

Parameters:
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.

dataset_versionstr, default=’ds000030_R1.0.4’

Dataset version name. Assumes it is of the form [name]_[version].

Warning

Any value other than the default will be ignored.

verboseint, default=1

Verbosity level (0 means no message).’

Returns:
urls_pathstr

Path to downloaded dataset index.

urlslist of str

Sorted list of dataset directories.