Reuse, Compose, Extend, Standardize, Automate

Two Decades of RSEing Open (Neuro)Science at CON

Yaroslav O. Halchenko
+ Cody Baker, Austin Macdonald, Isaac To, John A. Lee, Vadim Melnik — the CON team
@yarikoptic @yarikoptic@fosstodon.org

Center for Open Neuroscience
Department of Psychological and Brain Sciences
Center for Cognitive Neuroscience
Dartmouth College
New Hampshire, USA
US-RSE’26 — Research Software Engineers Conference, October 2026
Live slides/Sources: https://datasets.datalad.org/centerforopenneuroscience/talks/2026-usrse-con-talk.html

Toolboxes gave us ecosystem

PyMVPA NiPy IPython

NumPy, SciPy, matplotlib, and (for us) Debian underneath all of it.

PyMVPA ran its tutorials in IPython and read its data through what became NiBabel.

… and somebody has to decompose first

NiPy →
NiBabel Nipype Nitime

Not an ending — a handover upwards

Debian Debian Med Debian Python Team

Debian Med · Debian Science · Debian Python Team

Small team, wide scope → big teams, each with a narrower one.
Packages we used to carry alone are now co-maintained: more hands, a bus factor above one.
Later — psychopy moves to Debian Med in 2020; nifticlib, gifticlib, odin, cmtk follow over the next two years.

Russell A. Poldrack Jean-Baptiste Poline Chris Markiewicz Satrajit Ghosh Dora Hermes Seyed (Yahya) Shirazi

Gorgolewski, K. J., Auer, T., Calhoun, V. D., Craddock, R. C., Das, S., Duff, E. P., Flandin, G., Ghosh, S. S., Glatard, T., Halchenko, Y. O., Handwerker, D. A., Hanke, M., Keator, D., Li, X., Michael, Z., Maumet, C., Nichols, B. N., Nichols, T. E., Pellman, J., Poline, J.-B., Rokem, A., Schaefer, G., Sochat, V., Triplett, W., Turner, J. A., Varoquaux, G., and Poldrack, R. A. (2016). The brain imaging data structure, a format for organizing and describing outputs of neuroimaging experiments. Scientific Data, 3:160044

What BIDS is made of

instrument output reorganized into a BIDS dataset
  • One layout, declared — sub-<label>/[ses-<label>/]<datatype>/. You have seen one BIDS dataset, you have seen them all.
  • File names that parse — entities in a fixed order, not prose
  • A short list of allowed formats per data type, instead of “whatever wrote it”
  • Metadata with a place to live — JSON sidecars, TSV tables, and an inheritance principle so it is said once
  • Readable by both — a prose specification for humans and a machine-readable schema the validator, the docs and the tooling are generated from
  • An amendment process — BEPs and open PR review, so the standard can be wrong and still recover

None of this is neuroimaging. It is the anatomy of a standard your field can adopt — and the contract an agent can be held to.

Without structure, the agent has to guess

What an agent finds in most labs
study_final2/
  scans/
    s01_ep2d_bold_moco_3.nii
    s01_t1_mprage_FINAL.nii
    s02_ep2d_bold_moco_3(1).nii
  analysis_new/
    run_it.sh
    run_it_OLD.sh
    results_use_this_one.mat
  notes.docx
  • Which file is which subject? Infer.
  • What are the acquisition parameters? Infer.
  • Which script made results_use_this_one.mat? Infer.
What an agent finds in a BIDS dataset
ds000001/
  dataset_description.json
  participants.tsv
  sub-01/
    anat/sub-01_T1w.nii.gz
    anat/sub-01_T1w.json
    func/sub-01_task-rest_bold.nii.gz
    func/sub-01_task-rest_bold.json
  derivatives/
    mriqc/dataset_description.json
  • Subject, session, task, run: in the filename
  • Parameters: in the sidecar
  • Provenance of derivatives: GeneratedBy

Not just rhetoric: a structured neuroimaging harness moved first-choice tool-selection accuracy from 23.3% to 93.6% across seven models — Chen, …, Poldrack, Bringing analytic rigor to agentic AI for science, arXiv:2608.19902, 2026 (brain-researcher.com).

… and that log is   the provenance you need later

“Why did this get OOM-killed on the cluster?”
  • Peak RSS over time, per process. Not your memory of it.
“How much do I request for 2,000 subjects?”
  • Measured, from the run you already did.
“What did it print before it died?”
  • Captured, versioned, next to the outputs.

con-duct plot — Who can guess this monster?

Already wired in: set REPRONIM_USE_DUCT=1 with ///repronim/containers and every datalad containers-run gets a duct trace for free.

Why useful for AI: makes logs readily available *if* needed.
duct turns “it crashed, I think it ran out of memory” into a file.

Poster this evening: Austin Macdonald, C. C. Baker, J. A. Lee, Y. O. Halchenko,
Agent-friendly Provenance Capture with con-duct — the patterns of use with AI agents are on it. Go find Austin.

All three layers, one real artifact — built with AI

dandi/compression-comparisons-t261-study — a reproduction of Buccino et al. 2023 on ephys compression, plus a comparison against the new ITU-T T.261 codec.

1. The layout (what)
dataset_description.json
code/
  compression-comparisons-tools/
  run_sweep.sh
sourcedata/
  aind-ephys-compression/      # 523 GB
derivatives/
  compbench-*/<cell>/
    metrics.json  manifest.json
    duct-info.json  duct-usage.jsonl
  reports-*/

BIDS-like, M-odular: data and tool are subdatasets pinned by commit, not copies.

2. The record (how) — and 3. the cost (what it took)
$ git log --oneline
7733465 [DATALAD RUNCMD] cell aind-634568__zstd...

 "cmd": "duct --output-prefix .../duct- \
      --sample-interval 1 --report-interval 5 \
      compbench run --codec zstd ...",
 "inputs":  ["sourcedata/aind-ephys-compression/.."],
 "outputs": ["derivatives/../aind-634568__zstd.."],
 "exit": 0

The recorded command is a duct invocation — so every cell commits its own resource trace beside its own results.

commits[DATALAD RUNCMD] of those, wrapping duct cellsrecorded compute AI disclosure
12661216 1095 912, 0 errors 3838 h (peak RSS 120 GB) 26 Co-Authored-By: Claude

So I tried to rerun it — fresh clone, two months later

$ datalad clone https://github.com/dandi/\
    compression-comparisons-t261-study
$ datalad get -n code/compression-comparisons-tools
  ✓ submodule URL fixed — it just works now

$ # no image to pull: the env is prose in README.md
$ uv venv envs/compbench
$ uv pip install --python envs/compbench/bin/python \
    './code/compression-comparisons-tools[ephys,..]' \
    wavpack-numcodecs flac-numcodecs
  ✗ not all of it built — enough for this cell

$ datalad rerun -b repro-20261015-42dc5cfa-1 42dc5cfa
  run(ok): ... [duct --clobber --output-prefix ..]
  Wall Clock Time: 2.465 sec   RSS peak: 142 MB
Did the science come back?
fieldoriginal vs. rerun
cr1.514... same
encoded_bytes5283 same
rmse · round_trip_ok0.0 · true same
signal_std706.609... same
*_time_s~20% slower — as they must
manifestsame kernel 6.12.57,
python 3.13.15→3.13.5
duct-infohost 327bc591…→typhon:
the original ran in a container
the record never named

A hand-rebuilt environment, a different Python, no container — and every scientific number came back bit-for-bit. Only timings moved.

The bottleneck moved

writing the code → verifying and situating it
can I create this? → is this right, and does it fit what already exists?

HBR, Feb 2026: “AI doesn’t reduce work, it intensifies it”

“AI” has now permeated all levels of SciOps

… when originally we thought just about closing the loop with AI:

Figure reproduced from: E. C. Johnson, T. T. Nguyen, B. K. Dichter, …, M. E. Martone, F. Pestilli, D. Yatsenko. SciOps: Achieving Productivity and Reliability in Data-Intensive Research. arXiv:2401.00077, 2024.

Michael Hanke John Lee Isaac To

ORINOCO → ORINOCO-Lite

ORINOCO — INM-7 Jülich, self-hosted

ORINOCO: schema, SHACL-VUE and dump-things around a self-hosted Forgejo, rendering a data catalog, a lab website and an annual report

ORINOCO-Lite — CON, GitHub-native

ORINOCO-Lite: the same schema and outputs, with GitHub pull requests over git + YAML records and GitHub Actions doing the build

Same schema in, same outputs out. Reuse the upstream design, compose it from GitHub Actions and Pages, automate the build — nothing to host, and the records stay the model while every site is only a view.

Our extended "team" - Thank you!

Thank you for your attention!

Reuse · Compose · Extend · Standardize · Automate

SOCIALIZE!

Together we can make any science a better science!

QR code to the live slides

Slides: datasets.datalad.org/…/2026-usrse-con-talk.html — CC-BY-SA

QR code to the live slides

Slides & sources

https://datasets.datalad.org/centerforopenneuroscience/talks/2026-usrse-con-talk.html

CC-BY-SA · @yarikoptic@fosstodon.org

EXTRAS

DANDI BIDS DataLad OpenNeuro NWB EMBEREMBER

One ecosystem. None of it single-authored.