Generate surrogate data error

Hi @Samiee

Thanks for the clarification on surrogate tPAC.

I am still facing two issue.

  1. I am unable to extract comodulogram from the tPAC full matrix.
    Even for an individual subject. Here's the error I get -
    I add the tPAC: ROI (Full) matrix in process 1.

** Error: [process_pac_comod] Frequency > Time-resolved Phase-Amplitude Coupling > Extracting comodulogram from tPAC maps
** Line 405: Index exceeds the number of array elements (0).
**
** Call stack:
** >process_pac_comod.m>Compute at 405
** >process_pac_comod.m>Run at 204
** >process_pac_comod.m at 39
** >bst_process.m>Run at 230
** >bst_process.m at 37
** >panel_process1.m>RunProcess at 151
** >panel_process1.m at 26
** >gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 788
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_Callback) at 312
**
**
** File: Group_analysis/CA_IM1/timefreq_dpac_fullmaps_210226_2351.mat
**


  1. I am also unable to average the tPAC maps to generate one representative comodulogram per group.
    I add all the tPAC: ROI (Full) in process 1 -> Basic analysis of tPAC maps -> mean (over sources).
    But this is producing a mean file per participant, rather than one for an entire group.

Thanks for your help.