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.

8.2.43. nilearn.datasets.fetch_openneuro_dataset_index

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

Download a file with OpenNeuro BIDS dataset index.

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_dirstring, optional

Path to store the downloaded dataset. if None employ nilearn datasets default download directory.

dataset_versionstring, optional

Dataset version name. Assumes it is of the form [name]_[version]. Default=’ds000030_R1.0.4’.

verboseint, optional

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

Returns
urls_pathstring

Path to downloaded dataset index.

urlslist of string

Sorted list of dataset directories.

8.2.43.1. Examples using nilearn.datasets.fetch_openneuro_dataset_index