Using a separate condition as baseline (e.g., a rest baseline)

  • MNE-Python version: 0.24.0
  • operating system: Windows

Hello, I would like to use a separate condition as a baseline (e.g., a resting state) not using a pre-stimulus baseline. Would it be possible? If so, how?

Thank you in advance,
Reza

Hello @rsaeed and welcome to the forum!

The baseline parameter on Epochs instantiation and the Epochs.apply_baseline() methods don’t allow for this. However, you can apply a function to each channel in each epoch individually by using Epochs.apply_function(). You should be able to use this to apply custom transformations to your epochs.

Feel free to ask again if you get stuck.

Best wishes,
Richard

1 Like

Did you create a function for doing this? I’d like to do something similar and I was wondering if you could share the way you implemented the function,

Thanks,

Sara