Hi Francois and Martin,
I recently read a paper about PLV (Bruña et al., 2018) that proposes a new, faster and less biased way of computing PLV, even when assessing whole-brain connectivity. The paper includes their Matlab code.
I know your to-do list is long but could this be included in Brainstorm at some point?
As you mentioned, we have other priorities, so we cannot add this functionality to the Brainstorm at this time. Please consider that adding a new function needs several steps like necessity, validating the algorithm and simulations.
If we decide that it's the default and that PLV becomes ciPLV, then it's easy for me.
Otherwise if we have to add a new measure, better I send you the modification directly.
Ideally, you should be able to replace the case 'plv' with your code and it should work.
I will add your code to a new case ciplv and add everything else needed in the rest of the software so that the output files are recognized correctly everywhere.
I haven't forgotten about your request. We will discuss this with the rest of the Brainstorm team at our biweekly meeting next week. Then I will need a few extra days to implement the new option in the PLV process.
Please be patient
Thanks, and no hurry at all!
As a matter of fact in this case the delay was beneficial so I could double check the code and correct some inconsistencies.
Please feel free to ping me in case you need something when you discuss the implementation.