sccn / eeglab

EEGLAB is an open source signal processing environment for electrophysiological signals running on Matlab and developed at the SCCN/UCSD

Home Page:https://eeglab.ucsd.edu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ICLabel error on Linux (default option)

tadeshi88 opened this issue · comments

ICLabel is not working on Linux with the default option, resulting in the below error.

image

The ICversions Lite/Beta functions seamlessly. All ICversions worked on two Windows machines I tested with identical Matlab/EEGLab versions. Thus, likely a Linux-specific issue.

The issue is within the following Matlab function:
Matlab2023b/toolbox/signal/signal/+signal/+internal/+resample/uniformResample.m
An associated workspace has been saved to aid in debugging. The code execution is interrupted just before the line causing the crash.

workspace.zip

Versions

image
EEGLAB v 2023.1

We primarily use Linux (although not Ubuntu - CentOS) and have no problem with ICLabel. Can you share your dataset with ICA weights prior to running ICLabel?

Thanks for your response.

I've encountered the reported issue while working with the BrainBeats tutorial, using a sample dataset from their repository https://github.com/amisepa/BrainBeats/tree/v1.4/sample_data

To replicate the error, I loaded the specified file and performed ICA decomposition using:

EEG = pop_loadset;
and
EEG = pop_runica(EEG, 'icatype', 'picard', 'maxiter', 500);

Without any additional processing, the data results in a substantial number of components. However, this is not the cause of problem, as the same process works on another system or on my Ubuntu with a different IC version.

The dataset after importing and ICA decomposition, but before running ICLabel, is under the following Google Drive link:
Dataset Link

As a temporary workaround, I have adjusted the default ICLabel option to "beta," which allows both ICLabel and BrainBeats to function correctly.

@amisepa can you pitch in? Does this dataset has EEG?

We have already exchanged a few emails about this strange issue and I thought it might be a Linux issue since it works with on Windows and Mac. If this is the sample dataset from BrainBeats, it contains 64 EEG channels, 1 ECG channel and 1 PPG channel. BrainBeats automatically deals with the heart ones. Did you remove them here?

I loaded the file, there are only the 65 EEG channels, as expected. However, the ICA weights are not there, suggesting you did not run ICA (or at least you did not save the file after running it):
image

I ran ICA and ICLabel worked fine. Not sure what the issue could be.

Strange. Let’s close the issue and reopen it if we get more insight as to what the problem might be.

Thank you for your help. I've recently transferred the work to another machine, where it works. Our Linux server hosts a variety of plugins, some of which may be outdated. I suspect this might be the root of the issue. I will investigate and keep you informed once I've successfully identified the problem.