Skip to content

Having brainstorm database self contained, by default #811

@Edouard2laire

Description

@Edouard2laire

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

  1. The database can now be moved. No pain about the broken link. No pain associated with the 'Copy raw file to database'

  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions