Python GUI for real-time Representational Similarity Analysis (rtRSA) neurofeedback experiments in Turbo-BrainVoyager.
This repository contains a Python-based GUI application for running real-time Representational Similarity Analysis (rtRSA) neurofeedback experiments using Turbo-BrainVoyager. It supports real-time pattern display, live RSA computation, and integration with TBV data streams.
- Python 3.6 environment (via Miniconda or Anaconda)
- Turbo-BrainVoyager 4.2 installed on a network-accessible computer
- Python packages listed in
requirements.txt
- Install Miniconda or Anaconda if not already installed.
- Clone this repository
- Create and activate a new Python 3.6 environment
conda create -n py36 python=3.6
conda activate py36
pip install -r requirements.txt- Launch Turbo-BrainVoyager and enable the Network Plugin.
- Start the GUI using
rtRSA_gui.batafter setting up your environment.
- Adjust
run_localizer.batfor your specific environment and target emotion. - Configure TBV for real-time fMRI data processing.
- Use the GUI to extract and save statistical patterns.
- In the GUI, select task-related voxels as the mask for neurofeedback.
- Launch the neurofeedback paradigm via the GUI.
- Start TBV’s real-time fMRI data processing.
rtRSA_GUI/
├── rtRSA_gui.py # Main GUI application
├── run_localizer.py # Script for localizer session
├── run_NF.py # Script for neurofeedback session
├── utils/ # Utility modules (RSA, voxel selection, etc.)
├── images/ # Stimuli or display images
├── searchlight.cfg # Searchlight configuration settings
├── requirements.txt # Python dependencies
└── README.md