EEG Coordinates
- Open MATLAB, run brainstorm
- Use default anatomy ICBM 152
- File > new subject > use default anatomy
- Import EEG
- Can select all data or just one trigger type
- Right click on subject > Review raw file > Imports raw data
- Right click on channels > MRI registration > Refine using head points
- Right click on channels > MRI registration > Edit
- Project labels to surface
- Refine registration to head points
- Ok
- Yes
- Right click on channels > Edit channel file
- Allows you to se the channel loc coordinates
- Right click on channels > File > Export to matlab
- Go to convertCoor.m
- Change the 'Type' in the EEG struct from 'EEG' to 'ECOG'
- Go back to Brainstorm
- Right click on channels > File > Import from matlab > select struct with 'ECOG' type
- Right click on channels > MRI registration ? Edit … (cortex)
- Project electrodes on surface
- Ok
- Yes
- Right click on channels > File > Export to matlab
- Go to anatomy page in brainstorm > Right click on MRI: ICBM152 > File > Export to Matlab
- In matlab run loop to get x y z loc data array
- Run cs_convert to transpose those coordinates to MNI (*1000 to put into correct units)
- Save out as table
- Open terminal
- ssh -Y r
- cd to directory with bash script
- vim EEGcoordinatesAtlas.bash if you need to edit the script
- Click 'a' to insert
- esc to exit insert mode
- Type ':wq' to write and quit
- bash EEGcoordinatesAtlas.bash to run