[ENH] Surface GLM - Support multiple runs in a GLM #3846
Labels
Blocked
Enhancement
for feature requests
GLM
Issues/PRs related to the nilearn.glm module.
Surface
Related to surface data or surface analysis.
Is there an existing issue for this?
Describe your proposed enhancement in detail.
Related to neurostars post: https://neurostars.org/t/glm-on-surface-data-in-nilearn/22632
It would be good if Nilearn could run GLMs on surface data with multiple BOLD runs. Currently, the only way to run a GLM on surface data (
nilearn.glm.first_level.run_glm
), which only accepts one BOLD run and design matrix per instance.Benefits to the change
More flexible processing for multi-run surface analyses.
Pseudocode for the new behavior, if applicable
I imagine an easiest, but not most stylish, change would be to have
run_glm
accept an iterable object for[X]
and[Y]
. If the length of these iterable objects are 1, then run the function as normal. If not, apply whatever fixed effect models are used for the multi-run GLMs on BOLD data.Thoughts?
The text was updated successfully, but these errors were encountered: