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

Incorrect use of eegfilt, epochframes must be at least 3 times the filtorder #199

Open
PengfeiLu1 opened this issue Dec 5, 2024 · 3 comments

Comments

@PengfeiLu1
Copy link

Description

[epochframes must be at least 3 times the filtorder. When use the estudio toolbox to create a BEST file and transform the data into phase-independent power, an error message will be displayed : epochframes must be at least 3 times the filtorder.]

  1. Load my data which have been preprocessed by esudio

My preprocessing steps include downsampling to 500 Hz, bandpass filtering from 0.1 to 30 Hz using the 'eegfilternew' function, performing bin-based epochs, whole brain average re-referencing, ICA removes blink artifacts, and removal of bad epochs exceeding ± 100 μV.

  1. Extract Bin-Epoched Single Trials (BEST)

Convert the data to BEST format and select 'transform into phase-independent power'

image

  1. Run and Error

I clicked RUN, and then the following error appeared.

“eegfilt(): filter order is 1500. Misuse eegfilt
epochframes must be at least 3 times the filtorder.

ERROR pop_extractbest (line 291 )
filtData(:,c,:) =abs(hilbert(eegfilt(squeeze(unfiltData(:,c,:)),fs_original,bandpass_freq(1,1),bandpass_freq(1,2))')').^2; %Instantaneous power

ERROR f_EEG_extr_best_GUI/avg_run (line 654 )
[BEST,LASTCOM] = pop_extractbest( EEG , 'Bins', binselec, 'Criterion', artcritestr,'DSindex',1, ...

Error calculating UIControl callback.”

I am expecting the smooth completion of this BEST operation, but it prompts the above error. I don't know how to adjust my parameters to ensure normal operation


#### Versions
OS version [Windos 11]
Matlab version [2022b]
EEGLAB version [2023.1]
ERPLAB version [12.00]
ERPLAB Studio version [12.00]
@stevenjluck
Copy link
Collaborator

stevenjluck commented Dec 5, 2024 via email

@PengfeiLu1
Copy link
Author

PengfeiLu1 commented Dec 5, 2024 via email

@stevenjluck
Copy link
Collaborator

stevenjluck commented Dec 5, 2024 via email

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

2 participants