AwhVogelLab / mvEEG

Package for decoding and analyzing epoched EEG data.
2 stars 1 forks source link

Channel labels are misordered #5

Closed dsuplica closed 2 months ago

dsuplica commented 3 months ago

Per slack msg from Leo: -> We might need to change the channel labeling. The new preprocessing pipeline code alphabetically sorts the channel labels, but the actual data is not altered accordingly.

All analyses work except for CDA requiring labels

dsuplica commented 3 months ago

His presets:

TRIAL_START_TIME = -0.2
TRIAL_END_TIME = 1.5
BASELINE_TIME = [-0.2, 0]
REJECTION_TIME = [0, 1.4]

SRATE = 500 # hz, will resample if different from 1k
FILTER_FREQS = (None, 80) # None to not do lowpass

LINEAR_R2 = 0.3

event_dict={
    'trial_start': 0,
    'baseline': 1,
    'cue': 2,
    'post_cue': 3,
    'S11': 11,
    'S13': 13,
    'S21': 21,
    'S23': 23,
    'delay': 4,
    'test':5,
    'trial_end': 6,
    'block_end': 7,
    'exp_end': 8,
    'reject': 9
}
event_code_dict={} # define event codes based on sequence

stim_conditions=[11,13,21,23]
for key,ev in event_dict.items():
    if ev > 10:
        event_code_dict.update({ev:[3,ev,4,5,6]})

POSITION_TO_TIMELOCK = 1 # which position (IN THE LIST ABOVE) to timelock to
dsuplica commented 3 months ago

CDA plots w new and old pipeline. Verified works with old order f320a3dc-9c9a-4910-aad1-3488458e19e5_720 b8fe7998-e71f-48fe-a1aa-ff50293bc6fc_720

dsuplica commented 2 months ago

this is actually a problem with mvEEG