Open leosunpsy opened 2 years ago
@leosunpsy not sure what you are asking. Can you send us a pull request so we can see the diff? 🙏
@agramfort OK
I thought laplace referencing was the same as "current source density" (which we already have implemented)? cf https://github.com/mne-tools/mne-python/issues/9659#issuecomment-897730660
oh, nevermind, I see you're talking about sEEG here, not scalp EEG
Does that make a difference though?
It seems it’s just based on finite differences for seeg. For eeg uses splines etc. But I agree we need to agree on public api
I've used exactly that (subtract weighted sum of surrounding channels) with EEG a lot of times.
Any API you would suggest ?
I think the suggested API makes sense. I just wanted to state that this kind of Laplacian is also used in EEG. However, as @drammock noted we already have a spline-based implementation, and I think the discrete version could be a special case thereof. So maybe we can add a mode
parameter if the two algorithms are compatible.
Add Laplace reference method to mne/io/reference.py
@verbose def set_laplace_reference(inst, central_ch, adjacent_chs, copy=True, verbose=None): """Re-reference selected seeg channels using a laplace referencing scheme.