I tried to calculate NxN functional connectivity using Envelope Correlation [2022]. But the error message was returned as captured here. I also attached a capture file in that I used the parameters in this analysis. Please let me know to way to run this connectivity program correctly.
You spotted an implementation issue with the option "Split large files":
the number of samples used in each block was not always an integer, leading to the error you observed.
Investigating this error, I realized that there were other issues in the implementation of this splitting option:
The last block considered might include only a few data samples padded with zeros
The function crashes if each split block is shorter than 5 seconds
Thank you for your reply. The bst_henv.m worked using the same parameter by modifying the program as you showed. But it took a lot of time to complete the connectivity analysis compared with an old version of the Amplitude Envelope Correlation program. Please let me know why this program needs more time than an older one.
If you used exactly the same process, then the computation time difference is probably to different options selected. You are processing 300s at once, which is extremely long...
Thank you.
I think the AEC analysis previously I used on the Brainstorm has finished faster than the current version.
Could you let me know why the latest Envelope Correlation version needs more time to complete the AEC analysis than the older versions?
Please post screen captures of the options you used in both cases, and copy here the computation time for both methods.
You can enable again the old processes by moving the files brainstorm3/toolbox/process/deprecated/process_aec*.m to folder brainstorm3/toolbox/process/functions.
However, I could not obtain strictly the same results between the old AEC and the new EC processes. There are slight differences in the expected results.
I computed EC using the latest version of Brainstorm and obtained the EC result at maybe 3 minutes. Thank you!
Could you let me know why it took a lot of time to calculate EC by the previous version if you don't mind?