VoxelWise Toolbox

A lightweight MATLAB toolbox for human fMRI analysis.

VoxelWise Toolbox

VoxelWise Toolbox offers an integrated set of functions written in MATLAB, dedicated to the analysis of human functional MRI data: from signal preprocessing through statistical inference to visualisation. The design rests on a single shared format, the brain vector (the 228,453 in-brain voxels of the 91×109×91 MNI152 2 mm template), held as a 228453 × T matrix. Every function reads and writes that same vector, so the output of one drops straight into the next, and an analysis is composed by writing a few lines of MATLAB. There is no wrapper object, no pipeline configuration and no batch structure to learn.

The toolbox is designed to be inspectable. Every function is a single readable .m file: no compiled binaries, no pipeline objects, no hidden state. The functions are grouped into eight composable modules: I/O, space and reshaping, temporal preprocessing, atlases and regions of interest, effect estimation, statistical inference, simulation and signal quality, and visualisation. Every one of them speaks the same brain vector, so they can be mixed freely and in any order.

The toolbox was built for naturalistic paradigms, where participants listen to music or watch films and the stimulus is described by continuous features rather than by discrete events, and where conventional GLM pipelines do not readily apply. It has been in active use at the University of Jyväskylä since 2012 and underlies results in more than twenty peer-reviewed publications. This is its first public release.

Version 1.0.0

The toolbox is available free of charge under the MIT licence.

Bundled components keep their own licences: the NIfTI I/O routines are Jimmy Shen's, under a BSD licence, and the nineteen atlas maps are redistributed from their original authors under their respective terms.

VoxelWise Toolbox requires MATLAB R2019a or later and no MathWorks toolboxes: no Statistics, Signal Processing or Image Processing Toolbox is used by any function. 

Modules
 

Module Functions Description
I/O and NIfTI handling 4 Reading, writing and resampling onto the 2 mm grid
Space, coordinates and reshaping 11 Vector/volume conversion, MNI and Talairach coordinates
Temporal preprocessing 7 Detrending, band-pass, motion regression, smoothing, deconvolution
Atlases and regions of interest 11 ROI masks, region lookup, voxel/ROI aggregation, cluster tables
Analysis: effect estimation 10 Regressor and seed correlation, cross-correlation, PPI, RSA, ISC
Statistical inference 16 Parametric conversions, t-tests, TFCE, cluster-extent correction
Simulation and signal quality 5 Synthetic cohorts with ground truth, SNR-i, tSNR, tCNR
Visualisation 20 Slice mosaics, three-plane views, surface and 3D rendering, colormaps

Nineteen atlas maps from ten published sources sit behind a single integer-indexed interface. Call fmri_atlas to list them and fmri_atlas(n) to load any one.

Authors

Iballa Burunat, Vinoo Alluri and Petri Toiviainen, Centre of Excellence in Music, Mind, Body and Brain, University of Jyväskylä.

The toolbox grew out of a decade of naturalistic neuroimaging work at Jyväskylä and has benefitted from the students, collaborators and users whose analyses shaped it.

Download

The toolbox is distributed through GitHub and archived on Zenodo:

Source code: https://github.com/iburunat/VoxelWiseToolbox

Archived release: https://doi.org/10.5281/zenodo.19173637 

Documentation

  • Online documentation and function reference: https://voxelwisetoolbox.readthedocs.io 
  • An article about the toolbox (Burunat, Alluri & Toiviainen, in preparation)
  • Ten worked examples ship in demo/, each running end to end. Those built on simulated cohorts need no scanner data at all.

Installation

Download or clone the repository, then run the setup script once per session:

matlab

run('/path/to/VoxelWiseToolbox/fmritoolbox_setup.m')

Adding that line to ~/Documents/MATLAB/startup.m loads the toolbox automatically at startup. The script adds core/, tools/, masks/, atlases/, demo/ and the bundled NIfTI library to the path.

Citation

Please cite both the paper and the archived release.

Burunat, I., Alluri, V. & Toiviainen, P. (in preparation, 2026). VoxelWise Toolbox: transparent and composable fMRI analysis in base MATLAB.

Burunat, I., Alluri, V. & Toiviainen, P. (2026). VoxelWise Toolbox (v1.0.0). Zenodo. https://doi.org/10.5281/zenodo.19173637