embodied conversation: the cognitive, social, affective, and interoceptive processes underlying human communication

cortex

a modular ecosystem for multimodal neuroimaging analysis.

Cortex is a modular ecosystem for computational neuroscience, built around a shared approach to data, analysis, and visualization. The aim is to make scientific workflows easier to follow, compose, and reproduce.

Cortex artwork: a brain with language regions shaded in orange, ringed by its workflow (preprocess, segment, model, map, analyze, visualize), on contour lines.
The Cortex workflow, illustrated.

in brief

A neuroimaging analysis usually passes through a handful of tools, each with its own conventions, and somewhere along the way it gets hard to say exactly what was done to the data. Cortex is a Python package for EEG and fMRI that writes every step the same way and keeps a record of how each result was made, so that an analysis can be read, checked, and run again.

Every step, in either modality, has the same shape:

result = cx.<modality>.<family>.<operation>(data, cfg, params)

# for example, preparing raw fMRI runs:
result = cx.fmri.preproc.run(data, cfg, params)

The scientific choices (a filter cutoff, an epoch window, a contrast) live in params; the practical ones (where outputs go, how much to print) live in cfg. Keeping them apart means changing where results are saved can never quietly change the science. Each result carries its outputs alongside a short log of what ran, and steps chain into pipelines that can be previewed and checked before anything runs.

six modules

Every step belongs to one of six modules. They form a cycle rather than a line: you can start wherever your data are ready and take a result out of any of them.

Cortex is built with functional localizers and individual brains in mind, from subject-specific fROIs to surface-based models and lesioned anatomy. It reads SPM, CONN, and EEGLAB output without MATLAB and can call those tools when MATLAB is installed, so it fits into pipelines labs already have. It never discards data on its own: components and trials are reviewed before anything is rejected. Each modality has a tutorial notebook that walks through all six modules on open data from OpenNeuro.

where it stands

Cortex is experimental and in active development. On the fMRI side it handles design checks, first-level models, regions of interest, and surface-based work; on the EEG side, preprocessing through condition averages, spectra, and time–frequency analysis. Voxelwise group models, connectivity, decoding, and multimodal methods are still to come.