When I followed the "Time-resolved PAC estimation with tPAC" tutorial (https://neuroimage.usc.edu/brainstorm/Tutorials/TutPac), results from
Version: 08-Feb-2021 and Version: 25-Jul-2018 are different. The result from the old version looks similar to the web.
The filter bank of the PAC analysis changed accordingly.
We did not consider maintaining the older version in the code, as we did not want to keep to versions of the filtering functions, because of the confusion it would bring in the interface and in the code.
If you want a strict reproduction of the old PAC results, you can use that older version of Brainstorm, but except for the strict reproducibility of published results, we don't recommend it.
Please recognized that the current tPAC does not estimate PAC well from the commit of 25-Feb-2019 until now. No peak appears at 0-10 sec from the synthesized data.
I compute again using the latest codes from Github and confirmed the results.
We need to include this for the exact reproducibility of the results that are illustrated.
Please send me the description, I will add it to the tutorial.
And could you check the results reported in this thread?
Sorry for the late reply, Folks: @wito: the absence of tPAC peak over 0-10s is indeed very strange. Would you mind posting a snapshot of the original time series, please?
I have just seen the post. Sorry I was not much involved in maintaining PAC after this filter update. I think it could be a serious problem which needs close attention (not sure what changed there but would be great to double check everything related to this filter process). @Sylvain: could someone from the lab double check it please? Thank you!
@wito
The PR is now merged. You can update Brainstorm and try again.
The tPAC computation should now use the older implementation of the filters and produce exactly the same results as before, and as illustrated in the tutorials.
@Sylvain's team is now investigating why this change of filter implementation caused such important differences in the tPAC evaluation.
We have fixed the issues reported in this thread -- thank you for your kind patience and please update your Brainstorm version.
The results are now similar to those from the original documentation.
We have also added a new parameter that helps define the frequency resolution of the band of interest for the nested oscillations (frequency for amplitude). It can help refine the identification of the PAC modes in the data.
As before, the PAC time-frequency representations can be smoothed using the visualization panel.
Thank you again for reporting this issue!