Giter Club home page Giter Club logo

Comments (14)

arnodelorme avatar arnodelorme commented on May 31, 2024

from clean_rawdata.

samuelsze333 avatar samuelsze333 commented on May 31, 2024

@arnodelorme
Dear Prof. Delorme,

I have just sent you a link to the dataset via email. Please have a look at it. Thank you for your reply and your help!

Best regards,
Samuel

from clean_rawdata.

arnodelorme avatar arnodelorme commented on May 31, 2024

from clean_rawdata.

arnodelorme avatar arnodelorme commented on May 31, 2024

This was because you have twice channel Cpz.

from clean_rawdata.

samuelsze333 avatar samuelsze333 commented on May 31, 2024

@arnodelorme

Thank you for your help and pointing out where the problem lies, Prof. Delorme. I tried to identify the second Cpz, but I can find one only. Please see the channel data plot below. Could you please tell me how I could exclude the second Cpz to prevent the error "vis_artifacts failed"? Thank you so much!

Screenshot (146)

Best regards,
Samuel

from clean_rawdata.

arnodelorme avatar arnodelorme commented on May 31, 2024

This is because your script adds a second channel CPz

EEG=pop_chanedit(EEG, 'lookup',fullfile(p, 'plugins','dipfit','standard_BEM','elec','standard_1005.elc'),'append',34,'changefield',{35,'labels','CPz'},'lookup',fullfile(p,'plugins','dipfit','standard_BEM','elec','standard_1005.elc'),'setref',{'1:34','CPz'});

from clean_rawdata.

arnodelorme avatar arnodelorme commented on May 31, 2024

I renamed it CPz2 and then was able to get the visualization. I have added a more informative error.

from clean_rawdata.

samuelsze333 avatar samuelsze333 commented on May 31, 2024

This is because your script adds a second channel CPz

EEG=pop_chanedit(EEG, 'lookup',fullfile(p, 'plugins','dipfit','standard_BEM','elec','standard_1005.elc'),'append',34,'changefield',{35,'labels','CPz'},'lookup',fullfile(p,'plugins','dipfit','standard_BEM','elec','standard_1005.elc'),'setref',{'1:34','CPz'});

@arnodelorme
Dear Prof. Delorme,

I am grateful for your reply.

I am sorry that I forgot to say the data were referenced to CPz online. Because the data were referenced to CPz online, CPz does not show up in the channel data plot. Below is what the channel data look originally after I import the data to EEGLAB. CPz does not appear.
Screenshot (147)

Therefore, I want to add back the online reference channel CPz. I follow the steps below.

First, I go to Edit > Channel locations, and I choose the default MMI coordinate file.
Screenshot (149)

Second, in the window, I go to the last channel page (i.e. Trigger), and I click "Append".
Screenshot (150)

Third, I type "CPz", which is the online reference channel, in the field "Channel label ("label")". Then, I click "Look up locs", and choose the MNI coordinate file again.
Screenshot (151)

Fourth, I click "Set reference", and type "1:34" in the field "Channel indices" and type "CPz" in the field "Reference".
Screenshot (153)

I follow the 4 steps above to specify that CPz is the reference channel. These steps result in the line of code you quoted:

EEG=pop_chanedit(EEG, 'lookup',fullfile(p, 'plugins','dipfit','standard_BEM','elec','standard_1005.elc'),'append',34,'changefield',{35,'labels','CPz'},'lookup',fullfile(p,'plugins','dipfit','standard_BEM','elec','standard_1005.elc'),'setref',{'1:34','CPz'});

Could I ask what I should do to add back the online reference channel CPz in the right way such that the dataset does not have 2 CPz?

I am so sorry that I have been asking so many questions. I really hope to learn how to solve this kind of problem but I am so inexperienced to solve them myself.

Best regards,
Samuel

from clean_rawdata.

samuelsze333 avatar samuelsze333 commented on May 31, 2024

Also, I have tried renaming CPz to CPz2. However, I still cannot plot rejected data after using "Clean_rawdata()".

I think how I do this is not standard but I rename the channel like this:

First, I type "CPz" to the field "Channel label ("label")", and I click "Look up locs" and choose the default MNI coordinate file.
Screenshot (155)

Second, I manually rename "CPz" to "CPz2" without changing any values in all fields. Then, I click "Set reference". I type "1:34" in the field "Channel indices", and type "CPz2" in the field "Reference".

Screenshot (156)

Thank you!

Best regards,
Samuel

from clean_rawdata.

arnodelorme avatar arnodelorme commented on May 31, 2024

from clean_rawdata.

samuelsze333 avatar samuelsze333 commented on May 31, 2024

@arnodelorme
No problem. Thank you for taking your time to help me!

from clean_rawdata.

arnodelorme avatar arnodelorme commented on May 31, 2024

from clean_rawdata.

Sacha-Assadourian avatar Sacha-Assadourian commented on May 31, 2024

Dear Professor Delorme,

I'm encountering the same problem with the actuals last version of matlab and eeglab, and version 2.8 of clean raw data. I'm loading eeg_data.set from the sample data file and then running clean raw data - ASR. I'm always getting the same error message (please see photos below).

Capture d’écran 2023-07-31 #1
Capture d’écran 2023-07-31 #2
Capture d’écran 2023-07-31 #3

Best regards,
Sacha Assadourian

from clean_rawdata.

Sacha-Assadourian avatar Sacha-Assadourian commented on May 31, 2024

Also, according to a recent video you've upload on youtube 4 month ago, i tried the manipulation on those following version : MatlabR 2021b and eeglab v2022.1. It's still not working.

Best regards,
Sacha Assadourian

from clean_rawdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.