SciganticGuidesTopicsExplore

How to open an OpenNeuro fMRI dataset from S3 without DataLad (ds000115)

An OpenNeuro dataset is a BIDS folder tree, so pathlib finds the subjects and Nilearn plots a NIfTI image straight from its path. In a Scigantic notebook ds000115 is mounted at /mnt/archive, and the anatomical and functional scans for all 99 subjects are read in place.

The code on this page runs in a Scigantic hosted notebook, where the dataset is mounted read-only at /mnt/archive. The same path is in the SCIGANTIC_MOUNT_PATH environment variable and linked from ~/archive. The public source is s3://openneuro.org/ds000115 (AWS us-east-1, public, no account needed).

Open OpenNeuro ds000115 working memory fMRI on SciganticOpen the sample notebook: OpenNeuro fMRI working-memory replication

Code

Read the dataset description, count subjects and plot one T1 image

import os, json
from pathlib import Path

primary_mount = Path(os.environ.get('SCIGANTIC_MOUNT_PATH', '/mnt/archive'))
additional = Path('~/additional-datasets').expanduser()

print(f'Primary archive (ds000115):  {primary_mount}')
print(f'Additional mounts dir:       {additional}')
if additional.exists():
    for p in sorted(additional.iterdir()):
        print(f'  - {p.name}/')

desc_path = primary_mount / 'dataset_description.json'
if desc_path.exists():
    print(json.dumps(json.loads(desc_path.read_text()), indent=2))
subs = sorted(p.name for p in primary_mount.glob('sub-*') if p.is_dir())
print(f'\n{len(subs)} subjects, first 5: {subs[:5]}')

from io import BytesIO
from IPython.display import Image, display
from nilearn import plotting
import matplotlib.pyplot as plt

t1 = next(
    iter(sorted(primary_mount.glob('sub-*/anat/*_T1w.nii*'))),
    None,
)
if t1 is None:
    print('No T1 anatomical found yet under', primary_mount)
else:
    subject = t1.parts[-3]  # sub-XX
    fig = plt.figure(figsize=(7, 3.2))
    plotting.plot_anat(
        str(t1),
        title=f'ds000115 — {subject} structural T1',
        display_mode='ortho',
        cut_coords=(0, 0, 0),
        figure=fig,
    )
    buf = BytesIO()
    fig.savefig(buf, format='jpeg', dpi=85, bbox_inches='tight',
                pil_kwargs={'quality': 80, 'optimize': True}, facecolor='black')
    plt.close(fig)
    display(Image(data=buf.getvalue()))

Copied from this dataset's starter notebook on Scigantic, the one that opens when you start a notebook from the archive page (3 cells, unchanged).

What the files are

OpenNeuro ds000115, "Working memory in healthy and schizophrenic individuals": 99 subjects scanned during letter 0-back, 1-back and 2-back tasks, with a structural T1 image per subject.

The dataset follows BIDS: one folder per subject with anat/ and func/ inside, task metadata as JSON at the top level, and participants.tsv with group, age and symptom scores.

How the files are laid out

Path under the mountWhat it holds
dataset_description.jsonName, authors and BIDS version.
participants.tsvOne row per subject: participant_id, condit, gender, race, age, yrschool and symptom scale items.
sub-NN/anat/sub-NN_T1w.nii.gzThe structural T1 image.
sub-NN/func/sub-NN_task-letter<0|1|2>backtask_bold.nii.gzOne functional run per task, up to 19 MB each.
task-letter<0|1|2>backtask_bold.jsonAcquisition parameters for each task.

Size, format and license

FormatNIfTI (gzip), JSON and TSV in BIDS layout
Size99 subjects, 700 files, 8.5 GB
LicenseCC0
ProviderGrega Repovs and Deanna M. Barch, via OpenNeuro
Public sources3://openneuro.org/ds000115 (AWS us-east-1, public, no account needed)
Notebook imageNeuroscience (Nilearn and nibabel preinstalled)

Things to know before you read it

Run it

Start a notebook from the OpenNeuro ds000115 working memory fMRI archive page. The data is mounted when the notebook opens, so the code above runs as written and nothing is downloaded first. For a longer worked example, open the sample notebook OpenNeuro fMRI working-memory replication.

Related guides

Last checked 2026-11-21. All dataset guides.