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 mount | What it holds |
|---|---|
| dataset_description.json | Name, authors and BIDS version. |
| participants.tsv | One row per subject: participant_id, condit, gender, race, age, yrschool and symptom scale items. |
| sub-NN/anat/sub-NN_T1w.nii.gz | The structural T1 image. |
| sub-NN/func/sub-NN_task-letter<0|1|2>backtask_bold.nii.gz | One functional run per task, up to 19 MB each. |
| task-letter<0|1|2>backtask_bold.json | Acquisition parameters for each task. |
Size, format and license
| Format | NIfTI (gzip), JSON and TSV in BIDS layout |
|---|---|
| Size | 99 subjects, 700 files, 8.5 GB |
| License | CC0 |
| Provider | Grega Repovs and Deanna M. Barch, via OpenNeuro |
| Public source | s3://openneuro.org/ds000115 (AWS us-east-1, public, no account needed) |
| Notebook image | Neuroscience (Nilearn and nibabel preinstalled) |
Things to know before you read it
- Subjects sub-23, sub-25 and sub-48 are missing from the dataset.
- OpenNeuro datasets are DataLad repositories. A file of a few hundred bytes may be a pointer, not data, so check the size before reading.
- The first code cell also prints a second folder,
~/additional-datasets, which is where a companion dataset appears if one is mounted. It is not needed here.
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
- How to open the Connectome 2.0 high b-value diffusion MRI dataset in a Jupyter notebook
- How to open OME-Zarr volumes in a Jupyter notebook
- How to load CMMD mammography DICOM files and clinical data in a Jupyter notebook
- How to open CAMELYON lymph node whole-slide images from S3 in a Jupyter notebook
Last checked 2026-11-21. All dataset guides.