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.

3.1.2. nistats.datasets.fetch_openneuro_dataset_index

nistats.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_dir: string, optional

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

dataset_version: string, optional

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

verbose: int, optional

verbosity level (0 means no message).

Returns
urls_path: string

Path to downloaded dataset index

urls: list of string

Sorted list of dataset directories

3.1.2.1. Examples using nistats.datasets.fetch_openneuro_dataset_index