nbara / python-meegkit

🔧🧠 MEEGkit: MEG & EEG processing toolkit in Python
https://nbara.github.io/python-meegkit/
BSD 3-Clause "New" or "Revised" License
182 stars 50 forks source link

Implement trial-masked robust detrending #35

Closed nbara closed 3 years ago

nbara commented 3 years ago

https://www.sciencedirect.com/science/article/pii/S0165027021000157

It's almost already doable with the current code.

What is missing is a function that takes event times and the max and min of your wanted epoch (so what you want to mask) and output appropriate weights as a (n_channels * n_times) matrix.