Problems with loading study (all existing subjects disappear)

Dear brainstorm gurus,

We have an existing study protocol with hundreds of subjects analyzed. While loading a new subject's anatomy folder, it froze so we exited the matlab. After re-opening brainstorm, all subjects disappeared from that study protocol, but their actual study study and individual subject's folders still existed in brainstorm_db folder. Perhaps during the frozen and force quit process, something was incorrectly written into the brainstormstudy.mat?

However, each subject's data can be reloaded one by one by creating a new subject and entering their ID, we we still have to reload the data individually after the ID is created. Given there are hundreds of subjects, is there a way find out what was wrong in the top level mat file to avoid manual reloading one by one?

We tried to run db_reload_database('current') and got this error message:

Thank you.
Yuhan

There is a folder that points at a subject "New folder".
If you have a subject-level folder named "New folder" in your database (anat or data folder):

  1. Quit Brainstorm
  2. Delete the subject "New folder"
  3. Delete the file protocol/data/protocol.mat
  4. Restart Brainstorm

Make regular backups of your database, this is only way you are never going to lose any data or time, like any computer work.

Thank you! It works!

Yuhan