[Eeglablist] Rejecting continuous data with script: "events were corrupted" (BUG 1971)

Marco Buiatti marco.buiatti at gmail.com
Wed Feb 24 08:28:31 PST 2021


Dear Arnaud and Shaoyun,

I am interested in following up this issue as I have a similar one:
when using the command
EEG = pop_select( EEG,'time',segment);

I retrieve the following warning:
>> EEG1 = pop_select( EEG,'time',[33 53]);
eeg_insertbound(): 2 boundary (break) events added.
eeg_checkset note: upper time limit (xmax) adjusted so
(xmax-xmin)*srate+1 = number of frames
Warning: duplicate boundary event removed
eeg_insertbound(): 2 boundary (break) events added.
eeg_insertbound(): event latencies recomputed and 1 events removed.
Warning: Discrepency when recomputing event latency.
Try to reproduce the problem and send us your dataset
> In eeg_eegrej (line 203)
  In pop_select (line 557)
Warning: Inconsistency in boundary event duration.
Try to reproduce the problem and send us your dataset
> In eeg_eegrej (line 218)
  In pop_select (line 557)

that does not depend on the segment used.

EEGLAB version 2021.0 (downloaded today).

Thanks for your feedback,

Best,

Marco

On Thu, 24 Oct 2019 at 12:11, Shaoyun Yu <s.yu at nagoya-u.jp> wrote:
>
> Dear Arnaud,
>
> Thank you very much for your reply.
> I have tried "EEG = eeg_eegrej(EEG, [1 100; 500 600])", but the bug
> still occurs with my dataset:
>
>  >> EEG = eeg_eegrej(EEG, [1 100; 500 600]);
> eeg_insertbound(): 2 boundary (break) events added.
> Warning: converting all event types to strings
> eeg_insertbound(): 2 boundary (break) events added.
> BUG 1971 WARNING: IF YOU ARE USING A SCRIPT WITTEN FOR A PREVIOUS VERSION OF
> EEGLAB TO CALL THIS FUNCTION, BECAUSE YOU ARE REJECTING THE ONSET OF THE
> DATA,
> EVENTS WERE CORRUPTED. EVENT LATENCIES ARE NOW CORRECT (SEE
> https://sccn.ucsd.edu/wiki/EEGLAB_bug1971);
>
> Unfortunately, it seems that I do not have permission to the Google
> Drive link.
> I have uploaded one of my datasets to the URL below (both the original
> BioSemi BDF and a smaller down-sampled dataset).
> https://urldefense.com/v3/__https://drive.google.com/drive/folders/1WJtkjMohN068S_nJIXZkK2ST9ObjIoad?usp=sharing__;!!Mih3wA!XRpaa4OIOhNu_bU3iUb3flTJyJ7h6RzMVR8CwsvjHUhccFvriigPjF7iEjYoAmVZuBrfYA$ 
> I will really appreciate it if you could check if there are any
> consistency issues after rejection.
>
> Thank you,
> Shaoyun
>
> > From: eeglablist <eeglablist-bounces at sccn.ucsd.edu> on behalf of
> > Delorme, Arnaud <adelorme at ucsd.edu>
> > Sent: Thursday, October 24, 2019 2:39
> > Cc: EEGLAB List
> > Subject: Re: [Eeglablist] Rejecting continuous data with script:
> > "events were corrupted" (BUG 1971)
> >
> > Dear Shaoyun Yu,
> >
> > Yes, the message appear when you enter "EEG = eeg_eegrej(EEG, [0 100;
> > 500 600]);”
> > I have tried two other datasets and it does not appear when you enter
> > "EEG = eeg_eegrej(EEG, [1 100; 500 600]);”
> >
> > Note that the EEGLAB history will never generate a limit with 0 (since
> > the first sample is 1) so this is only if you manually enter the limit
> > when calling the function. Therefore most often this bug (which only
> > occurs in EEGLAB version up to 2016) is not a problem. More details
> > are available at https://sccn.ucsd.edu/wiki/EEGLAB_bug1971
> > <https://sccn.ucsd.edu/wiki/EEGLAB_bug1971>
> >
> > We now have a complex process that checks the consistency of different
> > methods and show this warning when there is lack of consistency. The
> > issue is usually about adding boundary events at the data limits when
> > you reject the beginning or the end of the data and I have not seen
> > any discrepancy associated with actual rejection. In any case, would
> > you mind to share your dataset so we can look into it at
> > https://urldefense.com/v3/__https://drive.google.com/open?id=1ob2DUgGQWVf2xAbbo6o3yMfdMWRPyFZJ__;!!Mih3wA!XRpaa4OIOhNu_bU3iUb3flTJyJ7h6RzMVR8CwsvjHUhccFvriigPjF7iEjYoAmVgBYN_5w$ 
> > (just drag and drop).
> >
> > Best wishes,
> >
> > Arno
> >
> > > On Oct 22, 2019, at 8:56 PM, Shaoyun Yu <s.yu at nagoya-u.jp> wrote:
> > >
> > > Hello,
> > >
> > > I am trying to reject the data during rest breaks before cleaning
> > with ASR because these periods often contain a lot of EMG and other
> > noises. I also decided to remove the idle periods before and after the
> > experiment.
> > >
> > > If I pass an array of time regions to eeg_eegrej, e.g.:
> > >
> > > ```EEG = eeg_eegrej(EEG, [0 100; 500 600]);
> > > ```
> > >
> > > Bug 1971 will occur with the warning:
> > >
> > > BUG 1971 WARNING: IF YOU ARE USING A SCRIPT WITTEN FOR A PREVIOUS
> > VERSION OF
> > > EEGLAB TO CALL THIS FUNCTION, BECAUSE YOU ARE REJECTING THE ONSET OF
> > THE DATA,
> > > EVENTS WERE CORRUPTED. EVENT LATENCIES ARE NOW CORRECT (SEE
> > https://sccn.ucsd.edu/wiki/EEGLAB_bug1971
> > <https://sccn.ucsd.edu/wiki/EEGLAB_bug1971>);
> > >
> > > Interestingly, the bug will still happen even if point 0 is not
> > included: eeg_eegrej(EEG, [500 600])
> > > What are the implications of this bug when I do rejection in
> > scripts? Would it cause any distortion to the data?
> > > I am running on EEGLAB v14.1.2.
> > >
> > > Thank you,
> > >
> > > Shaoyun Yu
> > > Doctoral student, Graduate School of Humanities
> > > Nagoya University
> > > s.yu at nagoya-u.jp <mailto:s.yu at nagoya-u.jp> | s.yu at pm.me
> > <mailto:s.yu at pm.me>
> > > _______________________________________________
> > > 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
> >
> > _______________________________________________
> > 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
> _______________________________________________
> 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



-- 
Marco Buiatti

Neonatal Neuroimaging Unit
Center for Mind/Brain Sciences
University of Trento,
Piazza della Manifattura 1, 38068 Rovereto (TN), Italy
E-mail: marco.buiatti at unitn.it
Phone: +39 0464-808178
https://urldefense.com/v3/__https://sites.google.com/a/unitn.it/marcobuiatti/__;!!Mih3wA!XRpaa4OIOhNu_bU3iUb3flTJyJ7h6RzMVR8CwsvjHUhccFvriigPjF7iEjYoAmUh4tV-xQ$ 

***********************************************


More information about the eeglablist mailing list