[Eeglablist] Re-reference multiple datasets

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Wed Apr 20 20:09:31 PDT 2016


Dear Laura,

> Currently (v6.x-), functions that can process multiple datasets include
functions that resample the data, filter the data, *re-reference* the data,
remove channel baselines, and run ICA."

I did not know that. If it does not work with the current version, maybe
that option is not supported any more. Sometimes it happens.

See my suggested code below for the batch process. Good luck.

Makoto

cd /data/projects/---------------------
allFiles = dir('*.set');
for n = 1:length(allFiles)
    loadName = allFiles(n).name;
    dataName = loadName(1:3);

    % Load data.
    EEG = pop_loadset('filename', loadName, 'filepath',
'/data/projects/---------------');
    EEG.setname = dataName;

    % Apply average rereference.
    EEG = pop_reref(EEG, []);

    % Save data.
    pop_saveset(EEG, 'filename', dataName, 'filepath',
'/data/projects/-----------------');
end



On Tue, Apr 19, 2016 at 4:28 PM, Laura Dubreuil Vall <
laura.dubreuil at neuroelectrics.com> wrote:

> Hello,
>
> I am trying to re-reference multiple datasets from a STUDY, but apparently
> EEGlab only allows me to re-reference one dataset at a time (not all of
> them at the same time). However, the EEGlab tutorial it says:
>
> "EEGLAB functions available through the EEGLAB menu that can process
> multiple datasets can be seen in the Tools menu. When there are multiple
> current datasets, menu items unable to process multiple datasets are
> disabled. Currently (v6.x-), functions that can process multiple datasets
> include functions that resample the data, filter the data, *re-reference*
> the data, remove channel baselines, and run ICA."
>
> While I have multiple datasets selected (and all of them have the same
> channel locations), the Re-reference options under Tools menu is disabled.
> Am I doing something wrong?
>
> Apologies if this has been previously asked; I couldn’t find it in the
> previous threads.
>
> Thank you very much in advance,
>
> Laura Dubreuil Vall
> Technical Manager
> *e-mail: laura.dubreuil at neuroelectrics.com
> <laura.dubreuil at neuroelectrics.com>*
> *cellphone: +1 617 390 6447 <%2B1%20617%20390%206447>*
> __________________________________________________
> *US Offices: European Offices:210 Broadway, Suite 201 Av. Tibidabo, 47
> bisCambridge, MA, 02139 08035, Barcelona, Spain                tel: +34 93
> 254 03 63 <%2B34%2093%20254%2003%2063> fax.: +34 93 212 64 45
> <%2B34%2093%20212%2064%2045>__________________________________________________*
> *Neuroelectrics, * www.neuroelectrics.com
>
> Click here <http://www.neuroelectrics.com/node/61> to read our e-mail
> confidentiality and data protection policy
>
>
> _______________________________________________
> 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
>



-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20160420/5946e286/attachment.html>


More information about the eeglablist mailing list