[Eeglablist] visualization of rejmanual timepoints
Cedric Cannard
ccannard at protonmail.com
Tue Jan 24 13:01:17 PST 2023
Dear Agatha,
While I don't know about this previous feature, here is how you can 1) make a copy of your EEG dataset, 2) remove bad portions from that copy, 3) visualize the differences, and 4) remove these segments from original dataset if satisfied.
EEG2 = EEG; % copy
pop_eegplot(EEG2,1,1,1); % plot and remove bad segments manually
vis_artifacts(EEG2,EEG); % compare (removed segments are in red)
mask = sum(abs(EEG.data-EEG2.data),1) > 1e-10; % mask index of bad samples
badData = reshape(find(diff([false mask false])),2,[])'; % reshape for pop_select function
badData(:,2) = badData(:,2)-1; % fix latency
cleanEEG = pop_select(EEG,'nopoint',badData);
Hope this helps,
Cedric
------- Original Message -------
On Monday, January 23rd, 2023 at 10:07 AM, Agatha Lenartowicz <alenarto at g.ucla.edu> wrote:
> Hi all.
>
> It used to be possible to select bad time windows via visual inspection (or otherwise) without actually REJECTing those time points. These would just be saved in EEG.reject.rejmanual. And they could later be viewed and modified.
>
> In 2022 it looks like this ability to visual inspect rejection-marked epochs has been removed.
>
> Is that correct? Is there a way to get this functionality back?
> Thanks!
> Agatha
>
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Agatha Lenartowicz, Ph.D.
> https://urldefense.com/v3/__http://www.agathalenartowicz.com__;!!Mih3wA!Hf_fuMWsUg6_m8hJuGFqzGcI7OQRWkvADSV8oUm78CTOUUlXIvsG5pobFmVgp88AQqfPg6jC1DxfGnktWs0Q8wz5_A$ <https://urldefense.com/v3/__http://www.agathalenartowicz.com/__;!!Mih3wA!Hf_fuMWsUg6_m8hJuGFqzGcI7OQRWkvADSV8oUm78CTOUUlXIvsG5pobFmVgp88AQqfPg6jC1DxfGnktWs2-jg0X0w$ >
>
>
> Associate Professor
> Semel Institute for Neuroscience and Human Behavior
> Department of Psychiatry and Biobehavioral Sciences
> Brain Research Institute
>
> Managing Director Neuroimaging Center for Cognitive Neuroscience
> https://urldefense.com/v3/__https://www.semel.ucla.edu/staglin__;!!Mih3wA!Hf_fuMWsUg6_m8hJuGFqzGcI7OQRWkvADSV8oUm78CTOUUlXIvsG5pobFmVgp88AQqfPg6jC1DxfGnktWs1vUnexgw$ <https://urldefense.com/v3/__https://www.semel.ucla.edu/staglin__;!!Mih3wA!Hf_fuMWsUg6_m8hJuGFqzGcI7OQRWkvADSV8oUm78CTOUUlXIvsG5pobFmVgp88AQqfPg6jC1DxfGnktWs1vUnexgw$ >
>
>
> University of California Los Angeles
> 760 Westwood Plaza, Suite 27-370B
> Los Angeles, CA 90095
> 310.794.5641 (x45641)
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> 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