Error in averaging PAC comodulogram from different subjects

Hi Brainstorm Team,

I am trying to get a grand-average comodulogram maps from different subjects but find an error:

In fact, I have 6 regions to perform. For the first 3 regions, it works; however, an error shows up when I perform the 4th region.

Thank you for taking time to check my question.

Best regards,
Chia-Hsiung

Hello,
We'll look into it and get back to you. There seems to be some bugs in averaging tPAC.
Best,
Marc

Most likely your error is due to trying to average files with different frequencies for phase. Please check your input files to make sure they all have the same .sPAC.LowFreqs. Let us know if that doesn't fix the error.

edit: Actually, there was a bug with indices that would explain this. An update is coming soon!

The PAC averaging process has been fixed. However, we're still discussing how to improve the tPAC process itself as none of the options would currently allow to do what I consider the ideal approach: averaging prior to collapsing across frequencies, i.e. comodulograms as you said. But the tPAC process does not save full comodulograms and doesn't currently allow averaging them.
https://github.com/brainstorm-tools/brainstorm3/pull/617

Thank you for your reply and help, Marc.

Chia-Hsiung