<div dir="ltr">Dear list,<div>I have a problem resulting from varying trial durations. </div><div>I would like to baseline correct my epochs with an event that is different from the one I used for time-locking the epochs. The epochs are time-locked to a target event which is preceded by a cue event with a variable SOA. The baseline should be taken from before the cue. </div><div><br></div><div>I could think of two ways to do this, but neither of them seemed to work:</div><div>a) epoch to cue, apply baseline, re-epoch to target event</div><div> (mne.epoch wants raw data)</div><div>b) epoch to target, apply baseline with different interval for each trial (epochs.apply_baseline takes only two time points)</div><div><br></div><div>Do you have any hints on how to achieve this other than subtracting the mean of the desired baseline-interval by hand? Could the apply_baseline function be extended to take another event to use for the baseline? </div><div><br></div><div>Thank you,</div><div>Sophie</div><div><br></div></div>