Hi,
I had a brainstorm protocol with anatomical ans SEEG data.
I exported one subject by creating a zip file, without problem. However, after doing that, the structure of my protocol has changed and I see only the exported subject, the others are not visible any more.
I can see the data of all subjects (anat and data with mat files) on my computer in the protocol folder so they are Still existing but not available in the brainstorm interface.
How can I restore the original protocol to have Access to all subjects ?
Thank you !
Indeed, there was a bug causing the protocol.mat being permanently altered in the case where you would export the subject and then close Brainstorm before doing any other modification to the protocol.
I fixed it in this commit, so that it doesn't happen again: https://github.com/brainstorm-tools/brainstorm3/commit/f3c919ed7238c8fd29c90abe77a608446ceb837a
For fixing your database now, I think you can do something as simple as the following:
- Close Matlab
- Delete the file /.../protocol_name/data/protocol.mat
- Start Matlab and Brainstorm again - if the protocol.mat file is missing, it should rescan the entire protocol folder to rebuild it.
PS: Make sure you have a backup of your work properly set up, you're never protected from data loss.
Thanks very much for your reply.
I tried what you suggested, deleting the protocol.mat
I get this error message at braintorm opening and the under protocol folder in Brainstorm interface, there are no subjects !
If I put again the protocol.mat, I have only what subject ... What can I do to rebuild the database ?
Best
Julien
BST> Loading current protocol...
DB_FIX> Missing subject: "test"...
DB_FIX> There were errors in protocol "ENS_implantation_old". You should reload the database...
BST> =================================
Should I upddate Brainstorm now to take into account the bug fix you made ?
Yes, start by updating Brainstorm.
Then do the following:
- Menu File > Delete protocol > Only detach from database
- Close Matlab
- Delete /.../protocol_name/data/protocol.mat
- Restart Matlab and Brainstorm
- Menu File > Load > Load from protocol > Select the folder protocol_name
Thanks a lot ! It solved the problem ...