Closed npdrbong closed 8 months ago
I think this essue is from brainbeats_process makes different lengths of HEP, while EEGLAB study needs to have same length of epochs to do something more.
Hi, Doesn't this error suggest that one of your files is continuous and the other is epoched? Did they merge correctly? Did you update the field EEG.trials (i.e. number of epochs or events in the dataset)? At the end of your code, run this command to make sure everything is good: EEG = eeg_checkset(EEG);
If so, let me know the different lengths of the epochs. I have a solution and improvement that I will try to implement soon.
thanks
@npdrbong Did you find what the problem was? I can confirm that BrainBeats does not segment epochs at different lengths. I think your problem comes form incorrect merging your datasets.
Sorry you're right, because people have different heart rates, the epochs have different lengths across participants. I'm working on solving this at the STUDY level. It will probably take a while before this is fixed though as I have limited time over the next several weeks. Sorry about that.
Hello, I am trying to compare HEP on 2 conditions. For this, I selected some part of my dataset and merged it into 1 file, and process with brainbeats_process
EEG_merged = [];
for i = 1:2:nEvents-1 start_latency = EEG.event(i).latency; end_latency = EEG.event(i+1).latency;
end EEG_merged = brainbeats_process(EEG_merged,'analysis','hep','heart_signal','ECG','heart_channels',{'EKG'},'clean_rr','pchip','clean_eeg',true, 'parpool',false,'gpu',true,'vis',true,'save',true);
pop_saveset(EEG_merged, 'filename', [savefilename '_condition1_epoch.set'], 'filepath', savefolder);
after this job, I tried to use LIMO but It can't precompute, with error message 'eeg_getdatact error'
am I doing something wrong with brainbeats or there is something wrong with plugin? Sorry for low-level question..