@brainpilot/skills 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -0
- package/skills/01_Meta-Skills/contribute-skill/SKILL.md +277 -0
- package/skills/01_Meta-Skills/contribute-skills-via-pr/SKILL.md +163 -0
- package/skills/01_Meta-Skills/paper-to-skill/SKILL.md +435 -0
- package/skills/01_Meta-Skills/paper-to-skill/references/extraction-guide.md +286 -0
- package/skills/01_Meta-Skills/paper-to-skill/references/skill-template.md +250 -0
- package/skills/01_Meta-Skills/repo-to-skill/SKILL.md +289 -0
- package/skills/01_Meta-Skills/share-case/SKILL.md +253 -0
- package/skills/01_Meta-Skills/share-usage/README.md +63 -0
- package/skills/01_Meta-Skills/share-usage/SKILL.md +395 -0
- package/skills/01_Meta-Skills/verify-skill/SKILL.md +331 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/SKILL.md +194 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/effect-sizes.md +352 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/sample-size-guide.md +407 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-statistics/SKILL.md +361 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-statistics/references/common-analyses.md +517 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-visualization/SKILL.md +292 -0
- package/skills/02_Cross-Domain_Foundation/cogsci-visualization/references/plot-recipes.md +709 -0
- package/skills/02_Cross-Domain_Foundation/research-literacy/SKILL.md +286 -0
- package/skills/02_Cross-Domain_Foundation/research-literacy/references/common-assumptions.md +320 -0
- package/skills/02_Cross-Domain_Foundation/research-literacy/references/planning-template.md +143 -0
- package/skills/03_Cognitive_Psychology/alternative-uses-task-designer/SKILL.md +197 -0
- package/skills/03_Cognitive_Psychology/alternative-uses-task-designer/references/instruction-templates.md +60 -0
- package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/SKILL.md +246 -0
- package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/references/classic-paradigms.md +435 -0
- package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/references/design-principles.md +256 -0
- package/skills/03_Cognitive_Psychology/creativity-self-efficacy-mediation/SKILL.md +270 -0
- package/skills/03_Cognitive_Psychology/creativity-self-efficacy-mediation/references/lavaan-templates.md +172 -0
- package/skills/03_Cognitive_Psychology/divergent-thinking-scoring/SKILL.md +238 -0
- package/skills/03_Cognitive_Psychology/divergent-thinking-scoring/references/scoring-rubric.md +143 -0
- package/skills/03_Cognitive_Psychology/drift-diffusion-model/SKILL.md +203 -0
- package/skills/03_Cognitive_Psychology/drift-diffusion-model/references/fitting-guide.md +571 -0
- package/skills/03_Cognitive_Psychology/drift-diffusion-model/references/model-variants.md +427 -0
- package/skills/03_Cognitive_Psychology/evidence-accumulation-selector/SKILL.md +310 -0
- package/skills/03_Cognitive_Psychology/evidence-accumulation-selector/references/ez-diffusion-formulas.md +137 -0
- package/skills/03_Cognitive_Psychology/signal-detection-analysis/SKILL.md +300 -0
- package/skills/03_Cognitive_Psychology/signal-detection-analysis/references/application-guide.md +278 -0
- package/skills/03_Cognitive_Psychology/signal-detection-analysis/references/sdt-formulas.md +318 -0
- package/skills/03_Cognitive_Psychology/visual-search-array-generator/SKILL.md +283 -0
- package/skills/03_Cognitive_Psychology/visual-search-array-generator/references/array-generation-parameters.yaml +111 -0
- package/skills/04_Psycholinguistics/reading-time-analysis/SKILL.md +301 -0
- package/skills/04_Psycholinguistics/reading-time-analysis/references/measure-computation-guide.md +195 -0
- package/skills/04_Psycholinguistics/self-paced-reading-designer/SKILL.md +257 -0
- package/skills/04_Psycholinguistics/self-paced-reading-designer/references/analysis-guide.md +356 -0
- package/skills/04_Psycholinguistics/self-paced-reading-designer/references/region-segmentation.md +266 -0
- package/skills/04_Psycholinguistics/sentence-stimulus-norming/SKILL.md +346 -0
- package/skills/04_Psycholinguistics/sentence-stimulus-norming/references/lexical-databases-guide.md +184 -0
- package/skills/05_EEG_ERP/eeg-paradigm-designer/SKILL.md +226 -0
- package/skills/05_EEG_ERP/eeg-paradigm-designer/references/component-paradigm-map.md +276 -0
- package/skills/05_EEG_ERP/eeg-paradigm-designer/references/timing-parameters.md +244 -0
- package/skills/05_EEG_ERP/eeg-preprocessing-pipeline-guide/SKILL.md +367 -0
- package/skills/05_EEG_ERP/eeg-preprocessing-pipeline-guide/references/parameter-lookup-tables.md +138 -0
- package/skills/05_EEG_ERP/erp-analysis/SKILL.md +185 -0
- package/skills/05_EEG_ERP/erp-analysis/references/erp-components.md +447 -0
- package/skills/05_EEG_ERP/erp-analysis/references/preprocessing-pipeline.md +277 -0
- package/skills/05_EEG_ERP/erp-analysis/references/statistical-approaches.md +351 -0
- package/skills/05_EEG_ERP/mne-python-guide/SKILL.md +174 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/decoding.md +178 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/io_formats.md +160 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/preprocessing.md +259 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/simulation.md +173 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/source_localization.md +234 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/statistics.md +196 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/time_frequency.md +165 -0
- package/skills/05_EEG_ERP/mne-python-guide/references/visualization.md +175 -0
- package/skills/06_fMRI_Neuroimaging/brain-connectivity-modeler/SKILL.md +317 -0
- package/skills/06_fMRI_Neuroimaging/brain-connectivity-modeler/references/method-implementation-guide.md +116 -0
- package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/SKILL.md +296 -0
- package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/references/design-matrix-guide.md +214 -0
- package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/references/statistical-inference.md +288 -0
- package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/SKILL.md +274 -0
- package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/references/quality-control.md +336 -0
- package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/references/step-by-step-pipeline.md +380 -0
- package/skills/06_fMRI_Neuroimaging/fmri-task-design-guide/SKILL.md +264 -0
- package/skills/06_fMRI_Neuroimaging/fmri-task-design-guide/references/design-optimization-examples.md +114 -0
- package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/SKILL.md +273 -0
- package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/references/decoding-methods.md +170 -0
- package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/references/rsa-guide.md +266 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/SKILL.md +123 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/database-subjects.md +179 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/dataset-types.md +208 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/freesurfer-fmriprep.md +162 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/mapping-transforms.md +181 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/mni-utils.md +207 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/surface-analysis.md +219 -0
- package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/visualization.md +251 -0
- package/skills/07_Computational_Modeling/act-r-model-builder/SKILL.md +297 -0
- package/skills/07_Computational_Modeling/act-r-model-builder/references/model-patterns.md +197 -0
- package/skills/07_Computational_Modeling/act-r-model-builder/references/parameter-table.yaml +204 -0
- package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/SKILL.md +294 -0
- package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/references/diagnostics-checklist.md +351 -0
- package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/references/prior-selection-guide.md +241 -0
- package/skills/07_Computational_Modeling/parameter-recovery-checker/SKILL.md +269 -0
- package/skills/07_Computational_Modeling/parameter-recovery-checker/references/recovery-diagnostics.md +207 -0
- package/skills/08_Computational_Neuroscience/brain-connectivity-modeler/SKILL.md +317 -0
- package/skills/08_Computational_Neuroscience/brain-connectivity-modeler/references/method-implementation-guide.md +116 -0
- package/skills/08_Computational_Neuroscience/neural-decoding-analysis/SKILL.md +273 -0
- package/skills/08_Computational_Neuroscience/neural-decoding-analysis/references/decoding-methods.md +170 -0
- package/skills/08_Computational_Neuroscience/neural-decoding-analysis/references/rsa-guide.md +266 -0
- package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/SKILL.md +305 -0
- package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/references/data-requirements.md +60 -0
- package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/references/method-comparison.md +151 -0
- package/skills/08_Computational_Neuroscience/spiking-network-model-builder/SKILL.md +376 -0
- package/skills/08_Computational_Neuroscience/spiking-network-model-builder/references/hh-parameters.md +117 -0
- package/skills/08_Computational_Neuroscience/spiking-network-model-builder/references/network-regimes.md +130 -0
- package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/SKILL.md +258 -0
- package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/references/indicator-parameters.md +242 -0
- package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/references/pipeline-details.md +211 -0
- package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/SKILL.md +261 -0
- package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/references/opsin-catalog.md +124 -0
- package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/references/stimulation-parameters.md +304 -0
- package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/SKILL.md +367 -0
- package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/references/disconnection-guide.md +152 -0
- package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/references/vlsm-pipeline.md +182 -0
- package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/SKILL.md +250 -0
- package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/references/deficit-profiles.md +302 -0
- package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/references/test-catalog.md +304 -0
- package/skills/11_Developmental_Cognition/infant-looking-time-designer/SKILL.md +345 -0
- package/skills/11_Developmental_Cognition/infant-looking-time-designer/references/age-parameters.yaml +186 -0
- package/skills/12_Social_Cognition/tom-task-selector/SKILL.md +379 -0
- package/skills/12_Social_Cognition/tom-task-selector/references/task-database.md +317 -0
- package/skills/13_Visualization/nature-figure/README.md +442 -0
- package/skills/13_Visualization/nature-figure/SKILL.md +60 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-01-bar-charts.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-02-line-trends.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-03-heatmaps.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-04-scatter-bubble.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-05-radar-polar.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-06-distributions.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-07-forest-interval.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-08-area-stacked.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-09-image-plates.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-10-network-matrix.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_motivation.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_observation.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_observation_distillation.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_contrastive.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_results_CEDAR.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_results_IEDB.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_schematic.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/RNAGenScape_schematic.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/figures/ablation.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/figures/comparison.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/plot_ablation.py +86 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/plot_comparison.py +109 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/diffusion_swiss_roll.py +97 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/diffusion_swiss_roll.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_GeneRegulatory.pdf +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_GeneRegulatory.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_Trajectory.pdf +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_Trajectory.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/figX_comparison_Ablation.pdf +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/figX_comparison_Ablation.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_Ablation.py +64 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_GeneRegulatory.py +74 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_Trajectory.py +74 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/figures/idea.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/figures/illustration.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/plot_idea.py +76 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/plot_illustration.py +404 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_FPGM/figures/freq_prior.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_FPGM/plot_freq_prior.py +146 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_ablation_Cancer.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_ablation_IEDB.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_comparison_Cancer.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_comparison_IEDB.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/plot_bars.py +216 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/raw_data.py +125 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/manifold.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/manifold_holes.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_comparison_optimization.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_comparison_speed.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_sweep.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_comparison.py +228 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_hole_manifold.py +82 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_manifold.py +61 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_sweep.py +77 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/figures/comparison_posttraining.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/figures/comparison_radar.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/plot_comparison_radar.py +173 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/plot_posttraining.py +82 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/brute_force.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/correctness_by_category.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/correctness_by_subcategory.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/rewriting.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/selfcorrection_math.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_brute_force.py +248 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_correctness_by_category.py +132 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_correctness_by_subcategory.py +131 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_rewriting.py +105 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_selfcorrection_math.py +99 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/figures/composition_heatmap.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/figures/trend_by_month.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/plot_composition.py +81 -0
- package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/plot_trend.py +125 -0
- package/skills/13_Visualization/nature-figure/assets/gallery/fig1-material-mechanism-rich.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/gallery/fig2-spatial-imaging-rich.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/gallery/fig3-in-vivo-efficacy-rich.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/gallery/fig4-single-cell-systems-rich.png +0 -0
- package/skills/13_Visualization/nature-figure/assets/gallery/fig5-validation-perturbation-rich.png +0 -0
- package/skills/13_Visualization/nature-figure/evals/evals.json +37 -0
- package/skills/13_Visualization/nature-figure/manifest.yaml +57 -0
- package/skills/13_Visualization/nature-figure/references/api.md +428 -0
- package/skills/13_Visualization/nature-figure/references/backend-selection.md +100 -0
- package/skills/13_Visualization/nature-figure/references/chart-types.md +281 -0
- package/skills/13_Visualization/nature-figure/references/common-patterns.md +350 -0
- package/skills/13_Visualization/nature-figure/references/demos.md +65 -0
- package/skills/13_Visualization/nature-figure/references/design-theory.md +436 -0
- package/skills/13_Visualization/nature-figure/references/figure-contract.md +93 -0
- package/skills/13_Visualization/nature-figure/references/nature-2026-observations.md +112 -0
- package/skills/13_Visualization/nature-figure/references/qa-contract.md +119 -0
- package/skills/13_Visualization/nature-figure/references/r-template-index.md +66 -0
- package/skills/13_Visualization/nature-figure/references/r-workflow.md +161 -0
- package/skills/13_Visualization/nature-figure/references/tutorials.md +251 -0
- package/skills/13_Visualization/nature-figure/static/core/contract.md +29 -0
- package/skills/13_Visualization/nature-figure/static/core/stance.md +37 -0
- package/skills/13_Visualization/nature-figure/static/fragments/backend/python.md +37 -0
- package/skills/13_Visualization/nature-figure/static/fragments/backend/r.md +44 -0
- package/skills/14_Writing/markdown-report-writing/SKILL.md +306 -0
- package/skills/14_Writing/markdown-report-writing/references/compatibility-matrix.md +72 -0
- package/skills/14_Writing/markdown-report-writing/references/templates.md +299 -0
- package/skills/15_Others/neuroimaging-power-guide/SKILL.md +324 -0
- package/skills/15_Others/neuroimaging-power-guide/references/effect-size-lookup-tables.md +102 -0
- package/skills/15_Others/neuroimaging-sample-size-calculator/SKILL.md +330 -0
- package/skills/15_Others/neuroimaging-sample-size-calculator/references/worked-examples.md +220 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "brain-connectivity-modeler"
|
|
3
|
+
description: "Advises on functional/effective connectivity methods: PPI, DCM, Granger causality, graph theory"
|
|
4
|
+
domain: "cognitive-neuroscience"
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
authors:
|
|
7
|
+
- "awesome_cognitive_and_neuroscience_skills contributors"
|
|
8
|
+
papers:
|
|
9
|
+
- "Friston, 2011"
|
|
10
|
+
- "Friston et al., 1997"
|
|
11
|
+
- "Friston et al., 2003"
|
|
12
|
+
- "Bullmore & Sporns, 2009"
|
|
13
|
+
- "O'Reilly et al., 2012"
|
|
14
|
+
- "McLaren et al., 2012"
|
|
15
|
+
- "Watts & Strogatz, 1998"
|
|
16
|
+
dependencies:
|
|
17
|
+
required:
|
|
18
|
+
- research-literacy
|
|
19
|
+
recommended:
|
|
20
|
+
- fmri-glm-analysis-guide
|
|
21
|
+
- fmri-preprocessing-pipeline-guide
|
|
22
|
+
review_status: "ai-generated"
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# Brain Connectivity Modeler
|
|
26
|
+
|
|
27
|
+
## Purpose
|
|
28
|
+
|
|
29
|
+
Brain connectivity analysis goes beyond mapping where activation occurs to ask how brain regions interact. This requires choosing among fundamentally different analytical frameworks: functional connectivity (statistical associations), effective connectivity (directed causal influences), and network topology (graph-theoretic properties). Each framework answers different questions and makes different assumptions.
|
|
30
|
+
|
|
31
|
+
A competent programmer without neuroscience training would not know the critical distinction between functional and effective connectivity, would likely confuse correlation with causation in brain networks, and would not appreciate why motion artifacts are particularly devastating for connectivity analyses. This skill encodes the domain judgment required to select and correctly implement brain connectivity methods.
|
|
32
|
+
|
|
33
|
+
## When to Use This Skill
|
|
34
|
+
|
|
35
|
+
- Choosing a connectivity method for task-based or resting-state fMRI
|
|
36
|
+
- Implementing psychophysiological interaction (PPI) analysis
|
|
37
|
+
- Setting up dynamic causal models (DCM)
|
|
38
|
+
- Applying graph theory to brain network data
|
|
39
|
+
- Evaluating whether Granger causality is appropriate for fMRI
|
|
40
|
+
- Reviewing or troubleshooting existing connectivity analyses
|
|
41
|
+
|
|
42
|
+
## Research Planning Protocol
|
|
43
|
+
|
|
44
|
+
Before executing the domain-specific steps below, you MUST:
|
|
45
|
+
|
|
46
|
+
1. **State the research question** — What specific question is this analysis/paradigm addressing?
|
|
47
|
+
2. **Justify the method choice** — Why is this approach appropriate? What alternatives were considered?
|
|
48
|
+
3. **Declare expected outcomes** — What results would support vs. refute the hypothesis?
|
|
49
|
+
4. **Note assumptions and limitations** — What does this method assume? Where could it mislead?
|
|
50
|
+
5. **Present the plan to the user and WAIT for confirmation** before proceeding.
|
|
51
|
+
|
|
52
|
+
For detailed methodology guidance, see the `research-literacy` skill.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## ⚠️ Verification Notice
|
|
56
|
+
|
|
57
|
+
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](https://github.com/HaoxuanLiTHUAI/awesome_cognitive_and_neuroscience_skills/issues).
|
|
58
|
+
|
|
59
|
+
## Functional vs. Effective Connectivity
|
|
60
|
+
|
|
61
|
+
This is the most fundamental distinction in brain connectivity analysis (Friston, 2011):
|
|
62
|
+
|
|
63
|
+
| Property | Functional Connectivity | Effective Connectivity |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| Definition | Statistical dependency between time series | Directed causal influence of one region on another |
|
|
66
|
+
| Directionality | **Undirected** | **Directed** |
|
|
67
|
+
| Causality | Cannot infer causality | Attempts to infer causal structure |
|
|
68
|
+
| Model requirement | Model-free (correlations) | Model-based (requires explicit neural model) |
|
|
69
|
+
| Hypothesis type | Exploratory or confirmatory | Strictly confirmatory |
|
|
70
|
+
| Primary methods | Correlation, partial correlation, ICA | DCM, PPI, structural equation modeling |
|
|
71
|
+
| Source | Friston, 2011 | Friston, 2011; Friston et al., 2003 |
|
|
72
|
+
|
|
73
|
+
**Domain warning**: Functional connectivity (correlation) does not imply direct anatomical or causal connection. Two regions can show high functional connectivity because they share a common input, not because they directly influence each other (Friston, 2011).
|
|
74
|
+
|
|
75
|
+
## Method Selection Decision Tree
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
What is your connectivity question?
|
|
79
|
+
|
|
|
80
|
+
+-- "Do regions A and B covary in activity?"
|
|
81
|
+
| --> Functional connectivity (correlation, partial correlation)
|
|
82
|
+
|
|
|
83
|
+
+-- "Does the coupling between A and B change with task context?"
|
|
84
|
+
| --> PPI (Friston et al., 1997; O'Reilly et al., 2012)
|
|
85
|
+
|
|
|
86
|
+
+-- "Does region A causally influence region B, and does this
|
|
87
|
+
| change with experimental manipulation?"
|
|
88
|
+
| --> DCM (Friston et al., 2003)
|
|
89
|
+
| Requires: strong prior hypotheses, limited model space
|
|
90
|
+
|
|
|
91
|
+
+-- "What is the network topology (hubs, modules, efficiency)?"
|
|
92
|
+
| --> Graph theory (Bullmore & Sporns, 2009)
|
|
93
|
+
|
|
|
94
|
+
+-- "Does activity in A temporally precede and predict B?"
|
|
95
|
+
--> Granger causality (with STRONG caveats for fMRI;
|
|
96
|
+
see Granger causality section below)
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Functional Connectivity Methods
|
|
100
|
+
|
|
101
|
+
### Seed-Based Correlation
|
|
102
|
+
|
|
103
|
+
1. Extract mean time series from a seed ROI
|
|
104
|
+
2. Compute Pearson correlation with all other voxels (or ROIs)
|
|
105
|
+
3. Apply Fisher z-transformation: **z = 0.5 * ln((1+r)/(1-r))** before group statistics (Fisher, 1921)
|
|
106
|
+
4. Enter z-maps into second-level group analysis
|
|
107
|
+
|
|
108
|
+
**Critical preprocessing**:
|
|
109
|
+
- Apply stringent motion correction: FD threshold **< 0.2 mm** for scrubbing or censoring (Power et al., 2014)
|
|
110
|
+
- Band-pass filter to **0.01-0.1 Hz** for resting-state (Biswal et al., 1995; but see Niazy et al., 2011 for caveats)
|
|
111
|
+
- Regress out motion parameters (24-parameter model), WM/CSF signals (aCompCor; Behzadi et al., 2007)
|
|
112
|
+
|
|
113
|
+
### Partial Correlation
|
|
114
|
+
|
|
115
|
+
Partial correlation between regions A and B controls for shared variance with all other regions in the model. This reduces the influence of common inputs but requires careful regularization when the number of regions is large relative to the number of time points (Smith et al., 2011).
|
|
116
|
+
|
|
117
|
+
- Use regularized partial correlation (e.g., L1-penalized precision matrix) when the number of ROIs exceeds ~20% of the number of time points (Varoquaux et al., 2010)
|
|
118
|
+
|
|
119
|
+
### Independent Component Analysis (ICA)
|
|
120
|
+
|
|
121
|
+
ICA decomposes the whole-brain fMRI signal into spatially independent components, each representing a network (Beckmann & Smith, 2004).
|
|
122
|
+
|
|
123
|
+
- **Model order (number of components)**: **20-25** for major networks; **70-100** for fine-grained parcellation (Smith et al., 2009)
|
|
124
|
+
- **Group ICA**: Use temporal concatenation or dual regression (Beckmann et al., 2009; Nickerson et al., 2017)
|
|
125
|
+
- **Artifact identification**: Classify components as signal or noise based on spatial pattern, power spectrum, and temporal properties (Griffanti et al., 2017)
|
|
126
|
+
|
|
127
|
+
## Psychophysiological Interactions (PPI)
|
|
128
|
+
|
|
129
|
+
PPI tests whether the functional coupling between a seed region and other brain areas changes as a function of psychological context (e.g., task condition; Friston et al., 1997).
|
|
130
|
+
|
|
131
|
+
### PPI Model Specification
|
|
132
|
+
|
|
133
|
+
The PPI GLM includes three regressors:
|
|
134
|
+
|
|
135
|
+
1. **Physiological regressor**: Deconvolved time series from the seed region (the neural signal estimate)
|
|
136
|
+
2. **Psychological regressor**: The task regressor (e.g., condition A vs. condition B)
|
|
137
|
+
3. **Interaction term**: Element-wise product of the physiological and psychological regressors, reconvolved with the HRF
|
|
138
|
+
|
|
139
|
+
The interaction term is the regressor of interest. A significant PPI effect means that functional coupling with the seed region differs between task conditions (O'Reilly et al., 2012).
|
|
140
|
+
|
|
141
|
+
### Generalized PPI (gPPI)
|
|
142
|
+
|
|
143
|
+
Standard PPI tests one psychological contrast at a time. Generalized PPI (gPPI) includes all task conditions simultaneously (McLaren et al., 2012):
|
|
144
|
+
|
|
145
|
+
- Create separate PPI terms for each condition
|
|
146
|
+
- Include all main-effect task regressors and the seed time series
|
|
147
|
+
- More sensitive than standard PPI because it properly accounts for all conditions
|
|
148
|
+
- **Recommended over standard PPI** for designs with more than two conditions (McLaren et al., 2012)
|
|
149
|
+
|
|
150
|
+
### PPI Practical Considerations
|
|
151
|
+
|
|
152
|
+
| Parameter | Recommendation | Source |
|
|
153
|
+
|---|---|---|
|
|
154
|
+
| Seed ROI definition | **Functional** (from activation map) or anatomical atlas; **6-10 mm** sphere typical | O'Reilly et al., 2012 |
|
|
155
|
+
| Deconvolution | Required for interaction term (SPM default); extract neural signal before computing interaction | Gitelman et al., 2003 |
|
|
156
|
+
| Minimum events per condition | **20+** per condition for stable PPI estimates | O'Reilly et al., 2012 |
|
|
157
|
+
| Multiple seed regions | Run separate PPI analyses per seed, then correct for multiple comparisons | O'Reilly et al., 2012 |
|
|
158
|
+
|
|
159
|
+
## Dynamic Causal Modeling (DCM)
|
|
160
|
+
|
|
161
|
+
DCM models the causal architecture of brain regions using a biophysical generative model of neural dynamics and hemodynamic coupling (Friston et al., 2003).
|
|
162
|
+
|
|
163
|
+
### DCM Model Specification
|
|
164
|
+
|
|
165
|
+
A DCM is defined by three matrices:
|
|
166
|
+
|
|
167
|
+
| Matrix | Function | Interpretation |
|
|
168
|
+
|---|---|---|
|
|
169
|
+
| **A** (intrinsic) | Fixed connections between regions (always on) | Baseline coupling strength |
|
|
170
|
+
| **B** (modulatory) | Condition-dependent modulation of connections | How task context changes coupling (the key experimental question) |
|
|
171
|
+
| **C** (driving input) | Which regions receive direct task input | Where external stimuli enter the network |
|
|
172
|
+
|
|
173
|
+
### DCM Requirements and Constraints
|
|
174
|
+
|
|
175
|
+
| Requirement | Guideline | Source |
|
|
176
|
+
|---|---|---|
|
|
177
|
+
| Number of regions | **3-8 regions** maximum | Stephan et al., 2010 |
|
|
178
|
+
| Prior hypotheses | **Strong** prior hypotheses about network architecture required | Stephan et al., 2010 |
|
|
179
|
+
| Model space size | Keep total models < **20-30** for reliable BMS | Stephan et al., 2009 |
|
|
180
|
+
| Task design | Event-related or block designs with clear experimental manipulation | Friston et al., 2003 |
|
|
181
|
+
| Time series extraction | From **first eigenvariate** of activated voxels within ROI | Stephan et al., 2010 |
|
|
182
|
+
| Data quality | Strong task activation in all modeled regions | Stephan et al., 2010 |
|
|
183
|
+
|
|
184
|
+
### Bayesian Model Selection (BMS)
|
|
185
|
+
|
|
186
|
+
After estimating all candidate models, use BMS to identify the winning model (Stephan et al., 2009):
|
|
187
|
+
|
|
188
|
+
- **Fixed-effects BMS (FFX)**: Assumes all subjects have the same model. Use when sample is homogeneous
|
|
189
|
+
- **Random-effects BMS (RFX)**: Allows different subjects to have different optimal models. Use for heterogeneous populations (Stephan et al., 2009)
|
|
190
|
+
- **Family-level inference**: Group models into families sharing a feature (e.g., all models with a particular connection), then compare families. More robust than individual model comparison (Penny et al., 2010)
|
|
191
|
+
- Report **exceedance probability** (probability that a model/family is more likely than all others) and **protected exceedance probability** (corrected for chance; Rigoux et al., 2014)
|
|
192
|
+
|
|
193
|
+
### DCM Pitfalls
|
|
194
|
+
|
|
195
|
+
- **Too many models**: Exhaustive model comparison with > 30 models leads to unreliable BMS (Stephan et al., 2010)
|
|
196
|
+
- **No activation in modeled regions**: DCM requires that included regions show significant task-related activation. Including silent regions produces unreliable estimates
|
|
197
|
+
- **Confusing DCM with Granger causality**: DCM models neural dynamics, not temporal precedence in BOLD signals
|
|
198
|
+
|
|
199
|
+
## Granger Causality
|
|
200
|
+
|
|
201
|
+
Granger causality tests whether past values of time series X improve prediction of time series Y beyond Y's own past (Granger, 1969).
|
|
202
|
+
|
|
203
|
+
### Severe Limitations for fMRI
|
|
204
|
+
|
|
205
|
+
| Limitation | Explanation | Source |
|
|
206
|
+
|---|---|---|
|
|
207
|
+
| Hemodynamic confound | The HRF varies across brain regions by **1-2 seconds**. A region with a faster HRF will appear to "Granger-cause" a region with a slower HRF, regardless of true neural timing | David et al., 2008; Seth et al., 2013 |
|
|
208
|
+
| Low temporal resolution | fMRI TR (**0.5-3 seconds**) is far slower than neural dynamics (**milliseconds**), aliasing true causal structure | Seth et al., 2013 |
|
|
209
|
+
| Downsampling artifacts | Subsampling a continuous process can reverse the apparent causal direction | Seth et al., 2013 |
|
|
210
|
+
|
|
211
|
+
**Domain warning**: Granger causality applied to fMRI BOLD signals is widely considered unreliable for inferring neural causal direction due to hemodynamic variability (David et al., 2008; Seth et al., 2013). If causal inference is needed, use DCM (which explicitly models the hemodynamic delay) or consider EEG/MEG (which has millisecond temporal resolution).
|
|
212
|
+
|
|
213
|
+
## Graph Theory for Brain Networks
|
|
214
|
+
|
|
215
|
+
Graph theory characterizes the topological organization of brain networks (Bullmore & Sporns, 2009).
|
|
216
|
+
|
|
217
|
+
### Node Definition
|
|
218
|
+
|
|
219
|
+
| Method | Description | Example Atlases | Source |
|
|
220
|
+
|---|---|---|---|
|
|
221
|
+
| Anatomical parcellation | Predefined atlas regions | AAL (116 regions), Harvard-Oxford | Tzourio-Mazoyer et al., 2002 |
|
|
222
|
+
| Functional parcellation | Data-driven boundaries | Schaefer (100-1000 parcels), Gordon (333 parcels) | Schaefer et al., 2018; Gordon et al., 2016 |
|
|
223
|
+
| Voxel-level | Each voxel is a node | ~100,000 nodes | Computationally expensive; rarely used for full graph metrics |
|
|
224
|
+
|
|
225
|
+
**Recommendation**: Use functional parcellation (Schaefer or Gordon atlases) for most analyses. Functional parcels better respect the true boundaries of functional regions than anatomical atlases (Schaefer et al., 2018).
|
|
226
|
+
|
|
227
|
+
### Edge Definition
|
|
228
|
+
|
|
229
|
+
| Method | Description | Threshold Approach | Source |
|
|
230
|
+
|---|---|---|---|
|
|
231
|
+
| Correlation | Pearson r between time series | Proportional (top **10-20%** of connections) or absolute (r > **0.2-0.3**) | Bullmore & Sporns, 2009 |
|
|
232
|
+
| Partial correlation | Controls for indirect connections | Same thresholding options | Varoquaux et al., 2010 |
|
|
233
|
+
| Coherence | Frequency-domain coupling | Magnitude squared coherence > threshold | Sun et al., 2004 |
|
|
234
|
+
|
|
235
|
+
**Domain warning**: Thresholding strategy dramatically affects graph metrics. Always report results across a range of thresholds or use proportional thresholding to control for differences in overall connectivity strength across subjects (van den Heuvel et al., 2017).
|
|
236
|
+
|
|
237
|
+
### Key Graph Metrics
|
|
238
|
+
|
|
239
|
+
| Metric | Meaning | Normalization | Source |
|
|
240
|
+
|---|---|---|---|
|
|
241
|
+
| Clustering coefficient | Proportion of a node's neighbors that are also connected to each other | Normalize against **random networks** (C/C_random) | Watts & Strogatz, 1998 |
|
|
242
|
+
| Characteristic path length | Average shortest path between all node pairs | Normalize against **random networks** (L/L_random) | Watts & Strogatz, 1998 |
|
|
243
|
+
| Small-worldness | **sigma = (C/C_random) / (L/L_random)**; sigma > **1** indicates small-world | N/A (already normalized) | Watts & Strogatz, 1998; Humphries & Gurney, 2008 |
|
|
244
|
+
| Modularity (Q) | Strength of community structure; Q > **0.3** typically indicates strong modular organization | Compare against null distribution | Newman, 2006 |
|
|
245
|
+
| Hub measures | Degree centrality, betweenness centrality, participation coefficient | Z-score within network | Bullmore & Sporns, 2009 |
|
|
246
|
+
| Global efficiency | Inverse of mean shortest path length | Normalize against random networks | Latora & Marchiori, 2001 |
|
|
247
|
+
|
|
248
|
+
**Normalization requirement**: Raw graph metrics are meaningless without comparison to null models. Always normalize against **random networks** (preserving degree distribution) or **lattice networks** (Watts & Strogatz, 1998; Rubinov & Sporns, 2010). Generate at least **1,000 random networks** for stable null distributions.
|
|
249
|
+
|
|
250
|
+
## Common Pitfalls
|
|
251
|
+
|
|
252
|
+
1. **Confusing functional connectivity with effective connectivity**: Correlation between two regions does not imply direct or causal connection. Two regions may correlate because they receive common input from a third region (Friston, 2011)
|
|
253
|
+
2. **Motion artifacts in connectivity**: Head motion creates spurious short-distance positive correlations and spurious long-distance negative correlations, mimicking real connectivity patterns (Power et al., 2012). Use stringent motion thresholds (FD < **0.2 mm**; Power et al., 2014) and aggressive confound regression
|
|
254
|
+
3. **Not Fisher z-transforming correlations**: Pearson r values are bounded and non-normally distributed. Always apply Fisher z-transformation before parametric group statistics (Fisher, 1921)
|
|
255
|
+
4. **Arbitrary graph thresholds**: Reporting graph metrics at a single threshold without sensitivity analysis across thresholds can produce unreliable or threshold-dependent conclusions (van den Heuvel et al., 2017)
|
|
256
|
+
5. **Too many DCM models**: Exhaustive model comparison across > 30 models leads to unreliable Bayesian model selection. Constrain the model space based on prior hypotheses (Stephan et al., 2010)
|
|
257
|
+
6. **Using Granger causality with fMRI**: Regional HRF variability can reverse apparent causal direction in BOLD signals (David et al., 2008; Seth et al., 2013)
|
|
258
|
+
7. **Confounding connectivity with coactivation**: Two regions that are both activated by a task may show correlation due to shared task-driven variance, not intrinsic neural coupling. Regress out task effects before computing resting-state-style connectivity on task data (Cole et al., 2019)
|
|
259
|
+
8. **Ignoring global signal effects**: Global signal regression introduces artifactual anticorrelations. If using it, acknowledge this limitation (Murphy & Fox, 2017)
|
|
260
|
+
|
|
261
|
+
## Minimum Reporting Checklist
|
|
262
|
+
|
|
263
|
+
- [ ] Connectivity type (functional, effective, or graph-theoretic) and justification
|
|
264
|
+
- [ ] ROI/node definition method, atlas used, number of regions
|
|
265
|
+
- [ ] Time series extraction method (mean, first eigenvariate, PCA)
|
|
266
|
+
- [ ] Preprocessing for connectivity (band-pass filter frequencies, confound model, motion threshold)
|
|
267
|
+
- [ ] Edge definition (correlation type, thresholding method and values)
|
|
268
|
+
- [ ] For PPI: seed region definition, deconvolution method, conditions in PPI model
|
|
269
|
+
- [ ] For DCM: model space (A, B, C matrices for all models), BMS method (FFX/RFX), model evidence
|
|
270
|
+
- [ ] For graph theory: normalization method, number of null networks, range of thresholds tested
|
|
271
|
+
- [ ] Fisher z-transformation applied (yes/no)
|
|
272
|
+
- [ ] Motion exclusion criteria and mean FD of included subjects
|
|
273
|
+
- [ ] Software package and version
|
|
274
|
+
|
|
275
|
+
## References
|
|
276
|
+
|
|
277
|
+
- Beckmann, C. F., & Smith, S. M. (2004). Probabilistic independent component analysis for functional magnetic resonance imaging. *IEEE Transactions on Medical Imaging*, 23(2), 137-152.
|
|
278
|
+
- Beckmann, C. F., Mackay, C. E., Filippini, N., & Smith, S. M. (2009). Group comparison of resting-state fMRI data using multi-subject ICA and dual regression. *NeuroImage*, 47(S1), S148.
|
|
279
|
+
- Behzadi, Y., Restom, K., Liau, J., & Liu, T. T. (2007). A component based noise correction method (CompCor) for BOLD and perfusion based fMRI. *NeuroImage*, 37(1), 90-101.
|
|
280
|
+
- Biswal, B., Yetkin, F. Z., Haughton, V. M., & Hyde, J. S. (1995). Functional connectivity in the motor cortex of resting human brain using echo-planar MRI. *Magnetic Resonance in Medicine*, 34(4), 537-541.
|
|
281
|
+
- Bullmore, E., & Sporns, O. (2009). Complex brain networks: Graph theoretical analysis of structural and functional systems. *Nature Reviews Neuroscience*, 10(3), 186-198.
|
|
282
|
+
- Cole, M. W., Ito, T., Bassett, D. S., & Schultz, D. H. (2019). Activity flow over resting-state networks shapes cognitive task activations. *Nature Neuroscience*, 19, 1718-1726.
|
|
283
|
+
- David, O., Guillemain, I., Saillet, S., et al. (2008). Identifying neural drivers with functional MRI: An electrophysiological validation. *PLoS Biology*, 6(12), e315.
|
|
284
|
+
- Fisher, R. A. (1921). On the "probable error" of a coefficient of correlation deduced from a small sample. *Metron*, 1, 3-32.
|
|
285
|
+
- Friston, K. J. (2011). Functional and effective connectivity: A review. *Brain Connectivity*, 1(1), 13-36.
|
|
286
|
+
- Friston, K. J., Buechel, C., Fink, G. R., et al. (1997). Psychophysiological and modulatory interactions in neuroimaging. *NeuroImage*, 6(3), 218-229.
|
|
287
|
+
- Friston, K. J., Harrison, L., & Penny, W. (2003). Dynamic causal modelling. *NeuroImage*, 19(4), 1273-1302.
|
|
288
|
+
- Gitelman, D. R., Penny, W. D., Ashburner, J., & Friston, K. J. (2003). Modeling regional and psychophysiologic interactions in fMRI: The importance of hemodynamic deconvolution. *NeuroImage*, 19(1), 200-207.
|
|
289
|
+
- Gordon, E. M., Laumann, T. O., Adeyemo, B., et al. (2016). Generation and evaluation of a cortical area parcellation from resting-state correlations. *Cerebral Cortex*, 26(1), 288-303.
|
|
290
|
+
- Granger, C. W. J. (1969). Investigating causal relations by econometric models and cross-spectral methods. *Econometrica*, 37(3), 424-438.
|
|
291
|
+
- Griffanti, L., Douaud, G., Bijsterbosch, J., et al. (2017). Hand classification of fMRI ICA noise components. *NeuroImage*, 154, 188-205.
|
|
292
|
+
- Humphries, M. D., & Gurney, K. (2008). Network "small-world-ness": A quantitative method for determining canonical network equivalence. *PLoS ONE*, 3(4), e0002051.
|
|
293
|
+
- Latora, V., & Marchiori, M. (2001). Efficient behavior of small-world networks. *Physical Review Letters*, 87(19), 198701.
|
|
294
|
+
- McLaren, D. G., Ries, M. L., Xu, G., & Johnson, S. C. (2012). A generalized form of context-dependent psychophysiological interactions (gPPI). *NeuroImage*, 61(4), 1277-1286.
|
|
295
|
+
- Murphy, K., & Fox, M. D. (2017). Towards a consensus regarding global signal regression for resting state functional connectivity MRI. *NeuroImage*, 154, 169-173.
|
|
296
|
+
- Newman, M. E. J. (2006). Modularity and community structure in networks. *PNAS*, 103(23), 8577-8582.
|
|
297
|
+
- Nickerson, L. D., Smith, S. M., Ongur, D., & Beckmann, C. F. (2017). Using dual regression to investigate network shape and amplitude in functional connectivity analyses. *Frontiers in Neuroscience*, 11, 115.
|
|
298
|
+
- Niazy, R. K., Xie, J., Miller, K., Beckmann, C. F., & Smith, S. M. (2011). Spectral characteristics of resting state networks. *Progress in Brain Research*, 193, 259-276.
|
|
299
|
+
- O'Reilly, J. X., Woolrich, M. W., Behrens, T. E. J., et al. (2012). Tools of the trade: Psychophysiological interactions and functional connectivity. *Social Cognitive and Affective Neuroscience*, 7(5), 604-609.
|
|
300
|
+
- Penny, W. D., Stephan, K. E., Daunizeau, J., et al. (2010). Comparing families of dynamic causal models. *PLoS Computational Biology*, 6(3), e1000709.
|
|
301
|
+
- Power, J. D., Barnes, K. A., Snyder, A. Z., et al. (2012). Spurious but systematic correlations in functional connectivity MRI networks arise from subject motion. *NeuroImage*, 59(3), 2142-2154.
|
|
302
|
+
- Power, J. D., Mitra, A., Laumann, T. O., et al. (2014). Methods to detect, characterize, and remove motion artifact in resting state fMRI. *NeuroImage*, 84, 320-341.
|
|
303
|
+
- Rigoux, L., Stephan, K. E., Friston, K. J., & Daunizeau, J. (2014). Bayesian model selection for group studies revisited. *NeuroImage*, 84, 971-985.
|
|
304
|
+
- Rubinov, M., & Sporns, O. (2010). Complex network measures of brain connectivity: Uses and interpretations. *NeuroImage*, 52(3), 1059-1069.
|
|
305
|
+
- Schaefer, A., Kong, R., Gordon, E. M., et al. (2018). Local-global parcellation of the human cerebral cortex from intrinsic functional connectivity MRI. *Cerebral Cortex*, 28(9), 3095-3114.
|
|
306
|
+
- Seth, A. K., Barrett, A. B., & Barnett, L. (2015). Granger causality analysis in neuroscience and neuroimaging. *Journal of Neuroscience*, 35(8), 3293-3297.
|
|
307
|
+
- Smith, S. M., Fox, P. T., Miller, K. L., et al. (2009). Correspondence of the brain's functional architecture during activation and rest. *PNAS*, 106(31), 13040-13045.
|
|
308
|
+
- Smith, S. M., Miller, K. L., Salimi-Khorshidi, G., et al. (2011). Network modelling methods for FMRI. *NeuroImage*, 54(2), 875-891.
|
|
309
|
+
- Stephan, K. E., Penny, W. D., Daunizeau, J., et al. (2009). Bayesian model selection for group studies. *NeuroImage*, 46(4), 1004-1017.
|
|
310
|
+
- Stephan, K. E., Penny, W. D., Moran, R. J., et al. (2010). Ten simple rules for dynamic causal modelling. *NeuroImage*, 49(4), 3099-3109.
|
|
311
|
+
- Sun, F. T., Miller, L. M., & D'Esposito, M. (2004). Measuring interregional functional connectivity using coherence and partial coherence analyses of fMRI data. *NeuroImage*, 21(2), 647-658.
|
|
312
|
+
- Tzourio-Mazoyer, N., Landeau, B., Papathanassiou, D., et al. (2002). Automated anatomical labeling of activations in SPM using a macroscopic anatomical parcellation of the MNI MRI single-subject brain. *NeuroImage*, 15(1), 273-289.
|
|
313
|
+
- van den Heuvel, M. P., de Lange, S. C., Zalesky, A., et al. (2017). Proportional thresholding in resting-state fMRI functional connectivity networks and consequences for patient-control connectome studies. *NeuroImage*, 159, 437-449.
|
|
314
|
+
- Varoquaux, G., Gramfort, A., Poline, J. B., & Thirion, B. (2010). Brain covariance selection: Better individual functional connectivity models using population prior. *NIPS*, 2334-2342.
|
|
315
|
+
- Watts, D. J., & Strogatz, S. H. (1998). Collective dynamics of "small-world" networks. *Nature*, 393(6684), 440-442.
|
|
316
|
+
|
|
317
|
+
See `references/` for detailed method implementation guides and parameter lookup tables.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Brain Connectivity Method Implementation Details
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This reference provides detailed implementation guidance for each connectivity method described in `../SKILL.md`.
|
|
6
|
+
|
|
7
|
+
## PPI Step-by-Step Implementation
|
|
8
|
+
|
|
9
|
+
### Standard PPI (SPM-style)
|
|
10
|
+
|
|
11
|
+
1. **Define seed ROI**: Use an independent functional localizer or anatomical atlas to define the seed region. Typical sphere radius: **6-10 mm** centered on peak coordinate (O'Reilly et al., 2012)
|
|
12
|
+
|
|
13
|
+
2. **Extract time series**: Extract the first eigenvariate from all voxels within the seed ROI that survive a liberal threshold (e.g., p < 0.05 uncorrected at the subject level). The eigenvariate is preferred over the mean because it captures the dominant signal pattern (Stephan et al., 2010)
|
|
14
|
+
|
|
15
|
+
3. **Deconvolve the HRF**: Estimate the underlying neural signal by deconvolving the HRF from the BOLD time series. This step is critical because the interaction must occur at the neural level, not the hemodynamic level (Gitelman et al., 2003)
|
|
16
|
+
|
|
17
|
+
4. **Create interaction term**: Multiply the deconvolved neural signal (physiological) by the task regressor (psychological), then reconvolve with the HRF
|
|
18
|
+
|
|
19
|
+
5. **Specify GLM**: Include three regressors:
|
|
20
|
+
- Seed time series (physiological)
|
|
21
|
+
- Task regressor (psychological)
|
|
22
|
+
- PPI interaction term
|
|
23
|
+
- Plus all standard confound regressors
|
|
24
|
+
|
|
25
|
+
6. **Test the interaction**: The PPI interaction term tests whether the coupling between the seed and target changes with task context. A positive PPI means coupling increases during the contrast condition; a negative PPI means coupling decreases
|
|
26
|
+
|
|
27
|
+
### gPPI Implementation (McLaren et al., 2012)
|
|
28
|
+
|
|
29
|
+
1. Steps 1-3 same as standard PPI
|
|
30
|
+
2. Create separate PPI interaction terms for **each** task condition (not just the contrast of interest)
|
|
31
|
+
3. Include in GLM:
|
|
32
|
+
- Seed time series
|
|
33
|
+
- All task condition regressors
|
|
34
|
+
- One PPI interaction per condition
|
|
35
|
+
- Confound regressors
|
|
36
|
+
4. Form contrasts on the PPI interaction terms (e.g., PPI_condA > PPI_condB)
|
|
37
|
+
|
|
38
|
+
**Advantage over standard PPI**: gPPI properly models the variance from all conditions simultaneously, reducing residual variance and increasing sensitivity (McLaren et al., 2012).
|
|
39
|
+
|
|
40
|
+
## DCM Model Construction Guide
|
|
41
|
+
|
|
42
|
+
### Step 1: Select Regions
|
|
43
|
+
|
|
44
|
+
- Choose **3-8 regions** based on prior literature and/or functional activation (Stephan et al., 2010)
|
|
45
|
+
- All regions must show significant task-related activation in the first-level GLM
|
|
46
|
+
- Extract the first eigenvariate from each region (VOI extraction in SPM)
|
|
47
|
+
- Regions should be defined with a sphere of **6-8 mm** radius centered on the group peak or subject-specific peak
|
|
48
|
+
|
|
49
|
+
### Step 2: Define Model Space
|
|
50
|
+
|
|
51
|
+
Construct candidate models by systematically varying:
|
|
52
|
+
|
|
53
|
+
| Component | Variations |
|
|
54
|
+
|---|---|
|
|
55
|
+
| A matrix (intrinsic connections) | Which regions are connected at baseline? Include at minimum the connections supported by anatomical tracing or diffusion imaging |
|
|
56
|
+
| B matrix (modulatory effects) | Which connections are modulated by experimental conditions? This is typically the hypothesis being tested |
|
|
57
|
+
| C matrix (driving inputs) | Which regions receive direct task input? Usually sensory regions for perceptual tasks, or regions known to initiate task processing |
|
|
58
|
+
|
|
59
|
+
**Model space reduction strategies**:
|
|
60
|
+
- Fix the A matrix across all models (use the most comprehensive plausible connectivity pattern)
|
|
61
|
+
- Vary only the B matrix (which connections are modulated) to test specific hypotheses
|
|
62
|
+
- Use family-level inference to compare model families (Penny et al., 2010)
|
|
63
|
+
|
|
64
|
+
### Step 3: Estimate and Compare
|
|
65
|
+
|
|
66
|
+
1. Estimate all models using variational Laplace (SPM default)
|
|
67
|
+
2. Compute log model evidence (free energy approximation) for each model
|
|
68
|
+
3. Apply Bayesian model selection:
|
|
69
|
+
- FFX-BMS for homogeneous samples
|
|
70
|
+
- RFX-BMS for heterogeneous samples (Stephan et al., 2009)
|
|
71
|
+
4. Report exceedance probability and protected exceedance probability (Rigoux et al., 2014)
|
|
72
|
+
|
|
73
|
+
## Graph Theory Implementation
|
|
74
|
+
|
|
75
|
+
### Step-by-Step Pipeline
|
|
76
|
+
|
|
77
|
+
1. **Parcellation**: Apply an atlas (Schaefer, Gordon, AAL) to extract mean time series from each parcel
|
|
78
|
+
2. **Compute connectivity matrix**: Pearson correlation between all pairs of parcels
|
|
79
|
+
3. **Threshold**: Apply proportional threshold (e.g., keep top **10%, 15%, 20%** of connections) or absolute threshold (e.g., r > **0.2**)
|
|
80
|
+
4. **Binarize or keep weighted**: Binary graphs simplify interpretation; weighted graphs preserve connection strength information (Rubinov & Sporns, 2010)
|
|
81
|
+
5. **Compute graph metrics**: See metric definitions in `../SKILL.md`
|
|
82
|
+
6. **Normalize against null models**: Generate **1,000+** random networks preserving degree distribution (Maslov & Sneppen, 2002) and compute the same metrics
|
|
83
|
+
|
|
84
|
+
### Recommended Graph Analysis Software
|
|
85
|
+
|
|
86
|
+
| Tool | Language | Features | Source |
|
|
87
|
+
|---|---|---|---|
|
|
88
|
+
| Brain Connectivity Toolbox (BCT) | MATLAB/Python | Comprehensive graph metrics | Rubinov & Sporns, 2010 |
|
|
89
|
+
| NetworkX | Python | General graph analysis | Hagberg et al., 2008 |
|
|
90
|
+
| GRETNA | MATLAB (GUI) | Network analysis for neuroimaging | Wang et al., 2015 |
|
|
91
|
+
| BrainNetViewer | MATLAB | Network visualization | Xia et al., 2013 |
|
|
92
|
+
|
|
93
|
+
### Threshold Sensitivity Analysis
|
|
94
|
+
|
|
95
|
+
Because graph metrics depend strongly on the threshold used, always:
|
|
96
|
+
|
|
97
|
+
1. Compute metrics across a range of thresholds (e.g., proportional thresholds from **5% to 40%** in **5%** steps)
|
|
98
|
+
2. Plot metric values as a function of threshold density
|
|
99
|
+
3. Report whether group differences or correlations are consistent across thresholds
|
|
100
|
+
4. Use area-under-the-curve (AUC) across thresholds as a summary measure (van den Heuvel et al., 2017)
|
|
101
|
+
|
|
102
|
+
## References
|
|
103
|
+
|
|
104
|
+
- Gitelman, D. R., Penny, W. D., Ashburner, J., & Friston, K. J. (2003). Modeling regional and psychophysiologic interactions in fMRI. *NeuroImage*, 19(1), 200-207.
|
|
105
|
+
- Hagberg, A. A., Schult, D. A., & Swart, P. J. (2008). Exploring network structure, dynamics, and function using NetworkX. In *Proceedings of the 7th Python in Science Conference*, 11-15.
|
|
106
|
+
- Maslov, S., & Sneppen, K. (2002). Specificity and stability in topology of protein networks. *Science*, 296(5569), 910-913.
|
|
107
|
+
- McLaren, D. G., Ries, M. L., Xu, G., & Johnson, S. C. (2012). A generalized form of context-dependent psychophysiological interactions (gPPI). *NeuroImage*, 61(4), 1277-1286.
|
|
108
|
+
- O'Reilly, J. X., Woolrich, M. W., Behrens, T. E. J., et al. (2012). Tools of the trade: Psychophysiological interactions and functional connectivity. *Social Cognitive and Affective Neuroscience*, 7(5), 604-609.
|
|
109
|
+
- Penny, W. D., Stephan, K. E., Daunizeau, J., et al. (2010). Comparing families of dynamic causal models. *PLoS Computational Biology*, 6(3), e1000709.
|
|
110
|
+
- Rigoux, L., Stephan, K. E., Friston, K. J., & Daunizeau, J. (2014). Bayesian model selection for group studies revisited. *NeuroImage*, 84, 971-985.
|
|
111
|
+
- Rubinov, M., & Sporns, O. (2010). Complex network measures of brain connectivity: Uses and interpretations. *NeuroImage*, 52(3), 1059-1069.
|
|
112
|
+
- Stephan, K. E., Penny, W. D., Daunizeau, J., et al. (2009). Bayesian model selection for group studies. *NeuroImage*, 46(4), 1004-1017.
|
|
113
|
+
- Stephan, K. E., Penny, W. D., Moran, R. J., et al. (2010). Ten simple rules for dynamic causal modelling. *NeuroImage*, 49(4), 3099-3109.
|
|
114
|
+
- van den Heuvel, M. P., de Lange, S. C., Zalesky, A., et al. (2017). Proportional thresholding in resting-state fMRI functional connectivity networks. *NeuroImage*, 159, 437-449.
|
|
115
|
+
- Wang, J., Wang, X., Xia, M., et al. (2015). GRETNA: A graph theoretical network analysis toolbox for imaging connectomics. *Frontiers in Human Neuroscience*, 9, 386.
|
|
116
|
+
- Xia, M., Wang, J., & He, Y. (2013). BrainNet Viewer: A network visualization tool for human brain connectomics. *PLoS ONE*, 8(7), e68910.
|