원클릭으로
fmri-task-design-guide
Guides fMRI task design: block vs. event-related vs. mixed; jittering; contrasts; power for BOLD detection
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Guides fMRI task design: block vs. event-related vs. mixed; jittering; contrasts; power for BOLD detection
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Domain knowledge for building extracellular electrophysiology pipelines with SpikeInterface: loading data with extractors, preprocessing, running spike sorters, post-processing via SortingAnalyzer, quality metrics, curation, comparison, visualization, and export.
Preprocess task-based or resting-state fMRI data with fMRIPrep — a robust, BIDS-App preprocessing pipeline built on FSL, ANTs, FreeSurfer, AFNI, and Nilearn. Use this skill whenever the user asks to preprocess fMRI/BOLD data, run fMRIPrep on a BIDS dataset, set up Docker/Singularity/Apptainer containers for fMRIPrep, choose output spaces (MNI152NLin2009cAsym, fsaverage, fsLR/CIFTI), configure susceptibility distortion correction (SDC), extract or interpret the confounds table, resample to surface/grayordinates, cite fMRIPrep and its dependencies, or debug fMRIPrep crashes and hangs.
Domain-validated guidance for network neuroscience analysis using netneurotools: datasets, brain network metrics, connectivity consensus, modularity, spatial statistics, null models, and cortical surface visualization. Use this skill whenever the user works with brain connectivity matrices, connectomes, graph theory on brain networks, parcellated brain data (Schaefer, Cammoun, Desikan-Killiany), cortical surface templates (fsaverage, fsLR, CIVET, Conte69), network communication metrics, null model generation, spatial autocorrelation on brain maps, community detection in connectomes, or surface-based visualization with PyVista/PySurfer. Also trigger when the user mentions netneurotools, netneurolab, structure-function coupling, network neuroscience, brain graph analysis, or needs to fetch neuroimaging atlases and templates.
Analyzes genetic variant effects on gene expression (RNA-seq), chromatin accessibility (DNASE), histone marks (ChIP), and transcription factors using the AlphaGenome API. Use when the user asks about non-coding variant effects, pathogenicity, clinical significance, disease associations, functional effects, gene expression changes, splicing disruption, or regulatory effects in promoters and enhancers. Also use for resolving biological terms to tissue/cell-type ontologies (UBERON/CL) or analyzing variants in chr:pos:ref>alt format.
Query Open Targets Platform for target-disease associations, drug target discovery, tractability/safety data, genetics/omics evidence, known drugs, for therapeutic target identification.
Toolbox for markerless animal pose estimation with DeepLabCut. Covers single/multi-animal tracking, SuperAnimal pretrained models, 2D/3D pose estimation, keypoint labeling GUI, model training/evaluation, video analysis, and behavioral quantification. Use when the user needs animal pose estimation, behavior tracking, keypoint detection in videos, or mentions DeepLabCut/DLC/SuperAnimal.
| name | fmri-task-design-guide |
| description | Guides fMRI task design: block vs. event-related vs. mixed; jittering; contrasts; power for BOLD detection |
| domain | cognitive-neuroscience |
| version | 1.0.0 |
| authors | ["awesome_cognitive_and_neuroscience_skills contributors"] |
| papers | ["Friston et al., 1999","Petersen & Dubis, 2012","Dale, 1999","Bandettini et al., 1993","Glover, 1999","Desmond & Glover, 2002","Wager & Nichols, 2003"] |
| dependencies | {"required":["research-literacy"],"recommended":["fmri-glm-analysis-guide","fmri-preprocessing-pipeline-guide"]} |
| review_status | ai-generated |
The experimental design is the single most important determinant of an fMRI study's statistical power, interpretability, and scientific value. Choosing between block, event-related, and mixed designs involves trade-offs between detection power and estimation efficiency that depend on the research question. Similarly, the choice of inter-stimulus interval (ISI), jittering strategy, condition ordering, and trial count directly determines whether the BOLD signal of interest can be reliably detected.
A competent programmer without neuroimaging training would not know that block designs provide higher detection power but cannot estimate HRF shape, that exponentially distributed jitter is more efficient than uniform jitter, or that the BOLD response takes 12-16 seconds to return to baseline. This skill encodes those domain-specific design decisions.
Before executing the domain-specific steps below, you MUST:
For detailed methodology guidance, see the research-literacy skill.
This skill was generated by AI from academic literature. All parameters, thresholds, and citations require independent verification before use in research. If you find errors, please open an issue.
| Design Type | Detection Power | Estimation Efficiency | Trial-Level Analysis | Best For | Source |
|---|---|---|---|---|---|
| Block | High | Low | No | Detecting whether a region is active | Friston et al., 1999; Petersen & Dubis, 2012 |
| Event-related (slow) | Moderate | High | Yes | Estimating HRF shape | Dale, 1999 |
| Rapid event-related | Moderate-High | Moderate-High | Yes | Flexible trial-by-trial analysis with good power | Dale, 1999; Friston et al., 1999 |
| Mixed (hybrid) | High (sustained) + Moderate (transient) | Moderate | Yes (transient component) | Separating sustained and transient effects | Petersen & Dubis, 2012 |
What is the primary goal?
|
+-- Detect presence/absence of activation (localization)
| |
| +-- Is HRF shape estimation needed?
| |
| +-- NO --> Block design (maximum detection power)
| |
| +-- YES --> Mixed design (blocks + events within blocks)
|
+-- Estimate trial-by-trial neural responses
| |
| +-- Are there enough trials (>40 per condition)?
| |
| +-- YES --> Rapid event-related design (jittered ISI)
| |
| +-- NO --> Slow event-related design (ISI > 12 s)
|
+-- Separate sustained state vs. transient item effects
--> Mixed design (Petersen & Dubis, 2012)
The ISI between events is critical for statistical efficiency and BOLD signal separability.
| Parameter | Recommendation | Source |
|---|---|---|
| Minimum ISI | 2-4 seconds (for partial BOLD recovery) | Dale, 1999; Glover, 1999 |
| Mean ISI for rapid designs | 4-6 seconds | Dale, 1999 |
| ISI range for jittered designs | 2-8 seconds | Dale, 1999; Wager & Nichols, 2003 |
| Null/fixation trials | 20-33% of total events | Friston et al., 1999 |
Jittering strategies (from most to least recommended):
Domain warning: Jittered designs can be over 10x more efficient than fixed-ISI designs with the same mean interval (Dale, 1999). Always jitter for event-related fMRI.
The BOLD hemodynamic response imposes hard constraints on fMRI design timing:
| Design Type | Minimum Trials per Condition | Recommended Trials | Source |
|---|---|---|---|
| Event-related (detection) | 20 | 30-50 | Desmond & Glover, 2002 |
| Event-related (HRF estimation) | 30 | 50+ | Murphy & Garavan, 2005 |
| Rapid event-related | 30 | 40-60 | Desmond & Glover, 2002 |
| FIR/deconvolution | 40+ | 60+ | Glover, 1999 |
Domain insight: These are per-condition minimums. If comparing conditions (A vs. B), each condition needs this many trials. More conditions require longer scan sessions or fewer trials per condition, creating a power trade-off.
Design efficiency quantifies how well a given design matrix allows detection of specific contrasts:
Detection efficiency = 1 / trace(c' * inv(X'X) * c)
where c is the contrast vector and X is the design matrix (Dale, 1999; Liu et al., 2001).
Mixed designs combine sustained (block-level) and transient (event-level) components (Petersen & Dubis, 2012):
Key parameters:
| Constraint | Guideline | Rationale |
|---|---|---|
| TR synchronization | Stimulus onsets need not align with TR boundaries for event-related designs | Jittered onsets relative to TR improve temporal sampling of HRF |
| Trigger pulses | Start experiment on scanner trigger pulse (TTL signal) | Ensures precise alignment between stimulus and acquisition timing |
| Total scan duration | 5-15 minutes per run | Longer runs increase motion and fatigue; shorter runs waste setup time (Poldrack et al., 2011, Ch. 3) |
| Number of runs | 2-4 runs typical; split conditions across runs if needed | Allows rest between runs; run-level effects can be modeled |
| Dummy scans | First 3-5 TRs (5-10 s) are T1 equilibration artifacts | Discard or model as confounds (Poldrack et al., 2011, Ch. 5) |
| Constraint | Guideline | Source |
|---|---|---|
| Response mapping | Counterbalance button assignments across subjects | Prevents lateralized motor confound |
| Practice effects | Include out-of-scanner practice until performance plateaus | Reduces learning-related activation changes during scanning |
| Task difficulty | Aim for 70-85% accuracy | Floor/ceiling effects eliminate behavioral variance (Poldrack et al., 2011, Ch. 3) |
| Response window | Allow 1.5-3 seconds for speeded responses | Accommodate scanner environment slowing (~200 ms; Haatveit et al., 2010) |
| Stimulus duration | 0.5-4 seconds typical for visual stimuli | Long enough for perceptual processing, short enough for event separation |
Based on COBIDAS guidelines (Nichols et al., 2017) and Poldrack et al. (2008):
See references/ for detailed design optimization examples and parameter lookup tables.