[Eeglablist] Run REST plugin from the command line

pancy at udel.edu pancy at udel.edu
Fri Jul 28 13:41:32 PDT 2023


Dear Cedric, 

Thank you very much for developing these scripts for REST reference, I am looking for way to do it with script and I see your reply just at the moment that I need. I am grateful that you share your work. 

I am now trying to adapt it to my pipeline but I have one question: in the GUI, there is an option for choosing "original reference". I am using a fixed electrode rather than average. How can I specify it in the script? 

Is it this part in ref_infinity.m: 
% Ref to average
EEG.data = EEG.data - repmat(mean(EEG.data),size(EEG.data,1),1);

How can I change it to a "fixed electrode"? (in the GUI, I don't need to specify which one is the "fixed electrode". I don't know what I should use to replace "mean(EEG.data)" in the above script. The mastoid?)

Best, 
Pancy

-----Original Message-----
From: Cedric Cannard <ccannard at protonmail.com> 
Sent: Saturday, July 15, 2023 11:48 PM
To: eeglablist at sccn.ucsd.edu
Subject: Re: [Eeglablist] Run REST plugin from the command line

Dear Luisa,

I made a plugin to allow command line referencing with the REST method (same algorithms). See here: <a href="https://urldefense.com/v3/__https://github.com/amisepa/reference_infinity__;!!Mih3wA!FYYICgyeRto26lB5RSytzW9nJbkKzl0Ez3uhqOItkrAoAKW63R-F7lnJti2MAE4ja2_fMG2utwtmL_hGmH7baTNFdQ$">https://urldefense.com/v3/__https://github.com/amisepa/reference_infinity__;!!Mih3wA!BqlgiVyKOdbzJj8umTqTEriqdCqCyQsxHqIKS4o-LjmT9YbMnMpUKZaKGIe8M1_OB5aRmPl317onmBBT5xbL$ </a>

<a href="https://urldefense.com/v3/__https://github.com/amisepa/reference_infinityYou__;!!Mih3wA!FYYICgyeRto26lB5RSytzW9nJbkKzl0Ez3uhqOItkrAoAKW63R-F7lnJti2MAE4ja2_fMG2utwtmL_hGmH7oN_VS4Q$">https://urldefense.com/v3/__https://github.com/amisepa/reference_infinityYou__;!!Mih3wA!BqlgiVyKOdbzJj8umTqTEriqdCqCyQsxHqIKS4o-LjmT9YbMnMpUKZaKGIe8M1_OB5aRmPl317onmIj4CCOP$ </a> can install it via EEGLAB extension manager, there are some examples in the tuto.

Best,

Cedric Cannard, PhD

On Fri, Jul 14, 2023 at 15:54, Luisa Mwole via eeglablist <[eeglablist at sccn.ucsd.edu](mailto:On Fri, Jul 14, 2023 at 15:54, Luisa Mwole via eeglablist <<a href=)> wrote:

> Dear all,
>
> Could you please help me with some example code on how to run the REST 
> plugin from the command line? I couldn't find any hints on GitHub etc.
> Thanks!
>
> Kind regards
> Luisa Mwole
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to 
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to 
> eeglablist-request at sccn.ucsd.edu




More information about the eeglablist mailing list