Dear Francois,
Thank you for your guidance. I followed the steps exactly (Detached the protocol, deleted protocol.mat in the data directory, and reloaded it using "Load from folder"). Unfortunately, it did not resolve the issue, and I am seeing some very strange behavior.
1. Error Logs: Upon reloading, the MATLAB command window is flooded with "Cannot open anatomy file" and "Cannot open file... brainstormstudy.mat" warnings for almost every subject (see the log below). It seems Brainstorm is physically unable to access or read the .mat files, even though they exist on the disk.
2. A Crucial Discovery: I noticed a very specific phenomenon:
- Sort by Subject: The functional data is invisible.
- Sort by Condition: The imported data (epochs) appears correctly!
This suggests the data files are recognized, but the link between the "Studies" and the "Subjects" is broken in the database metadata. Even when I try to re-import data from a raw link, the new entries only show up in the "Condition" view and remain hidden in the "Subject" view.
3. Anatomy Errors: Additionally, I get warnings like: Warning: Cannot open anatomy file '...\anat\01gaoyibo_2021ft\subjectimage_3DT1.mat'. These files are definitely there. Is it possible that moving the database between drives or a crash has caused some form of file permission issue or a corruption in the BIDS-style folder parsing?
I have attached the full error log. What would you suggest as the next step to re-establish the Subject-Study relationship?
I have uploaded my protocol.mat file and the data files from one of the affected subjects for your reference. By the way, my anatomy files are working perfectly fine without any issues.
Best regards,
>> brainstorm
BST> Starting Brainstorm:
BST> =================================
BST> Version: 26-Jan-2026
BST> Warning: Brainstorm is not fully tested and supported on the New Matlab Desktop.
BST> Compiling main interface files...
BST> Deleting old process reports...
BST> Loading configuration file...
BST> Checking internet connectivity... ok
BST> Update available online: 29-Jan-2026
BST> Initializing user interface...
BST> Starting OpenGL engine... hardware: ANGLE (NVIDIA, NVIDIA GeForce RTX 5060 (0x00002D05) Direct3D11 vs_5_0 ps_5_0, D3D11)
BST> Plugin spm12: D:\Toolbox\spm12_7219
BST> Reading process folder...
BST> Loading current protocol...
BST> =================================
BST> Brainstorm stopped.
>> brainstorm
BST> Starting Brainstorm:
BST> =================================
BST> Version: 26-Jan-2026
BST> Warning: Brainstorm is not fully tested and supported on the New Matlab Desktop.
BST> Compiling main interface files...
BST> Deleting old process reports...
BST> Loading configuration file...
BST> Checking internet connectivity... ok
BST> Update available online: 29-Jan-2026
BST> Initializing user interface...
BST> Starting OpenGL engine... hardware: ANGLE (NVIDIA, NVIDIA GeForce RTX 5060 (0x00002D05) Direct3D11 vs_5_0 ps_5_0, D3D11)
BST> Plugin spm12: D:\Toolbox\spm12_7219
BST> Reading process folder...
BST> Loading current protocol...
BST> =================================
Warning: Cannot open anatomy file 'D:\Database\brainstorm_db\Test_001\anat\01gaoyibo_2021ft\subjectimage_3DT1.mat'.
> 位置:[db_parse_subject/io_getAnatomyInfo](matlab:matlab.lang.internal.introspective.errorDocCallback('db_parse_subject/io_getAnatomyInfo', 'D:\Toolbox\brainstorm3\toolbox\db\private\db_parse_subject.m', 273)) ([第 273 行](matlab: opentoline('D:\Toolbox\brainstorm3\toolbox\db\private\db_parse_subject.m',273,0)))
位置: [db_parse_subject](matlab:matlab.lang.internal.introspective.errorDocCallback('db_parse_subject', 'D:\Toolbox\brainstorm3\toolbox\db\private\db_parse_subject.m', 157)) ([第 157 行](matlab: opentoline('D:\Toolbox\brainstorm3\toolbox\db\private\db_parse_subject.m',157,0)))