Preclude prewhitening in seed time series extraction for PPI (psychophysiological interaction) analysis
@pzeidman is already working on this.
Since Jun 13, 2025.
Assessment
This issue has not been assessed yet.
Description
Hi all,
We've found that extracting a seed time series with prewhitening (the default option in SPM) leads to suboptimal PPI model fitting. This is because: 1) prewhitening should not be applied prior to deconvolution, and 2) prewhitening is applied again during the model fitting step, resulting in the main effect seed regressor being prewhitened twice in the design matrix.
Following discussions with Karl Friston and Peter Zeidman, we think the best solution is to preclude prewhitening when extracting seed time series for PPI analysis. Implementing this change will require input from the SPM development team, as SPM's confound-regression relies on first level beta maps.
As a temporary workaround, one can multiply the extracted seed time series by the inverse of the first whitening matrix. A detailed discussion can be found in our recent preprint: https://doi.org/10.1101/2025.05.22.655642
Thanks,
Vicky
- Dominant language
- MATLAB
- Stars
- 224
- Forks
- 63
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from spm/spm
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 Half a day Newbie friendliness 62/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
UniprJRC/DSwithMATLAB#247 ·
-
bug priority: p3 size: xs
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
mathworks/MATLAB-Coding-Guidelines#7 · 3 comments ·