File naming
Plan in advance how you want to name your files. You may have different conditions or times of measurement. Plan also for how you want to name the files if you have to stop recordings. For recording you do not have to consider the BIDS format as this is implemented at a later stage. However, it is good to have a consistent naming scheme from the start but make sure the name contains task/conditions.
Recommendations
- Keep filenames consistent across acquisition modalities.
- Use comprehensible but short abbreviations for task names and conditions.
- Avoid underscore (_) and hyphen (-) in the filename as these are used in BIDS format. Use instead camel case (e.g.,
GoNoGo). - Special characters and spaces are not allowed.
Multiple recordings of same task/condition
On SQUID acquisition computer
If you need to split a recording into multiple files, add a suffix (eg. A, B or 1, 2). Note that if using the preprocessing pipelines, MaxFilter will be applied to each file separately, but continuous head movement estimation will be done across files if merge option is set. In the BIDS conversion, the files will be flagged for check and you have the option to add a run number.
On OPM acquisition computer
As a timestamp added to each file, there is no need to add a suffix. If using the preprocessing pipelines, the copy_to_cerberos.py script will add suffix _dupX to files with the same name after removing the timestamp. In the BIDS conversion, the files will be flagged for check and you have the option to add a run number.
If possible, check and rename files right after the recording session to avoid confusion later. There are several options to do this, see below.
Issues
Fixing wrong filenames of recordings
Problem: One or more recording is saved with a wrong filename
Solution: rename filenames (three ways)
- Open a terminal
- cd to data folder (replace text with the text that applies your project):
/neuro/data/sinhue/your_project_name/NatMEG_number/YYMMDD
- Rename the file:
mv old_filename.fif new_filename.fif
- Press enter.
- cd to data folder (replace text with the text that applies your project):
! Be aware that if a file with the new filename already exists, it will be overwritten with no option to recover the lost data. Rename any overlapping named file first.
-
Open folder window
- Go to /neuro/data/sinhue/your_project_name
- Right click and rename file
-
Open BeyondCompare
- Open your project path
- Right click and rename file ! Using BeyondCompare on DANA you can also rename files you have uploaded to Archive