fMRI GLM Analysis Guide

Provide domain-validated guidance for specifying fMRI GLMs.

34|5|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/NeuroAIHub/awesome_cognitive_and_neuroscience_skills --skill fmri-glm-analysis-guide-neuroaihub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fMRI GLM Analysis Guide
Source: https://github.com/NeuroAIHub/awesome_cognitive_and_neuroscience_skills/tree/main/skills/fmri-glm-analysis-guide
Command: npx skills add https://github.com/NeuroAIHub/awesome_cognitive_and_neuroscience_skills --skill fmri-glm-analysis-guide-neuroaihub

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Most first-level GLMs mis-specify hemodynamic, confound, filtering, and inference decisions because they lack neuroimaging domain knowledge, and this guide encodes those critical checkpoints plus warnings about autocorrelation, motion artifacts, and contrast validity to preserve statistical integrity.

Core Features & Use Cases

  • HRF and high-pass filter decision tree ensures canonical, derivative, and FIR basis sets are chosen only when justified and that filter cutoffs preserve task frequencies.
  • Confound regression and autocorrelation protocols cover motion regressors, spike modeling, CompCor components, and valid prewhitening strategies for modern TRs.
  • Contrast, second-level, and multiple comparison plans clarify how to set directional and omnibus contrasts, choose mixed versus fixed effects, and apply voxelwise, cluster-based, TFCE, or permutation correction.
  • Reporting checklist and references help document software versions, smoothing kernels, contrast weights, and statistical thresholds per COBIDAS guidelines while linking to deeper design matrix and inference guides.

Quick Start

Ask the fMRI GLM Analysis Guide to vet your planned first-level and group GLM pipeline, covering HRF choices, filters, confounds, contrasts, and multiple comparison safeguards.

Frequently Asked Questions about fMRI GLM Analysis Guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I specify a design matrix for fMRI GLM analysis?

To specify a design matrix for fMRI GLM analysis, you must select an appropriate HRF basis set, apply high-pass filtering to preserve task frequencies, and define valid contrasts. This guide provides a domain-validated decision tree to vet these first-level pipeline choices.

What's the best way to handle motion artifacts and confound regression in task-based fMRI?

The best way to handle confound regression in task-based fMRI is to include motion regressors, spike modeling, and CompCor components. This guide outlines protocols for these confounds alongside valid prewhitening strategies for modern TRs.

When do I need derivative or FIR basis sets for hemodynamic response modeling?

You need derivative or FIR basis sets for hemodynamic response modeling only when canonical HRF assumptions are violated. This guide ensures these advanced basis functions are chosen only when empirically justified to maintain statistical integrity.

How do I choose between cluster-based, TFCE, and permutation correction for neuroimaging statistical inference?

Choosing between cluster-based, TFCE, and permutation correction for statistical inference depends on your spatial assumptions and distribution normality. This guide clarifies how to apply these multiple comparison correction criteria across first and second-level models.

Why does prewhitening matter for autocorrelation in fMRI GLM?

Prewhitening matters for autocorrelation in fMRI GLM because unmodeled temporal dependencies inflate statistical significance. This guide provides valid prewhitening strategies to address autocorrelation and preserve the integrity of your statistical inference.

Does this fMRI analysis guide support reporting statistical thresholds per COBIDAS guidelines?

Yes, this fMRI analysis guide supports COBIDAS reporting by providing a checklist to document software versions, smoothing kernels, contrast weights, and statistical thresholds, ensuring your research outputs meet neuroimaging reporting standards.