Skip to content

Error with std_erspplot when ERSP precomp have no baseline? #862

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

Open
markpayumo opened this issue Apr 16, 2025 · 0 comments
Open

Error with std_erspplot when ERSP precomp have no baseline? #862

markpayumo opened this issue Apr 16, 2025 · 0 comments

Comments

@markpayumo
Copy link

markpayumo commented Apr 16, 2025

Description

I get this error:

Warning: std_readdata ignored at least one parameters: "subbaseline"
Reading subjects' data or looking up measure values in EEGLAB cache

Unrecognized function or variable 'dataTmp'.

Error in std_readdata (line 381)
    correspInd = 1:length(dataTmp); % identity for channels
                          ^^^^^^^
Error in std_erspplot (line 253)
    [STUDY, allersp, alltimes, allfreqs, events, paramsersp] = std_readdata(STUDY, ALLEEG, 'channels', opt.channels, 'timerange', params.timerange, ...
                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

when I run std_erspplot

[STUDY, erspdata, ersptimes, erspfreqs] = std_erspplot(STUDY,ALLEEG, 'channels',{'E1', 'E2', 'E3'...});

I precomputed the ERSPs without baseline.
[STUDY ALLEEG customRes] = std_precomp(STUDY, ALLEEG, {}, 'ersp', 'on', 'recompute', 'on','erspparams', {'cycles' [13 0.1] 'nfreqs' 50 'freqs' [13 30] 'ntimesout' 100 'freqscale' 'linear' 'baseline' NaN});

Does precomputing without a baseline cause these issues?
I would prefer not to precompute with baseline subtraction as I like to do my own baseline correction


#### Steps to Reproduce
  1. Run ERSP precomputation
  2. Extract erspdata using std_erspplot

#### Expected behavior: Give me erspdata output
#### Actual behavior: Gives me error
#### Versions
OS version [Sequoia 15.3.2]
Matlab version [R2024b]
EEGLAB version [EEGLAB2025]
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