GitHunt
MA

matanmazor/TWISTER

Accompanying code for "A Randomization-Based, Model-Free Approach to Functional Neuroimaging: A proof of concept"

A Randomization-Based, Model-Free Approach to Functional Neuroimaging: A proof of concept. | Entropy, 2024

Matan Mazor ๐Ÿ”ด & Roy Mukamel ๐ŸŸฆ

A TWISTER experiment is comprised of four experimental runs of equal duration: A1, B1, A2 and B2. The experiment is created in two steps. First, run A1 is formed by randomly dispersing a fixed number of events along a temporal interval of a predefined duration. This step is executed separately for each participant. Second, the three remaining runs are created by taking run A1 as a reference and twisting the events along the first dimension (B1), the second dimension (A2), or both (B2). The resulting four runs can be used in random order.

figure

Consequently, voxels can be embedded in a two dimensional space according to the temporal consistency along the two twisted stimulus dimensions, as reflected in the correlation coefficients between time-series. A brain region whose time-series during run A1 is more consistent (i.e., has higher correlation) with its activation pattern during run A2 than during run B1 is more sensitive to the first dimension (A vs. B) than to the second dimension (1 vs. 2). Similarly, a brain region whose time-series during run B2 is more consistent with its activation pattern during run A2 than during run B1 is more sensitive to the second dimension (1 vs. 2) and less to the first (A vs. B).

This repository includes the analysis tools for comparing and visualizing the similarity between voxel time-courses in different TWISTER runs, including example prepocessed data from a visuomotor task.
This is a Matlab code (last tested on Matlab R2024a) and it has some dependencies:

analysis/Main.m should run the analysis and start an interactive visualization. You can navigate to different voxels by clicking on points in the scatterplot or in the brain images, and hit Enter.

Matlab interactive visualization