LIMO-EEG-Toolbox / limo_tools

Hierarchical Linear Modelling for MEEG data
https://limo-eeg-toolbox.github.io/limo_meeg/
Other
58 stars 28 forks source link

Unrecognized field name "X" during 1st level LIMO #176

Open amisepa opened 10 months ago

amisepa commented 10 months ago

Modeling 1st level on power spectra. Each subject has a session 1 and 2. Trying to compare pre-post changes between the two sessions. I get this error:

image

Would it make more sense to merge the 2 PRE/POST intervention files for each subject and have 1 event marking beginning of PRE and 1 event marking beginning of POST, and consider them 2 conditions for paired t-test? Problem is files have sometimes different number of channels and cannot interpolate (low-density montage, not enough channels).

arnodelorme commented 9 months ago

There is an issue when some datasets are missing some channels and there are 2 sessions (for the same subject, some sessions have some channels and the other session has others). The the code in std_limo line 102 (below) generates an error because the

    if size(data1,1) ~= size(data2,1) || size(data1,2) ~= size(data2,2)
        error('Dataset have different dimensions - reprocess sessions with the same parameters')
    end

Cedric, you can interpolate channels for now.

amisepa commented 9 months ago

@arnodelorme with 4 channels? Sometimes they have only 1 or 2 channels left...

arnodelorme commented 9 months ago

Yes, no ideal for sure.

On Sep 13, 2023, at 12:54 PM, Cedric Cannard @.***> wrote:

@arnodelorme with 4 channels? Sometimes they have only 1 or 2 channels left...

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

arnodelorme commented 9 months ago

Not completed. Cyril needs to look at the issue with the different sessions.