Hyperscanning: Interbrain phase coherence

Hi Jared,

I thought you were expecting to do only sensor-level analysis, and for that case you didn't need any special database manipulation. But indeed, for source analysis you need to reorganize the data to separate the two subjects.

I think it might be easier to try to separate the two subjects very early in the process, keeping the two sets of electrodes in the same files will make the source analysis very complicated.

  1. Create a first subject with the option "Default channel file: No, use one channel file per acquisition run".
  2. Import 1s of recordings, rename the folder (eg. "Target")
  3. Edit the channel file:
    • right-click > File > Export to Matlab > "ChannelMat",
    • select the elements of ChannelMat.Channel corresponding to the first subject: ChannelMat.Channel = ChannelMat.Channel(iChanSubj1)
    • right-click > File Import from Matlab
  4. Edit the data file, proceed in the same way (import/export data structure):
    • DataMat.F = DataMat.F(iChanSubj1, :)
    • DataMat.ChannelFlag = DataMat.ChannelFlag (iChanSubj1)
  5. Import the full recording session (with the menu "Import MEG/EEG", all options disabled): it was important to rename the first folder imported so that this one gets imported in a different folder
  6. In Process1: select first the "target" 1s recordings, then the full recordings
  7. Run process "Standardize > Uniform list of channels" with option "Use the first channel file in the list". You get your continuous recordings for the first subject only in output.
  8. To be able to process it as a continuous file again, right-click on the full recordings > Review as raw (and if you need you can even re-export this file to an EDF+ if you need to process it with a different program)
  9. Repeat everything for the second subject, then run your analysis pipeline on both (pre-processing, source estimation)
  10. Generate the signals for your ROIs with the process "Extract > Scout times series", and use these "matrix" files to compute the inter- and intra-subject coherence (do not create extra channel files and put your scout signals into recordings file...)

Does it make sense?
Francois