NeilwBailey / RELAX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unrecognised function or variable "BlinkIndexMetric"

mitanshu7 opened this issue · comments

I am having an issue with the following error.

image

I also tried the option for - 6Hz low pass filter before blink detection - rather unsuccessfully.

I appreciate any help possible!

Thank you in advance.

Some helpful stats:

EEGLAB: adding "ICLabel" v1.6 (see >> help eegplugin_iclabel)
EEGLAB: adding "PICARD" v1.0 to the path
EEGLAB: adding "PrepPipeline" v0.56.0 (see >> help eegplugin_prepPipeline)
EEGLAB: adding "RELAX" v2.0.0 (see >> help eegplugin_RELAX)
EEGLAB: adding "clean_rawdata" v2.91 (see >> help eegplugin_clean_rawdata)
EEGLAB: adding "dipfit" v5.4 (see >> help eegplugin_dipfit)
EEGLAB: adding "fieldtrip-" v20231220 to the path
EEGLAB: adding "firfilt" v2.8 (see >> help eegplugin_firfilt)
EEGLAB: adding "icablinkmetrics" v3.1 (see >> help eegplugin_icablinkmetrics)
You are using the latest version of EEGLAB v2024.0.

PFA a sample dataset link: https://drive.google.com/file/d/1u_rXB3XE-oIQr08x8aikY2Tfs6rNvAZg/view?usp=sharing

Hi there

One additional alternative that I think might work - you could change line 130 in the RELAX_Wrapper.m script:

From: EEG=pop_chanedit(EEG, 'lookup', RELAX_cfg.caploc);

Change to: EEG=pop_chanedit(EEG, 'load', RELAX_cfg.caploc);

This seems to directly load the electrode file labels from your txt file, and seems to work, where 'lookup' does not. This could be a more simple solution than the one I mentioned above (if it works).

Kind regards,

Neil

Dear @NeilwBailey,

I am so grateful to you for all the effort!

And yes, changing the Line 130 in RELAX_Wrapper.m script worked like a charm on the default configuration!

However, I am facing a new problem.

When I check the MWF cleaning boxes for Brain, Eye and Muscle on the same eeg data, I see this error:

Screenshot from 2024-07-22 20-26-37

Please let me know if you have any insights for the same.

And once again I wanted to thank you for the hack!

The reason for this issue is that RELAX 2.0.0 calls the updated version of the MWF toolbox, rather than the original version. The updated version can be downloaded here: https://github.com/exporl/mwf-artifact-removal

Once you replace the old version of the MWF toolbox with this updated version in your EEGLAB plugins folder (and make sure it's listed on your MATLAB path when running RELAX), this issue should be resolved.

Kind regards,

Neil

Hello @NeilwBailey,

I downloaded the plugin from the releases page instead of downloading the zip from the master branch.

I see that you already made the modification in wiki, which I was about to suggest.

Thank you so much for all the support!