neurofractal / analyse_OPMEG

Nic & Rob's lair of scripts to analyse OPM data, using the Fieldtrip toolbox
https://neurofractal.github.io/analyse_OPMEG/
MIT License
9 stars 1 forks source link

Implement DSSP in SPM #27

Closed neurofractal closed 3 years ago

neurofractal commented 3 years ago

Along the lines of: https://github.com/neurofractal/analyse_OPMEG/blob/master/preprocessing/ft_dssp_window.m

Will need some pointers from @georgeoneill

georgeoneill commented 3 years ago

points

georgeoneill commented 3 years ago

Quick question, is ft_dssp_window baked into fieldtrip already? Or is this a wrapper you have put together yourself?

georgeoneill commented 3 years ago

Okay, some good news is that ft_denoise_dssp and by extention the dssp subfunction(s) are already in the trunk verion of SPM, meaning we can probably as an intial stopgap take an approach similar to spm_eeg_ctf_synth_gradiometer which is just a wrapper for ft_denoise_synthetic. This might make things a lot simpler. Unsure about the windowing method mind, but its something we can talk about.

neurofractal commented 3 years ago

Hi George.. so ft_dssp_window uses this slightly modified dssp.m script, where I have taken out some of the superflous code which prints stuff to the command window.

The windowing approach is really simple and includes triangular weighting... we might need modified this for the way SPM reads data from disk?

georgeoneill commented 3 years ago

Just pushed the early version if spm_eeg_dssp.m going to close the issue for now.