[Eeglablist] Efficiently removing period of trials in complete study

Morteza Ansarinia ansarinia at me.com
Thu Feb 1 22:55:26 PST 2018


Hi Luuk,

You can write MATLAB scripts. Here is the tutorial: https://sccn.ucsd.edu/wiki/Chapter_02:_Writing_EEGLAB_Scripts <https://sccn.ucsd.edu/wiki/Chapter_02:_Writing_EEGLAB_Scripts>

I used to run all the processings manually by GUI only for a single subject, and then export what I did as a script using “File > History scripts > Save dataset history script”. You can then modify the script and run it on all datasets...

To extract epochs and remove baseline you can use something like this:

EEG = pop_epoch(EEG, {‘cond1’ 'cond2’}, [-1  2.5], 'epochinfo', 'yes');
EEG = eeg_checkset(EEG);
EEG = pop_rmbase(EEG, [-1000 0]);
EEG = eeg_checkset(EEG);

Best,
Morteza

> From: Luuk Lamens <luuklamens94 at gmail.com>
> Subject: [Eeglablist] Efficiently removing period of trials in complete study
> Date: February 1, 2018 at 7:23:33 PM GMT+3:30
> To: eeglablist at sccn.ucsd.edu
> 
> 
> Dear Eeglab-community
> 
>  
> 
> Currently I am perform EEG-analysis in eeglab and I am now facing a problem I could solve with a couple of hours work but I am curious (and would be relieved) if there is a more efficient way.
> 
>  
> 
> I have created a study of multiple datasets and each dataset consists of x number of trials, each trial lasts 3.5s (1s pre-stimulus and 2.5 post-stimulus). Now is there an easy way to remove the first second of each trial in all datasets in the whole study?
> 
>  
> 
> I could do it dataset by dataset with edit > select data function but this takes quite some time.
> 
>  
> 
> I hope you can help me, thanks in advance!
> 
>  
> 
> With kind regards,
> 
> Luuk Lamens
> 
> University of Amsterdam
> 
> 
> 
> 
> _______________________________________________
> eeglablist mailing list eeglablist at sccn.ucsd.edu
> Eeglablist page: http://www.sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsub at sccn.ucsd.edu
> To switch to non-digest mode, send an empty email to eeglablist-nodigest at sccn.ucsd.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20180202/ea958957/attachment.html>


More information about the eeglablist mailing list