Lost subjects in database listing

Part of my protocol subjects (processed by filtering, reref and ICA) list disappeared. I can still see those subjects under protocol \data\ folder though. How to add them back to protocol?
Yuyuan

We would need more information in order to help you:

  • Do you have error messages or warnings in the Matlab command window
  • Have you modified anything manually to the database?
  • Did they disappear after anything specific you did
  • Include some scree captures showing your Brainstorm database
    ...

To avoid spending days trying to restore a broken database structure, and eventually maybe losing some data or links, your best bet could be to restore the most recent backup of your database.

Hi Francois,

  • I did not get error message.
  • I did not modify anything.
    (I do not know how to attach local screenshot) I have all processed subjects in my protocol data folder but part of subjects do not show up in protocol subjects list.
    YuyuanAcnc

(I do not know how to attach local screenshot)

Google for learning how to copy the screen on your OS (ALT+PrintScreen on Windows), and paste it here (CTRL+V on Windows)

If you could post a full listing of the files in the process folder, that could help me diagnose any obvious issue.

Have you tried simply reloading the database?

If this doesn't work, and if I can't see anything obvious wrong on the database structure (the screen captures and listing you will post), I'm not sure how to help you further without having the database in hand.
Your fastest option to get your data back is maybe to restore your previous backup.

Figure p1 shows my data directory. Figure p2 and p3 are the subdirectories of a subject. Figure p4 is subjects directory in protocol where subjects 101 through 120 were missing. I reloaded Brainstorm but the lost subjects still do not show up. Since those files are still in protocol data folders so is there still possibility to re-link them?




Hi Francois,
This is the error message I got last time reload brainstorm for your information. I did not get error message from most recent start up of brainstorm:

MATLAB Version 9.8 (R2020a)
Image Processing Toolbox Version 11.1 (R2020a)
Optimization Toolbox Version 8.5 (R2020a)
RICOH MEG Reader toolbox for MATLAB Version 1.0.3
Signal Processing Toolbox Version 8.4 (R2020a)
Statistics and Machine Learning Toolbox Version 11.7 (R2020a)
Wavelet Toolbox Version 5.4 (R2020a)
Yokogawa MEG Reader toolbox for MATLAB Version 1.5.2
DB_FIX> Missing subject: "au101s1_2"...
DB_FIX> Missing subject: "au101s2_2"...
.........
DB_FIX> Missing subject: "au120s1_2"...
DB_FIX> Missing subject: "au120s2_2"...
DB_FIX> There were errors in protocol "BaPa9_12". You should reload the database...
BST> Saving protocol "BaPa9_12"...
BST> Saving protocol "BaPa9_12"...
BST> Emptying temporary directory...
BST> Brainstorm stopped.

The anatomy folder of the subjects may have been deleted, moved or renamed. Intentionally or not.
Try to work on understanding what is missing, from the description of the database structure here:
https://neuroimage.usc.edu/brainstorm/Tutorials/CreateProtocol#Database_structure
Compare the working subjects with the non-working ones.

This is due most likely to a problem in the manipulation of your database, or a deficiency in data storage.
Unfortunately, this is not something I can give you solutions to fix... You'd have to try and fix it yourself, maybe with moving the non-working subject folders out of the database, creating them again from Brainstorm, then moving the data links back in and reloading the database.
As suggested before, I still recommend you go back to your last backup instead of spending too many hours trying to fix these errors manually...

The DB_FIX messages, you should see them every time you try to reload the entire protocol.

Before you move any file: make a FULL BACKUP of your database.
If you don't have a regular backup of your database already set up, it's time to learn how to work in a safe environment.