[Eeglablist] Re-reference multiple datasets

Tarik S Bel-Bahar tarikbelbahar at gmail.com
Wed Apr 20 11:37:33 PDT 2016


Hello Laura, a few thoughts below, hoping everyone is having a blast at
NE.Best wishes.

In general please try to make sure you are using the latest version of
eeglab, version 13
http://sccn.ucsd.edu/eeglab/downloadtoolbox.html

I don't think all single-subject single-file functions are enabled for
eeglab when in study mode,
but I may be wrong. Please take a look if you haven't through the extensive
STUDY documentation in the online eeglab wiki.

Here's a matlab codelet below that should help you to rereference any files
you have, as long as they loaded into memory.

%first load all the files you want re-referenced into memory or load the
study that has them
%make sure one file currently active, not the whole study
%the code below will loop through each loaded file , re-reference, changes
filename, save it to disk, and leave it in memory
%after re-referencing it would like be best to rebuild your study with the
new files and/or recompute your study metrics.

for numberofcurrentfile = 1:length(ALLEEG)
[ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG,
CURRENTSET,'retrieve',numberofcurrentfile,'study',0);
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, CURRENTSET);
howmanychannels =EEG.nbchan; % determines current channel number
EEG = pop_reref( EEG, 1: howmanychannels, 'keepref', 'on' );
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, CURRENTSET );
newfilename = [ EEG.filename(1:end-4) '_reref'];
EEG = pop_saveset( EEG,'filename',  EEG.filename,'filepath', EEG.filepath );
[ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, CURRENTSET);  eeglab
redraw
end










On Tue, Apr 19, 2016 at 7: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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20160420/48646ec8/attachment.html>


More information about the eeglablist mailing list