Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

excluding the externals from being impacted by the function #28

Closed
DouweHorsthuis opened this issue Nov 5, 2021 · 5 comments
Closed

Comments

@DouweHorsthuis
Copy link

Hi,
I was wondering if there is a way to specifically not have externals included in this function. I want to be able to reference back later to these, but I don't see a option to add a channel range.
As an example I used to use EEG = pop_rejchan(EEG,'elec', [1:160],'threshold',5,'norm','on','measure','kurt');

But I would prefer to use the clean_artifacts function for this.

Thank you!
Douwe

@arnodelorme
Copy link
Contributor

We have implemented the fix

@DouweHorsthuis
Copy link
Author

Fantastic, thank you so much!

@DouweHorsthuis
Copy link
Author

Good afternoon,
I am currently using EEGLAB V2021.1 and the latest available update (V2.6) of clean_rawdata. And even though it is indeed possible to select a subset of channels. I always get an error after the data is cleaned, or it simply doesn't delete bad channels.

When I leave all the settings as is, and select all 64channels except for the 8 externals I get the following error:
image
(in case it doesn't show it says "Issue with adding back channels removed. Send us your data., This is not a bug (Error occurred in fuction clean_artifacts() at line 298)

To be sure this wasn't something on my side I uninstalled EEGLAB and re-downloaded a fresh one (v2021.1) and updated clean_raw to the last version. In this case:

If I only include the options to delete bad channels, and select 64 chns without externals it gives me the following error

image

However, if I run it using all the cleaning functions as they are selected through the gui, it runs without an error. However, even though it says in the command window that channels are being deleted, all 72 channels exist at the end.

Please let me know if there is anything I can do to stop this issue.
Thank you for your time,
Douwe

@MTSVis
Copy link

MTSVis commented Feb 14, 2023

Good afternoon, I am currently using EEGLAB V2021.1 and the latest available update (V2.6) of clean_rawdata. And even though it is indeed possible to select a subset of channels. I always get an error after the data is cleaned, or it simply doesn't delete bad channels.

When I leave all the settings as is, and select all 64channels except for the 8 externals I get the following error: image (in case it doesn't show it says "Issue with adding back channels removed. Send us your data., This is not a bug (Error occurred in fuction clean_artifacts() at line 298)

To be sure this wasn't something on my side I uninstalled EEGLAB and re-downloaded a fresh one (v2021.1) and updated clean_raw to the last version. In this case:

If I only include the options to delete bad channels, and select 64 chns without externals it gives me the following error

image

However, if I run it using all the cleaning functions as they are selected through the gui, it runs without an error. However, even though it says in the command window that channels are being deleted, all 72 channels exist at the end.

Please let me know if there is anything I can do to stop this issue. Thank you for your time, Douwe

Having the same problem with EGI data.

@DouweHorsthuis
Copy link
Author

I tried it right after the 2022 update and it didn't work for me then, haven't tried it since

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants