<div dir="ltr">I want to add this note that if I uploaded the dataset into the fieldtrip directly, it does not recognize the dataset related to specific event type. Please help me how can I access the event code in this dataset and separate it to process in the beamforming method. Here is my code:<div><span style="white-space:pre;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">dataset = </span><span style="white-space:pre;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt;color:rgb(167,9,245)">'./dataset/S03_ME/motorexecution_subject3_run1.gdf'</span><span style="white-space:pre;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">;</span></div><div><span style="white-space:pre;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt">cfg = [];</span></div><div><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">cfg.dataset              = dataset;</span></div><div><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">cfg.trialdef.eventtype   = </span><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;color:rgb(167,9,245)">'1541'</span><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">;            </span><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;color:rgb(0,128,19)">% get a list of the available types</span></div><div><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">cfg.trialfun             = </span><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;color:rgb(167,9,245)">'ft_trialfun_general'</span><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">;</span></div><div><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">cfg.trialdef.triallength = 1;                      </span><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;color:rgb(0,128,19)">% duration in seconds</span></div><div><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">cfg                      = ft_definetrial(cfg);</span></div><div>cfg.dftfreq<span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">                = [50];</span></div><div><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">cfg.channel                = </span><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;color:rgb(167,9,245)">'EEG'</span><span style="white-space:pre;font-size:10pt;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">;</span></div><div><span style="font-size:10pt;white-space:pre;font-family:Menlo,Monaco,Consolas,"Courier New",monospace">data_segmented             = ft_preprocessing(cfg);</span></div><div><span style="white-space:pre;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:10pt"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 2, 2024 at 11:16 AM Sina Makhdoomi Kaviri <<a href="mailto:sinam1@umbc.edu">sinam1@umbc.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">To whom it may concern,<br><br>I want to implement, "A novel explainable machine learning approach for EEG-based brain computer interface systems" published in Springer Nature, in fieldtrip. Regarding that they used ( <a href="http://bnci-horizon-2020.eu/database/data-sets" target="_blank">http://bnci-horizon-2020.eu/database/data-sets</a> (Accession Number 001-2017)) as dataset in GDF file, I want to preprocess and use ft_definetrial, but it is not accessed to the event code. In this regard I use EEGLAB to load the dataset with biosig, after that when I convert to fieldtrip (eeglab2fieldtrip or save it and use ft_read_event,..) I face this problem as follows. Could you please help me how can I preprocess this dataset for beamforming source localization for specific event code.<div><br></div><div>Error using isfolder<br>Input path must be text.<br><br>Error in ft_filetype (line 166)<br>if isfolder(filename)<br><br>Error in dataset2files (line 42)<br>  format = ft_filetype(filename);<br><br>Error in ft_checkconfig (line 675)<br>    [cfg.dataset, cfg.headerfile, cfg.datafile] = dataset2files(cfg.dataset, []);<br><br>Error in ft_preprocessing (line 385)<br>  cfg = ft_checkconfig(cfg, 'dataset2files', 'yes');<br><div><div><br></div><div><br></div></div></div></div>
</blockquote></div>