Sovereign 8s.is mirror of standardgalactic/BrainWavesToolbox
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Veronica Mäki-Marttunen 635a15059c
Update README.md
2026-02-28 07:49:32 +01:00
BWT_runBW.m Update BWT_runBW.m 2026-02-25 12:50:27 +01:00
BWT_runSVD.m Update BWT_runSVD.m 2026-02-25 12:49:51 +01:00
BWToolboxGUI.m Update BWToolboxGUI.m 2026-02-25 12:53:44 +01:00
example_input_folder_content Create example_input_folder_content 2024-01-17 13:34:19 +01:00
exampleInput.png Add files via upload 2024-01-17 13:34:46 +01:00
FT_Filter_mulch3.m Add files via upload 2026-02-25 12:26:01 +01:00
README.md Update README.md 2026-02-28 07:49:32 +01:00

BrainWavesToolbox

The Brain Waves Toolbox for fMRI data is based on the approach by Gu et al. 2021 (Cerebral Cortex, Brain activity fluctuations propagate as waves traversing the cortical hierarchy) and accompanying code (https://github.com/YamengGu/the-cross-hierarchy-propagation).

It allows to extract the first components of delay profiles around peaks of fMRI global signal, and use them to investigate the propagations of waves of activity in the brain.

Before using it, replace the paths to the folders at the top of BWToolboxGUI.m

BWT uses fieldtrip and inpaintnan.

The input folder should contain the data of all subjects, sessions and tasks, named after BIDS convention (.dtseries.nii files; you can replace the suffix in the .m files).

Run by calling the BWToolboxGUI function in the MATLAB command window.

The "Run SVD" button extracts the main components and saves the first five.

The "Run BW" button does the analysis of the waves using the entered gradient file (e.g. the output from SVD step).

This code is provided 'as is' and without warranties. If you use this tool, please cite the authors of the original code as well as:

Mäki-Marttunen V, Nieuwenhuis ST. Neuromodulatory influences on propagation of traveling waves along the unimodal-transmodal gradient. Cereb Cortex. 2025 Jul 1;35(7):bhaf183. doi: 10.1093/cercor/bhaf183. Erratum in: Cereb Cortex. 2025 Aug 1;35(8):bhaf236. doi: 10.1093/cercor/bhaf236.

Any comments or bug reports can be sent to makimarttunen.veronica@gmail.com