-
Notifications
You must be signed in to change notification settings - Fork 173
Description
Currently, managing files linked to a brainstorm database is a pain. Some file are in brainstorm, some files are link to files outside brainstorm: .snirf are converted and stored in the brainstorm database, .eeg are link. .edf are linked, except if imported using FieldTrip when they are stored in the brainstorm database.
-> So that if you move your database, it break.
-> Move the location of the data, it break
-> Rename the data to follow bids standard, it break.
Yeah, there is the copy raw file to database, but this will convert all file to .bst and import them in the database, add an ugly tag saying 'copy' to the file, and doesn't solve the underlying problem. Knowing that every time, I receive a database from someone, half of the links are broken, because they didn't copied the link in the database.
Proposition
-> For each protocol, add a folder called 'source_data', in addition to anat, and data
-> Every time, as file* is linked to the database, copy the file to source_data and then link the file to the database, using a relative path
*Note: also works when importing anatomical file, freesurfer folder ...
Advantage
-
The database can now be moved. No pain about the broken link. No pain associated with the 'Copy raw file to database'
-
Continious file can now be renamed. Want to tidy up the database, and have file properly named? We can now change their name in brainstorm, updating the name of the underlying file. Because the file is a copy, there is no risk of breaking another person's database.
Regards,
Edouard