New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow baseline time window selection from other events #11480
Comments
This is also a problem in the current implementation of |
For this I would actually use
Can you elaborate on this a bit? We should fix bugs with this |
Does
It's not a bug. There's just no way to use
|
Is it clear from https://mne.tools/stable/generated/mne.Epochs.html#mne.Epochs.apply_function ? If not then we should update the docs... |
@Aaronearlerichardson is this issue still of concern to you, or can it be closed? |
I think this is a fairly common use case in ERP analysis when performing response-locked averaging (i.e. around event |
Describe the new feature or enhancement
Currently, all of the baseline inputs (for example in the Epochs class) require a tuple of start and end times. This assumes you want to calculate your baseline with respect to the same event which you are epoching from.
Lets say I have two events:
'e1'
and'e2'
. I want to create an epoch that goes from -1s to 2 seconds around'e2'
with a baseline correction from -0.5s to 0 with respect to'e1'
e2
is the time frame I'm interested in, andbaseline
is the data I'd like to use for baseline correction. Settingbaseline=(-0.5,0)
would only do so with respect to'e2'
.Describe your proposed implementation
Describe possible alternatives
Additional context
No response
The text was updated successfully, but these errors were encountered: