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

signalTypeIndicator = 'UseICs' may require additional steps for loading in topomaps from .mat files #9

Open
3x10e8 opened this issue Feb 3, 2024 · 0 comments

Comments

@3x10e8
Copy link

3x10e8 commented Feb 3, 2024

Hello,
I am trying to extract eye blinks from IC components, but some of the eyeCatcher private/*.mat files that need to be loaded for this don't appear to import correctly:

Warning: Variable 'pooledEyeScalpmap' originally saved as a scalpmap cannot
be instantiated as an object and will be read in as a uint32.

The pooledEyeScalpmap.mat file itself is >90M, but the imported vector is only 6x1 uint32.

The issue here might be more eyeCatcher related and not BLINKER related, but I thought I'd ask here since the last IC-related commit here was more recent than the last .mat files pushed to eyeCatcher.

The issue appears to come from the following load lines:

load('pooledEyeScalpmap.mat'); % load pooledEyeScalpmap varaible
load('eyeChannelWeightNormalizedPart1.mat'); % load eyeChannelWeightNormalizedPart1 variable
load('eyeChannelWeightNormalizedPart2.mat'); % load eyeChannelWeightNormalizedPart1 variable

Commands used to run BLINKER on an EEGLAB set:

% First ran ICA so IC components would be available to BLINKER:
OUTEEG = pop_runica(ALLEEG)
params = checkBlinkerDefaults(struct(), getBlinkerDefaults(OUTEEG));

% Then updated parameters so BLINKER would use ICs:
params.signalTypeIndicator = 'UseICs';
% removed lines for brevity

[OUTEEG, com, blinks, blinkFits, blinkProperties, ...
                     blinkStatistics, params] = pop_blinker(OUTEEG, params);

Complete error trace seen (in context of the eyeCatch object being created):

Dot indexing is not supported for variables of this type.

Error in pr.eyeCatch (line 44)
            if size(obj.eyeChannelWeightNormalized,1) ~=
            obj.eyeScalpmapDatabase.numberOfScalpmaps

Error in getCandidateICs (line 61)
eyeDetector = pr.eyeCatch;

Error in getCandidateSignals (line 51)
         signalLabels, params] = getCandidateICs(EEG, params);

Error in extractBlinksEEG (line 44)
                signalLabels, params] = getCandidateSignals(EEG, params);

Error in pop_blinker (line 77)
     [blinks, params] = extractBlinksEEG(EEG, params);

Error in eeglab_importdata_blinker (line 151)
                     blinkStatistics, params] = pop_blinker(OUTEEG, params);

Versioning information:

  • Blinker v1.2.0 used.
  • EEGLAB dev version pulled.
  • .mat files downloaded directly from here as they didn't seem to get installed when using EEGLAB's plugin manager to get BLINKER.
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

1 participant