[Eeglablist] Why does basic filter gives an error in one particular dataset, but not in the others?

Andreas Widmann widmann at uni-leipzig.de
Tue Oct 16 08:33:24 PDT 2018


Hi Amelie,

pop_basicfilter is an ERPLAB function. I suggest reporting the problem in the ERPLAB mailing list (https://erpinfo.org/erplab-email-list).

Best,
Andreas

> Am 15.10.2018 um 13:35 schrieb Roi, la, A. <a.la.roi at rug.nl>:
> 
> Dear list,
> 
> When preprocessing my data, I use the ERPLAB toolbox to filter the data with a 1-50 Hz bandpass filter. See the following code:
> 
> EEG = pop_loadset; % load the 'IAS1_pruned_[ppnr]' dataset from your data folder that pops up
> EEG  = pop_basicfilter( EEG,  1:64 , 'Boundary', 'boundary', 'Cutoff', [ 1 50], 'Design', 'butter', 'Filter', 'bandpass', 'Order',  2, 'RemoveDC', 'on' );
> 
> % Rename the dataset
> EEG.setname='IAS1_1-50filter_19';
> EEG = eeg_checkset( EEG );
> 
> % Save the dataset
> EEG = pop_saveset( EEG,...
>     'filename','IAS1_1-50filter_19.set','filepath','Y:\\staff\\let\\SemanticsAndCognition\\LaRoi\\PhD\\Study 1 - EEG+priming task\\Data\\EEG\\Preprocessing\\');
> EEG = eeg_checkset( EEG );
> 
> 
> 
> For all participants, this worked fine. However, for one particular participant I get an error when running the following code. The error message is the following:
> 
> Index in position 2 exceeds array bounds (must not exceed 124).
> 
> Error in removedc (line 57)
> meanvalue = mean(data(chanArray,windowsam(1):windowsam(2)),2);
> 
> Error in basicfilter (line 240)
>                               EEG.data(chanArray,bp1:bp2,j) = removedc(EEG.data(chanArray,bp1:bp2,j), round(EEG.srate/2));
> 
> Error in pop_basicfilter (line 298)
> [EEG, ferror] = basicfilter( EEG, options2{:});
> 
> I don't no where this error comes from and how I can solve it, since I'm doing exactly the same for all participants. Could you help me out? I added the relevant dataset to the attachment.
> 
> Many thanks in advance.
> 
> Kind regards,
> Amélie la Roi
> PhD candidate University of Groningen, the Netherlands
>  IAS1_pruned_19.fdt
>  IAS1_pruned_19.set
> 
> 
> 
> -- 
> Amélie la Roi, MA
> PhD student CLCG, Semantics and Cognition
> University of Groningen, the Netherlands
> Harmony building, room 1311.0412 | Phone: +31 50 363 6683
> 
> _______________________________________________
> 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