RunICA differences between EEGLAB and Brainstorm

Hi,

I noticed that runica.m file included in Brainstorm is slightly different than the original EEGLAB file. I believe it is tailored to Brainstorm. Since there is randomness in the algorithm itself, I can not check if they produce the same results. What I wanted to know was whether if the algorithm calculates anything different than the original file or not.

Also, reset_randomseed option is excluded in Brainstorm’s version. Is there any particular reason for this?

Thank you in advance,
Best regards,

Hello,

I updated Brainstorm to match the latest runica.m distributed in EEGLAB.
I don’t think it will change anything, because the only modification was this new input parameter “reset_randomseed”, which is not set with the Brainstorm wrapper.

If you want to have a reproducible output, you can temporarily edit runica.m to force reset_randomseed to be 0, and/or add your own fixed rng initialization (eg. rand(‘state’,1))

Francois

Hello Francois,

Thank you for your help and the update.

Best regards,