@brainpilot/skills 0.0.11 → 0.0.13

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.
Files changed (405) hide show
  1. package/package.json +1 -1
  2. package/skills/01_Meta-Skills/workflow-skill-creator/SKILL.md +288 -0
  3. package/skills/01_Meta-Skills/workflow-skill-creator/references/cli_script_template.py +217 -0
  4. package/skills/06_fMRI_Neuroimaging/fmriprep/SKILL.md +256 -0
  5. package/skills/06_fMRI_Neuroimaging/fmriprep/references/bids-filter.md +287 -0
  6. package/skills/06_fMRI_Neuroimaging/fmriprep/references/citation.md +284 -0
  7. package/skills/06_fMRI_Neuroimaging/fmriprep/references/cli-reference.md +260 -0
  8. package/skills/06_fMRI_Neuroimaging/fmriprep/references/confounds.md +344 -0
  9. package/skills/06_fMRI_Neuroimaging/fmriprep/references/installation.md +346 -0
  10. package/skills/06_fMRI_Neuroimaging/fmriprep/references/outputs.md +369 -0
  11. package/skills/06_fMRI_Neuroimaging/fmriprep/references/sdc-fieldmaps.md +306 -0
  12. package/skills/06_fMRI_Neuroimaging/fmriprep/references/spaces.md +334 -0
  13. package/skills/06_fMRI_Neuroimaging/fmriprep/references/troubleshooting-faq.md +419 -0
  14. package/skills/06_fMRI_Neuroimaging/fmriprep/references/usage-examples.md +465 -0
  15. package/skills/06_fMRI_Neuroimaging/fmriprep/references/versions-dependencies.md +228 -0
  16. package/skills/06_fMRI_Neuroimaging/fmriprep/references/workflows.md +392 -0
  17. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/SKILL.md +212 -0
  18. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/datasets.md +252 -0
  19. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/interface-plotting.md +238 -0
  20. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/metrics.md +236 -0
  21. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/networks.md +273 -0
  22. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/spatial-modularity.md +291 -0
  23. package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/stats.md +290 -0
  24. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/SKILL.md +116 -0
  25. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/references/citation.bib +58 -0
  26. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/analyze_pae.py +212 -0
  27. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/analyze_plddt.py +125 -0
  28. package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/fetch_structure.py +168 -0
  29. package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/SKILL.md +176 -0
  30. package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/references/citation.bib +14 -0
  31. package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/scripts/gtex_cli.py +281 -0
  32. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/SKILL.md +181 -0
  33. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/references/citation.bib +14 -0
  34. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/references/search-api.md +137 -0
  35. package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/scripts/hpa_cli.py +263 -0
  36. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/SKILL.md +169 -0
  37. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/references/citation.bib +15 -0
  38. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/download_coordinate_files.py +113 -0
  39. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/fetch_pdb_metadata.py +70 -0
  40. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/fetch_schema.py +251 -0
  41. package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/search_pdb.py +187 -0
  42. package/skills/09_Cellular_Molecular_Neuroscience/pymol/SKILL.md +146 -0
  43. package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/PYMOL_REFERENCE.md +160 -0
  44. package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/RECIPES.md +348 -0
  45. package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/citation.bib +6 -0
  46. package/skills/17_Literature_Databases/literature-search-arxiv/SKILL.md +120 -0
  47. package/skills/17_Literature_Databases/literature-search-arxiv/references/citation.bib +18 -0
  48. package/skills/17_Literature_Databases/literature-search-arxiv/references/query_syntax.md +34 -0
  49. package/skills/17_Literature_Databases/literature-search-arxiv/scripts/download_paper.py +116 -0
  50. package/skills/17_Literature_Databases/literature-search-arxiv/scripts/download_paper_source.py +98 -0
  51. package/skills/17_Literature_Databases/literature-search-arxiv/scripts/search_arxiv.py +174 -0
  52. package/skills/17_Literature_Databases/literature-search-biorxiv/SKILL.md +169 -0
  53. package/skills/17_Literature_Databases/literature-search-biorxiv/references/citation.bib +12 -0
  54. package/skills/17_Literature_Databases/literature-search-biorxiv/scripts/search_by_dates.py +297 -0
  55. package/skills/17_Literature_Databases/literature-search-biorxiv/scripts/search_by_doi.py +72 -0
  56. package/skills/17_Literature_Databases/literature-search-europepmc/SKILL.md +229 -0
  57. package/skills/17_Literature_Databases/literature-search-europepmc/references/citation.bib +15 -0
  58. package/skills/17_Literature_Databases/literature-search-europepmc/scripts/europepmc_api.py +345 -0
  59. package/skills/17_Literature_Databases/literature-search-openalex/SKILL.md +169 -0
  60. package/skills/17_Literature_Databases/literature-search-openalex/references/authors.md +78 -0
  61. package/skills/17_Literature_Databases/literature-search-openalex/references/citation.bib +8 -0
  62. package/skills/17_Literature_Databases/literature-search-openalex/references/geo_and_language.md +37 -0
  63. package/skills/17_Literature_Databases/literature-search-openalex/references/institutions.md +64 -0
  64. package/skills/17_Literature_Databases/literature-search-openalex/references/publishers_funders.md +42 -0
  65. package/skills/17_Literature_Databases/literature-search-openalex/references/sources.md +79 -0
  66. package/skills/17_Literature_Databases/literature-search-openalex/references/taxonomy.md +52 -0
  67. package/skills/17_Literature_Databases/literature-search-openalex/references/topics.md +29 -0
  68. package/skills/17_Literature_Databases/literature-search-openalex/references/type_values.md +65 -0
  69. package/skills/17_Literature_Databases/literature-search-openalex/references/works.md +304 -0
  70. package/skills/17_Literature_Databases/literature-search-openalex/scripts/openalex_cli.py +633 -0
  71. package/skills/17_Literature_Databases/pubmed-database/SKILL.md +185 -0
  72. package/skills/17_Literature_Databases/pubmed-database/references/advanced-linking.md +128 -0
  73. package/skills/17_Literature_Databases/pubmed-database/references/advanced-search.md +98 -0
  74. package/skills/17_Literature_Databases/pubmed-database/references/bulk-workflows.md +88 -0
  75. package/skills/17_Literature_Databases/pubmed-database/references/citation-matching.md +155 -0
  76. package/skills/17_Literature_Databases/pubmed-database/references/citation.bib +15 -0
  77. package/skills/17_Literature_Databases/pubmed-database/references/cross-database-linking.md +93 -0
  78. package/skills/17_Literature_Databases/pubmed-database/references/fetch-and-resolve.md +125 -0
  79. package/skills/17_Literature_Databases/pubmed-database/references/search-and-discovery.md +106 -0
  80. package/skills/17_Literature_Databases/pubmed-database/references/utilities.md +42 -0
  81. package/skills/17_Literature_Databases/pubmed-database/scripts/pubmed_api.py +715 -0
  82. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/SKILL.md +251 -0
  83. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/pyproject.toml +15 -0
  84. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/references/citation.bib +12 -0
  85. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/analyze_ism.py +334 -0
  86. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/generate_ontology_mapping.py +170 -0
  87. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/interpret_splicing.py +305 -0
  88. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/lookup_gene_info.py +337 -0
  89. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/resolve_ontology_terms.py +155 -0
  90. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/visualize_genome_tracks.py +402 -0
  91. package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/visualize_variant_effects.py +1198 -0
  92. package/skills/18_Genetics_Genomics/clinvar-database/SKILL.md +370 -0
  93. package/skills/18_Genetics_Genomics/clinvar-database/references/citation.bib +23 -0
  94. package/skills/18_Genetics_Genomics/clinvar-database/scripts/clinvar_api.py +711 -0
  95. package/skills/18_Genetics_Genomics/dbsnp-database/SKILL.md +350 -0
  96. package/skills/18_Genetics_Genomics/dbsnp-database/references/api-notes.md +88 -0
  97. package/skills/18_Genetics_Genomics/dbsnp-database/references/citation.bib +12 -0
  98. package/skills/18_Genetics_Genomics/dbsnp-database/scripts/dbsnp_cli.py +625 -0
  99. package/skills/18_Genetics_Genomics/gnomad-database/SKILL.md +73 -0
  100. package/skills/18_Genetics_Genomics/gnomad-database/references/citation.bib +14 -0
  101. package/skills/18_Genetics_Genomics/gnomad-database/scripts/get_gene_constraint.py +90 -0
  102. package/skills/18_Genetics_Genomics/gnomad-database/scripts/get_variant_frequency.py +181 -0
  103. package/skills/18_Genetics_Genomics/gnomad-database/scripts/search_variants.py +207 -0
  104. package/skills/19_Pharmacology/chembl-database/SKILL.md +283 -0
  105. package/skills/19_Pharmacology/chembl-database/references/api_endpoints.md +97 -0
  106. package/skills/19_Pharmacology/chembl-database/references/citation.bib +30 -0
  107. package/skills/19_Pharmacology/chembl-database/scripts/chembl_api.py +657 -0
  108. package/skills/19_Pharmacology/clinical-trials-database/SKILL.md +378 -0
  109. package/skills/19_Pharmacology/clinical-trials-database/references/citation.bib +11 -0
  110. package/skills/19_Pharmacology/clinical-trials-database/references/clinical_trials_api.md +187 -0
  111. package/skills/19_Pharmacology/clinical-trials-database/references/studies_schema.md +143 -0
  112. package/skills/19_Pharmacology/clinical-trials-database/scripts/clinical_trials_api.py +373 -0
  113. package/skills/19_Pharmacology/openfda-database/SKILL.md +225 -0
  114. package/skills/19_Pharmacology/openfda-database/references/api_endpoints.md +207 -0
  115. package/skills/19_Pharmacology/openfda-database/references/citation.bib +15 -0
  116. package/skills/19_Pharmacology/openfda-database/references/recipes.md +150 -0
  117. package/skills/19_Pharmacology/openfda-database/scripts/openfda_query.py +505 -0
  118. package/skills/19_Pharmacology/opentargets-database/SKILL.md +198 -0
  119. package/skills/19_Pharmacology/opentargets-database/references/OpenTargets_GraphQL_Guide.md +216 -0
  120. package/skills/19_Pharmacology/opentargets-database/references/citation.bib +15 -0
  121. package/skills/19_Pharmacology/opentargets-database/scripts/query_opentargets.py +533 -0
  122. package/skills/19_Pharmacology/pubchem-database/SKILL.md +164 -0
  123. package/skills/19_Pharmacology/pubchem-database/references/citation.bib +15 -0
  124. package/skills/19_Pharmacology/pubchem-database/references/endpoints.md +71 -0
  125. package/skills/19_Pharmacology/pubchem-database/references/workflows.md +32 -0
  126. package/skills/19_Pharmacology/pubchem-database/scripts/pubchem_api.py +327 -0
  127. package/skills/20_Infrastructure/uv/SKILL.md +30 -0
  128. package/skills/01_Meta-Skills/academic-research-hub/SKILL.md +0 -108
  129. package/skills/01_Meta-Skills/academic-research-hub/scripts/requirements.txt +0 -17
  130. package/skills/01_Meta-Skills/academic-research-hub/scripts/research.py +0 -781
  131. package/skills/01_Meta-Skills/beautiful-log/SKILL.md +0 -64
  132. package/skills/01_Meta-Skills/beautiful-log/scripts/beautiful_log.py +0 -274
  133. package/skills/01_Meta-Skills/ethoclaw-daily-paper/SKILL.md +0 -130
  134. package/skills/01_Meta-Skills/ethoclaw-daily-paper/assets/config.template.yaml +0 -54
  135. package/skills/01_Meta-Skills/ethoclaw-daily-paper/assets/top5_digest_template.md +0 -5
  136. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/build_top5_digest.py +0 -300
  137. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/common.py +0 -137
  138. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/merge_results.py +0 -106
  139. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/run_pipeline.py +0 -177
  140. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/search_arxiv.py +0 -162
  141. package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/search_pubmed.py +0 -202
  142. package/skills/01_Meta-Skills/ethoclaw-normalize-tabular/SKILL.md +0 -173
  143. package/skills/01_Meta-Skills/ethoclaw-normalize-tabular/scripts/normalize_data.py +0 -874
  144. package/skills/01_Meta-Skills/ethoclaw-pdf-research/SKILL.md +0 -134
  145. package/skills/01_Meta-Skills/ethoclaw-pdf-research/references/confirmation-prompts.md +0 -31
  146. package/skills/01_Meta-Skills/ethoclaw-pdf-research/references/output-patterns.md +0 -45
  147. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_markdown_deliverables.py +0 -41
  148. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_research_log.py +0 -84
  149. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_summary_md.py +0 -63
  150. package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/extract_pdf_bundle.py +0 -140
  151. package/skills/01_Meta-Skills/experiment-controller/SKILL.md +0 -140
  152. package/skills/01_Meta-Skills/knowledge-graph-builder/SKILL.md +0 -366
  153. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/entity_resolution.py +0 -120
  154. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/extraction_prompt_template.txt +0 -19
  155. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/graph_query.py +0 -106
  156. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/hypothesis_cli_reference.py +0 -42
  157. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/new_data_source_template.py +0 -116
  158. package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/requirements.txt +0 -15
  159. package/skills/01_Meta-Skills/method-design/SKILL.md +0 -61
  160. package/skills/01_Meta-Skills/multi-search-engine/SKILL.md +0 -119
  161. package/skills/01_Meta-Skills/research-idea/SKILL.md +0 -65
  162. package/skills/05_EEG_ERP/eeg-skill/SKILL.md +0 -197
  163. package/skills/05_EEG_ERP/meg-skill/SKILL.md +0 -188
  164. package/skills/05_EEG_ERP/meg-skill/scripts/time_frequency.py +0 -223
  165. package/skills/05_EEG_ERP/mne-eeg-tool/SKILL.md +0 -165
  166. package/skills/05_EEG_ERP/mne-eeg-tool/scripts/eeg_pipeline_reference.py +0 -231
  167. package/skills/05_EEG_ERP/seed-iv-skill/SKILL.md +0 -184
  168. package/skills/05_EEG_ERP/seed-iv-skill/scripts/classify_seed_iv.py +0 -154
  169. package/skills/05_EEG_ERP/seed-iv-skill/scripts/extract_seed_iv_features.py +0 -190
  170. package/skills/05_EEG_ERP/seed-iv-skill/scripts/validate_seed_iv.py +0 -102
  171. package/skills/05_EEG_ERP/seed-vig-skill/SKILL.md +0 -182
  172. package/skills/05_EEG_ERP/seed-vig-skill/scripts/classify_seed_vig.py +0 -165
  173. package/skills/05_EEG_ERP/seed-vig-skill/scripts/extract_seed_vig_features.py +0 -185
  174. package/skills/05_EEG_ERP/seed-vig-skill/scripts/validate_seed_vig.py +0 -88
  175. package/skills/06_fMRI_Neuroimaging/abcd-skill/SKILL.md +0 -308
  176. package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/abcd_qc_summary.py +0 -449
  177. package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/extract_abcd_phenotype.py +0 -292
  178. package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/reorganize_abcd.py +0 -387
  179. package/skills/06_fMRI_Neuroimaging/abide-skill/SKILL.md +0 -302
  180. package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/abide_qc_summary.py +0 -317
  181. package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/extract_abide_phenotype.py +0 -267
  182. package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/reorganize_abide.py +0 -387
  183. package/skills/06_fMRI_Neuroimaging/adhd200-skill/SKILL.md +0 -244
  184. package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/adhd200_qc_summary.py +0 -98
  185. package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/extract_adhd200_phenotype.py +0 -134
  186. package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/reorganize_adhd200.py +0 -206
  187. package/skills/06_fMRI_Neuroimaging/adni-skill/SKILL.md +0 -358
  188. package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/generate_adni_task_files.py +0 -1305
  189. package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/generate_vqa_from_tasks.py +0 -766
  190. package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/reorganize_adni.py +0 -491
  191. package/skills/06_fMRI_Neuroimaging/aibl-skill/SKILL.md +0 -295
  192. package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/aibl_qc_summary.py +0 -260
  193. package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/extract_aibl_phenotype.py +0 -365
  194. package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/reorganize_aibl.py +0 -394
  195. package/skills/06_fMRI_Neuroimaging/aomic-skill/SKILL.md +0 -292
  196. package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/aomic_qc_summary.py +0 -258
  197. package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/extract_aomic_phenotype.py +0 -284
  198. package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/reorganize_aomic.py +0 -322
  199. package/skills/06_fMRI_Neuroimaging/asl-skill/SKILL.md +0 -168
  200. package/skills/06_fMRI_Neuroimaging/asl-skill/scripts/compute_cbf.py +0 -224
  201. package/skills/06_fMRI_Neuroimaging/bids-organizer/SKILL.md +0 -241
  202. package/skills/06_fMRI_Neuroimaging/bold5000-skill/SKILL.md +0 -186
  203. package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/bold5000_qc_summary.py +0 -96
  204. package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/extract_bold5000_stimulus.py +0 -125
  205. package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/reorganize_bold5000.py +0 -102
  206. package/skills/06_fMRI_Neuroimaging/camcan-skill/SKILL.md +0 -213
  207. package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/camcan_qc_summary.py +0 -131
  208. package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/extract_camcan_phenotype.py +0 -145
  209. package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/validate_camcan.py +0 -141
  210. package/skills/06_fMRI_Neuroimaging/cobre-skill/SKILL.md +0 -201
  211. package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/cobre_qc_summary.py +0 -95
  212. package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/extract_cobre_phenotype.py +0 -104
  213. package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/reorganize_cobre.py +0 -140
  214. package/skills/06_fMRI_Neuroimaging/conn-tool/SKILL.md +0 -180
  215. package/skills/06_fMRI_Neuroimaging/dcm2nii/SKILL.md +0 -189
  216. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/SKILL.md +0 -183
  217. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/dmt_har_med_qc_summary.py +0 -96
  218. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/extract_dmt_har_med_phenotype.py +0 -121
  219. package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/reorganize_dmt_har_med.py +0 -125
  220. package/skills/06_fMRI_Neuroimaging/dwi-skill/SKILL.md +0 -359
  221. package/skills/06_fMRI_Neuroimaging/fmri-skill/SKILL.md +0 -371
  222. package/skills/06_fMRI_Neuroimaging/fmriprep-tool/SKILL.md +0 -228
  223. package/skills/06_fMRI_Neuroimaging/freesurfer-tool/SKILL.md +0 -286
  224. package/skills/06_fMRI_Neuroimaging/freesurfer-tool/scripts/freesurfer_processor.py +0 -145
  225. package/skills/06_fMRI_Neuroimaging/fsl-tool/SKILL.md +0 -208
  226. package/skills/06_fMRI_Neuroimaging/hbn-skill/SKILL.md +0 -271
  227. package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/extract_hbn_phenotype.py +0 -107
  228. package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/hbn_qc_summary.py +0 -96
  229. package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/reorganize_hbn.py +0 -150
  230. package/skills/06_fMRI_Neuroimaging/hcpa-skill/SKILL.md +0 -210
  231. package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/extract_hcpa_phenotype.py +0 -146
  232. package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/hcpa_qc_summary.py +0 -120
  233. package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/reorganize_hcpa.py +0 -155
  234. package/skills/06_fMRI_Neuroimaging/hcpd-skill/SKILL.md +0 -210
  235. package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/extract_hcpd_phenotype.py +0 -148
  236. package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/hcpd_qc_summary.py +0 -125
  237. package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/reorganize_hcpd.py +0 -146
  238. package/skills/06_fMRI_Neuroimaging/hcpep-skill/SKILL.md +0 -215
  239. package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/extract_hcpep_phenotype.py +0 -157
  240. package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/hcpep_qc_summary.py +0 -143
  241. package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/reorganize_hcpep.py +0 -146
  242. package/skills/06_fMRI_Neuroimaging/hcppipeline-tool/SKILL.md +0 -217
  243. package/skills/06_fMRI_Neuroimaging/hcpya-skill/SKILL.md +0 -214
  244. package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/extract_hcpya_phenotype.py +0 -190
  245. package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/hcpya_qc_summary.py +0 -152
  246. package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/reorganize_hcpya.py +0 -203
  247. package/skills/06_fMRI_Neuroimaging/ixi-skill/SKILL.md +0 -198
  248. package/skills/06_fMRI_Neuroimaging/ixi-skill/scripts/ixi_qc_summary.py +0 -137
  249. package/skills/06_fMRI_Neuroimaging/ixi-skill/scripts/reorganize_ixi.py +0 -190
  250. package/skills/06_fMRI_Neuroimaging/mnd-skill/SKILL.md +0 -191
  251. package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/extract_mnd_phenotype.py +0 -143
  252. package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/mnd_qc_summary.py +0 -120
  253. package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/validate_mnd.py +0 -107
  254. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/SKILL.md +0 -203
  255. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/analyze_lesions.py +0 -119
  256. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/longitudinal_lesion.py +0 -148
  257. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/mschallenge_qc_summary.py +0 -132
  258. package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/validate_mschallenge.py +0 -116
  259. package/skills/06_fMRI_Neuroimaging/nibabel-skill/SKILL.md +0 -184
  260. package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/atlas_coordinate_reference.py +0 -61
  261. package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/freesurfer_io_reference.py +0 -34
  262. package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/nifti_inspection_reference.py +0 -35
  263. package/skills/06_fMRI_Neuroimaging/nifd-skill/SKILL.md +0 -205
  264. package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/extract_nifd_phenotype.py +0 -132
  265. package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/nifd_qc_summary.py +0 -111
  266. package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/validate_nifd.py +0 -111
  267. package/skills/06_fMRI_Neuroimaging/nii2dcm/SKILL.md +0 -143
  268. package/skills/06_fMRI_Neuroimaging/nilearn-tool/SKILL.md +0 -266
  269. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/connectome_reference.py +0 -65
  270. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/denoise_timeseries_reference.py +0 -58
  271. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/hierarchical_parcellation_reference.py +0 -53
  272. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/kmeans_parcellation_reference.py +0 -53
  273. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/preprocess_bold_reference.py +0 -76
  274. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/rest_dictlearning_reference.py +0 -56
  275. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/rest_ica_reference.py +0 -59
  276. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/second_level_glm_reference.py +0 -58
  277. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/spacenet_classifier_reference.py +0 -59
  278. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/svm_classifier_reference.py +0 -60
  279. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/task_glm_reference.py +0 -63
  280. package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/zalff_summary_reference.py +0 -109
  281. package/skills/06_fMRI_Neuroimaging/nsd-skill/SKILL.md +0 -210
  282. package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/extract_nsd_stimulus.py +0 -171
  283. package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/nsd_qc_summary.py +0 -142
  284. package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/validate_nsd.py +0 -142
  285. package/skills/06_fMRI_Neuroimaging/oasis-skill/SKILL.md +0 -205
  286. package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/extract_oasis_phenotype.py +0 -126
  287. package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/oasis_qc_summary.py +0 -115
  288. package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/validate_oasis.py +0 -119
  289. package/skills/06_fMRI_Neuroimaging/pet-skill/SKILL.md +0 -173
  290. package/skills/06_fMRI_Neuroimaging/pet-skill/scripts/compute_suvr.py +0 -202
  291. package/skills/06_fMRI_Neuroimaging/pnc-skill/SKILL.md +0 -206
  292. package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/extract_pnc_phenotype.py +0 -136
  293. package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/pnc_qc_summary.py +0 -116
  294. package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/validate_pnc.py +0 -120
  295. package/skills/06_fMRI_Neuroimaging/ppmi-skill/SKILL.md +0 -209
  296. package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/extract_ppmi_phenotype.py +0 -138
  297. package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/ppmi_qc_summary.py +0 -111
  298. package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/validate_ppmi.py +0 -117
  299. package/skills/06_fMRI_Neuroimaging/qsiprep-tool/SKILL.md +0 -320
  300. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/SKILL.md +0 -215
  301. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/extract_rest_mdd_phenotype.py +0 -132
  302. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/harmonize_sites.py +0 -152
  303. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/rest_mdd_qc_summary.py +0 -124
  304. package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/validate_rest_mdd.py +0 -103
  305. package/skills/06_fMRI_Neuroimaging/smri-skill/SKILL.md +0 -302
  306. package/skills/06_fMRI_Neuroimaging/tcp-skill/SKILL.md +0 -204
  307. package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/extract_tcp_phenotype.py +0 -139
  308. package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/tcp_qc_summary.py +0 -111
  309. package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/validate_tcp.py +0 -99
  310. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/SKILL.md +0 -217
  311. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/extract_ucla_cnp_phenotype.py +0 -145
  312. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/ucla_cnp_qc_summary.py +0 -111
  313. package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/validate_ucla_cnp.py +0 -113
  314. package/skills/06_fMRI_Neuroimaging/ukb-skill/SKILL.md +0 -310
  315. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/build_ukb_survival.py +0 -210
  316. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/extract_ukb_cases.py +0 -308
  317. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/extract_ukb_phenotype.py +0 -232
  318. package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/ukb_qc_summary.py +0 -158
  319. package/skills/06_fMRI_Neuroimaging/wmh-segmentation/SKILL.md +0 -133
  320. package/skills/07_Computational_Modeling/detrending/SKILL.md +0 -118
  321. package/skills/07_Computational_Modeling/dictlearning/SKILL.md +0 -122
  322. package/skills/07_Computational_Modeling/filtering/SKILL.md +0 -121
  323. package/skills/07_Computational_Modeling/glm/SKILL.md +0 -153
  324. package/skills/07_Computational_Modeling/hierarchical/SKILL.md +0 -121
  325. package/skills/07_Computational_Modeling/ica/SKILL.md +0 -122
  326. package/skills/07_Computational_Modeling/kmeans/SKILL.md +0 -119
  327. package/skills/07_Computational_Modeling/run_models/SKILL.md +0 -427
  328. package/skills/07_Computational_Modeling/spacenet/SKILL.md +0 -122
  329. package/skills/07_Computational_Modeling/svm/SKILL.md +0 -120
  330. package/skills/08_Computational_Neuroscience/brain_gnn/SKILL.md +0 -183
  331. package/skills/08_Computational_Neuroscience/dipy-tool/SKILL.md +0 -239
  332. package/skills/08_Computational_Neuroscience/dipy-tool/scripts/dti_metrics_reference.py +0 -70
  333. package/skills/08_Computational_Neuroscience/dipy-tool/scripts/load_and_mask_reference.py +0 -76
  334. package/skills/08_Computational_Neuroscience/dipy-tool/scripts/roi_stats_reference.py +0 -59
  335. package/skills/08_Computational_Neuroscience/fm_app/SKILL.md +0 -195
  336. package/skills/08_Computational_Neuroscience/neurostorm/SKILL.md +0 -151
  337. package/skills/13_Visualization/brain-visualization/SKILL.md +0 -191
  338. package/skills/13_Visualization/brain-visualization/scripts/connectome_reference.py +0 -108
  339. package/skills/13_Visualization/brain-visualization/scripts/freesurfer_ply_reference.py +0 -54
  340. package/skills/13_Visualization/brain-visualization/scripts/zalff_summary_reference.py +0 -116
  341. package/skills/13_Visualization/ethoclaw-paper-figure-layout/SKILL.md +0 -78
  342. package/skills/13_Visualization/ethoclaw-paper-figure-layout/assets/naturecomm_figures.tex +0 -74
  343. package/skills/13_Visualization/ethoclaw-paper-figure-layout/scripts/layout_results_foldered.py +0 -579
  344. package/skills/14_Writing/overleaf-skill/SKILL.md +0 -184
  345. package/skills/14_Writing/overleaf-skill/scripts/install.sh +0 -30
  346. package/skills/14_Writing/paper-writing/SKILL.md +0 -146
  347. package/skills/14_Writing/paper-writing/scripts/data_statement_templates.py +0 -164
  348. package/skills/14_Writing/paper-writing/scripts/figure_templates.py +0 -315
  349. package/skills/14_Writing/paper-writing/scripts/nature_figure_style.py +0 -214
  350. package/skills/14_Writing/paper-writing/scripts/section_phrasebank.py +0 -246
  351. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/SKILL.md +0 -274
  352. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/report_template_en.html +0 -112
  353. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/report_template_en.md +0 -21
  354. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/cluster-section.md +0 -5
  355. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/heatmap-section.md +0 -5
  356. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/integrated-interpretation.md +0 -3
  357. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/overview.md +0 -3
  358. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/project-summary.md +0 -3
  359. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/radar-section.md +0 -5
  360. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/raw-trajectory.md +0 -3
  361. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/sample-check.md +0 -3
  362. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/single-subject-section.md +0 -3
  363. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/stats-section.md +0 -5
  364. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/epm.md +0 -52
  365. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/fst.md +0 -37
  366. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/nor.md +0 -39
  367. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/oft.md +0 -43
  368. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/tcst.md +0 -45
  369. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/tst.md +0 -36
  370. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/input-types.md +0 -59
  371. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/interpretation-guardrails.md +0 -45
  372. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/metadata-schema.md +0 -57
  373. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/report-sections.md +0 -86
  374. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/section-selection-rules.md +0 -169
  375. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/build_report_manifest.py +0 -27
  376. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/render_report.py +0 -34
  377. package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/report_utils.py +0 -1121
  378. package/skills/16_Animal_Behavior/ethoclaw-animal-grounding/SKILL.md +0 -390
  379. package/skills/16_Animal_Behavior/ethoclaw-animal-grounding/reference_code.py +0 -98
  380. package/skills/16_Animal_Behavior/ethoclaw-animal-pose-estimation/SKILL.md +0 -336
  381. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/README.md +0 -21
  382. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/SKILL.md +0 -41
  383. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/batch_kinematic_generator.py +0 -663
  384. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/config.json +0 -19
  385. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/generate_kinematic_parameter.py +0 -401
  386. package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/kinematic_generator.py +0 -265
  387. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/SKILL.md +0 -72
  388. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/references/config.example.toml +0 -56
  389. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/scripts/cluster_all_params.py +0 -232
  390. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/scripts/cluster_all_params_from_config.py +0 -236
  391. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/SKILL.md +0 -68
  392. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/references/notes.md +0 -5
  393. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/scripts/plot_h5_radar.py +0 -513
  394. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/SKILL.md +0 -52
  395. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/config.toml +0 -81
  396. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/references/stats-rule.md +0 -18
  397. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_inspect.py +0 -79
  398. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_violin_batch.py +0 -624
  399. package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_violin_stats.py +0 -438
  400. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/SKILL.md +0 -280
  401. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/core_scripts/heatmap_trajectory.py +0 -790
  402. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/core_scripts/heatmap_velocity.py +0 -855
  403. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_2d.csv +0 -101
  404. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_2d.h5 +0 -0
  405. package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_data_readme.md +0 -126
@@ -0,0 +1,344 @@
1
+ # Confounds Reference
2
+
3
+ fMRIPrep does not smooth or denoise BOLD data. Instead it emits a **rich table
4
+ of nuisance regressors** per run — your downstream tool (Nilearn, FitLins, FSL
5
+ FEAT, SPM) is responsible for including them in a design matrix or regressing
6
+ them out.
7
+
8
+ File: `sub-<label>_[specifiers]_desc-confounds_timeseries.tsv` (+ `.json`).
9
+
10
+ Row = one BOLD timepoint (kept for every volume in the raw series; leading
11
+ non-steady-state rows typically have `n/a` in framewise-derivative columns).
12
+
13
+ ⚠️ **Never dump every column into a design matrix**. Pick a strategy and
14
+ include only its subset. See [strategy recipes](#recommended-denoising-strategies) at the bottom.
15
+
16
+ ## Table of Contents
17
+ 1. [Column reference](#column-reference)
18
+ 2. [aCompCor and tCompCor](#acompcor-and-tcompcor)
19
+ 3. [DCT cosine regressors](#dct-cosine-regressors)
20
+ 4. [Spike/outlier regressors](#spikeoutlier-regressors)
21
+ 5. [Crown / brain-edge PCA](#crown--brain-edge-pca)
22
+ 6. [JSON metadata schema](#json-metadata-schema)
23
+ 7. [Recommended denoising strategies](#recommended-denoising-strategies)
24
+ 8. [Programmatic loading](#programmatic-loading)
25
+ 9. [Interpreting the report's carpetplot](#interpreting-the-reports-carpetplot)
26
+
27
+ ---
28
+
29
+ ## Column reference
30
+
31
+ ### Motion parameters (6 base + expansions → up to 24)
32
+
33
+ | Column | Meaning |
34
+ |--------|---------|
35
+ | `trans_x`, `trans_y`, `trans_z` | Rigid-body translations (mm) w.r.t. reference volume |
36
+ | `rot_x`, `rot_y`, `rot_z` | Rigid-body rotations (radians) |
37
+ | `trans_{x,y,z}_derivative1` | 1st temporal derivative of each translation |
38
+ | `rot_{x,y,z}_derivative1` | 1st temporal derivative of each rotation |
39
+ | `trans_{x,y,z}_power2` | Quadratic term of each translation |
40
+ | `rot_{x,y,z}_power2` | Quadratic term of each rotation |
41
+ | `trans_{x,y,z}_derivative1_power2` | Squared derivative |
42
+ | `rot_{x,y,z}_derivative1_power2` | Squared derivative |
43
+
44
+ Choose 6 = base, 12 = base + derivatives (Friston), 24 = base + derivatives +
45
+ squares (Satterthwaite).
46
+
47
+ ### Global signals
48
+
49
+ | Column | Meaning |
50
+ |--------|---------|
51
+ | `csf` | Mean signal in eroded CSF mask (anatomical) |
52
+ | `white_matter` | Mean signal in eroded WM mask (anatomical) |
53
+ | `global_signal` | Mean signal in brain mask |
54
+ | `csf_derivative1`, `csf_power2`, `csf_derivative1_power2` | expansions |
55
+ | `white_matter_derivative1`, `white_matter_power2`, `white_matter_derivative1_power2` | expansions |
56
+ | `global_signal_derivative1`, `global_signal_power2`, `global_signal_derivative1_power2` | expansions |
57
+
58
+ Combined with the 24 motion params → **36-parameter Satterthwaite** strategy.
59
+
60
+ ### Motion metrics
61
+
62
+ | Column | Meaning | Notes |
63
+ |--------|---------|-------|
64
+ | `framewise_displacement` | FD (mm) per Power 2012 | `n/a` for first volume |
65
+ | `rmsd` | Relative frame-to-frame head motion (Jenkinson 2002) | |
66
+ | `dvars` | Derivative of RMS voxel variance (Power 2012) | `n/a` for first volume |
67
+ | `std_dvars` | Standardized DVARS | For thresholding |
68
+
69
+ ### Non-steady-state outliers
70
+
71
+ `non_steady_state_outlier00`, `non_steady_state_outlier01`, ... — one column
72
+ per detected dummy volume, with `1` at that timepoint and `0` elsewhere.
73
+ Detected automatically or set by `--dummy-scans N`.
74
+
75
+ ### Motion spike regressors
76
+
77
+ `motion_outlier00`, `motion_outlier01`, ... — one column per timepoint flagged
78
+ by (FD > `--fd-spike-threshold`) OR (std_dvars > `--dvars-spike-threshold`).
79
+ Defaults: FD > 0.5 mm, std_dvars > 1.5.
80
+
81
+ These are **one-hot** regressors — including them censors those volumes when
82
+ regressed. Alternatively use them to build a scrub mask and drop volumes.
83
+
84
+ ---
85
+
86
+ ## aCompCor and tCompCor
87
+
88
+ **aCompCor** (anatomical, Behzadi 2007 / Muschelli 2014): PCA of BOLD signals
89
+ inside three noise ROIs derived from tissue segmentation. Each ROI's
90
+ components are written to a **distinct column prefix** — no need to consult
91
+ the JSON `Mask` field to disambiguate:
92
+
93
+ | ROI | Column prefix | JSON `Mask` |
94
+ |-----|---------------|-------------|
95
+ | Combined WM ∪ CSF (Behzadi original) | `a_comp_cor_00`, `a_comp_cor_01`, ... | `combined` |
96
+ | CSF alone (Muschelli) | `c_comp_cor_00`, `c_comp_cor_01`, ... | `CSF` |
97
+ | WM alone (Muschelli) | `w_comp_cor_00`, `w_comp_cor_01`, ... | `WM` |
98
+
99
+ All three sets carry `Method: aCompCor` in the JSON. Retained-vs-dropped
100
+ status, singular value, and cumulative variance explained are in the JSON
101
+ sidecar per component.
102
+
103
+ **tCompCor** (temporal, Behzadi 2007): PCA on top-variance voxels
104
+ (temporally). Columns: `t_comp_cor_00`, `t_comp_cor_01`, ...
105
+ JSON `Method: tCompCor`.
106
+
107
+ **Retention policy**: by default fMRIPrep keeps components that cumulatively
108
+ explain the top 50% variance of each ROI's decomposition. Dropped components
109
+ are kept in the JSON with the `dropped_XX` prefix. Use `--return-all-components`
110
+ to include every component in the TSV.
111
+
112
+ **Selection tips**:
113
+ - The three anatomical CompCor variants are now distinguishable by column
114
+ prefix (`a_`, `c_`, `w_`) — no need to filter the JSON `Mask` field to
115
+ separate combined / CSF-only / WM-only families.
116
+ - Common choices: first 5–6 components; first N to explain 50% / 70% / 90%
117
+ cumulative variance; number chosen by elbow / broken stick.
118
+ - Behzadi original: use `a_comp_cor_*` (combined-mask components).
119
+ - Muschelli refinement: use `w_comp_cor_*` and `c_comp_cor_*` separately.
120
+ - Do **not** combine WM/CSF CompCor with the plain `white_matter` / `csf`
121
+ global signal (redundant / collinear).
122
+ - Combining `global_signal` **with** CompCor is beneficial (Parkes 2018).
123
+
124
+ ### High-pass filtering caveat
125
+
126
+ fMRIPrep applies a temporal high-pass filter *before* CompCor decomposition.
127
+ When you use CompCor regressors, you MUST include the corresponding
128
+ `cosine_XX` regressors in the same design matrix — otherwise you'll re-alias
129
+ low-frequency drift back into your model.
130
+
131
+ ---
132
+
133
+ ## DCT cosine regressors
134
+
135
+ `cosine_00`, `cosine_01`, ..., `cosine_NN` — DCT basis functions modeling
136
+ low-frequency drift.
137
+
138
+ - Number of regressors depends on effective series length (excluding detected
139
+ non-steady-state volumes) and TR.
140
+ - Cutoff is set internally to match the CompCor high-pass.
141
+ - Two datasets with the same TR and effective length produce identical cosine
142
+ regressors.
143
+ - **Do not combine with your own high-pass filter.**
144
+
145
+ ---
146
+
147
+ ## Spike/outlier regressors
148
+
149
+ Categories (each is a set of one-hot columns):
150
+
151
+ | Prefix | Trigger | Threshold flag |
152
+ |--------|---------|----------------|
153
+ | `non_steady_state_outlier` | Detected T1-saturation / dummy scans | `--dummy-scans` |
154
+ | `motion_outlier` | Frame with FD > threshold OR std_dvars > threshold | `--fd-spike-threshold`, `--dvars-spike-threshold` |
155
+
156
+ Common practice:
157
+ - **Regress-out**: include as regressors → those timepoints are effectively censored.
158
+ - **Scrub**: use as a mask to drop volumes prior to GLM (rebuilds series length).
159
+ - **Report**: track the fraction of flagged volumes per subject — a common
160
+ quality-control exclusion criterion (e.g. exclude subject if >20%).
161
+
162
+ ---
163
+
164
+ ## Crown / brain-edge PCA
165
+
166
+ 24 PCA components extracted from voxels on the outer brain edge ("crown"):
167
+ signal here is dominated by motion / physiological artifacts, not neural
168
+ activity. Introduced in Patriat 2017 and formalized for fMRIPrep in
169
+ Provins 2022.
170
+
171
+ Columns: `edge_comp_00`, `edge_comp_01`, ..., `edge_comp_23` (24 components).
172
+ JSON `Method: EdgeRegressor` (not `aCompCor` or `tCompCor`, though the
173
+ implementation reuses aCompCor plumbing on the "crown" mask). Useful as an
174
+ aggressive nuisance model when a lot of motion is expected.
175
+
176
+ ---
177
+
178
+ ## JSON metadata schema
179
+
180
+ Each TSV has a paired JSON. Example entry for one component:
181
+
182
+ ```json
183
+ {
184
+ "a_comp_cor_00": {
185
+ "CumulativeVarianceExplained": 0.1082,
186
+ "Mask": "combined",
187
+ "Method": "aCompCor",
188
+ "Retained": true,
189
+ "SingularValue": 25.827,
190
+ "VarianceExplained": 0.1082
191
+ },
192
+ "dropped_0": {
193
+ "CumulativeVarianceExplained": 0.5966,
194
+ "Mask": "combined",
195
+ "Method": "aCompCor",
196
+ "Retained": false,
197
+ "SingularValue": 20.796,
198
+ "VarianceExplained": 0.0701
199
+ }
200
+ }
201
+ ```
202
+
203
+ Fields:
204
+ - `Method` — `aCompCor` or `tCompCor`.
205
+ - `Mask` — for aCompCor: `CSF`, `WM`, `combined`.
206
+ - `SingularValue` — component's singular value.
207
+ - `VarianceExplained` — this component's share of ROI variance.
208
+ - `CumulativeVarianceExplained` — running total up through this component.
209
+ - `Retained` — whether saved in the TSV (`true`) or listed only in JSON (`false`, i.e. `dropped_XX`).
210
+
211
+ ---
212
+
213
+ ## Recommended denoising strategies
214
+
215
+ Pick ONE (or a small orthogonal set) — don't mix redundant families.
216
+
217
+ ### Minimal (6-parameter)
218
+
219
+ ```
220
+ trans_x, trans_y, trans_z, rot_x, rot_y, rot_z
221
+ + framewise_displacement (optional group-level covariate)
222
+ ```
223
+
224
+ Simplest; only motion. Poor for high-motion cohorts.
225
+
226
+ ### 24-parameter Friston-24 (aka Volterra)
227
+
228
+ ```
229
+ Base 6 + 6 derivatives + 6 squares + 6 squared derivatives
230
+ ```
231
+
232
+ Column pattern: `(trans|rot)_[xyz](_derivative1)?(_power2)?`
233
+
234
+ ### 36-parameter Satterthwaite (aka aCompCor+GSR expansion)
235
+
236
+ 24-parameter motion + 12 tissue signals (csf, white_matter, global_signal,
237
+ each with derivative + squares).
238
+
239
+ ### aCompCor (Behzadi original)
240
+
241
+ ```
242
+ 6 motion + first N aCompCor components with Mask=="combined" + cosine_XX
243
+ ```
244
+
245
+ ### aCompCor (Muschelli refinement)
246
+
247
+ ```
248
+ 6 motion + first N w_comp_cor_* (WM mask) + first N c_comp_cor_* (CSF mask) + cosine_XX
249
+ ```
250
+
251
+ (No need to filter by JSON `Mask` — the column prefixes already partition
252
+ combined/WM/CSF.)
253
+
254
+ ### Scrubbing / censoring
255
+
256
+ Use `motion_outlier_XX` as a design regressor OR drop those volumes entirely
257
+ (rebuild series). Common threshold: FD>0.5 mm (default) or stricter (0.2 mm)
258
+ for resting-state connectivity.
259
+
260
+ ### AROMA (via post-processor)
261
+
262
+ fMRIPrep 21+ dropped built-in AROMA. Use the community-maintained
263
+ `fmripost-aroma` BIDS-App downstream — it consumes fMRIPrep outputs.
264
+
265
+ ---
266
+
267
+ ## Programmatic loading
268
+
269
+ Python (Nilearn / pandas):
270
+
271
+ ```python
272
+ from pathlib import Path
273
+ import pandas as pd
274
+ import json
275
+
276
+ conf = Path("derivatives/sub-01/func/"
277
+ "sub-01_task-rest_desc-confounds_timeseries.tsv")
278
+
279
+ df = pd.read_csv(conf, sep="\t")
280
+
281
+ # Metadata (used to pick components by variance / retention if desired)
282
+ with open(conf.with_suffix(".json")) as f:
283
+ meta = json.load(f)
284
+
285
+ # Extract aCompCor combined-mask, top 6 — columns are prefixed a_/c_/w_ to
286
+ # denote combined/CSF/WM masks respectively, so filtering by prefix suffices.
287
+ combined_cols = [c for c in df.columns if c.startswith("a_comp_cor_")][:6]
288
+
289
+ # Motion basic 6
290
+ motion6 = ["trans_x", "trans_y", "trans_z", "rot_x", "rot_y", "rot_z"]
291
+
292
+ # High-pass cosines
293
+ cosines = [c for c in df.columns if c.startswith("cosine")]
294
+
295
+ # Motion outliers
296
+ outliers = [c for c in df.columns if c.startswith("motion_outlier")]
297
+
298
+ design = df[motion6 + combined_cols + cosines + outliers].fillna(0.0)
299
+ ```
300
+
301
+ Nilearn convenience:
302
+
303
+ ```python
304
+ from nilearn.interfaces.fmriprep import load_confounds
305
+
306
+ confounds, sample_mask = load_confounds(
307
+ "sub-01_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz",
308
+ strategy=["motion", "high_pass", "wm_csf", "scrub"],
309
+ motion="basic",
310
+ wm_csf="basic",
311
+ scrub=5,
312
+ fd_threshold=0.5,
313
+ std_dvars_threshold=1.5,
314
+ )
315
+ ```
316
+
317
+ `load_confounds` supports `strategy=[...]` values: `motion`, `high_pass`,
318
+ `wm_csf`, `global_signal`, `compcor`, `ica_aroma`, `scrub`, `non_steady_state`.
319
+
320
+ ---
321
+
322
+ ## Interpreting the report's carpetplot
323
+
324
+ The visual report's per-run carpetplot (Power 2016; Provins 2022 extension)
325
+ plots BOLD time × voxels as a heatmap, with above-the-carpet:
326
+ - `GS`, `CSF`, `WM` — global / tissue signals
327
+ - `FD` — framewise displacement
328
+ - `DVARS` — derivative of variance
329
+
330
+ Rows are grouped: cortical GM, deep GM, WM, CSF, cerebellum, edge/crown.
331
+
332
+ Diagnostic patterns:
333
+ - **Vertical bright/dark stripes** — motion or physiological events;
334
+ correlates with FD/DVARS spikes.
335
+ - **Slow drift** — scanner drift; ensure cosine regressors or high-pass.
336
+ - **Correlated stripes across all rows** — global signal contamination;
337
+ consider including `global_signal` regressor.
338
+ - **Row-specific bright bands** — issue localized to that tissue class (e.g.,
339
+ vascular near-edge).
340
+
341
+ The report also shows:
342
+ - **CompCor cumulative-variance curves** — helps choose N components.
343
+ - **Confound correlation heatmap** — spot collinearity in your chosen model.
344
+ - **Confound-vs-global-signal bar plot** — flag partial-volume effects.
@@ -0,0 +1,346 @@
1
+ # Installation Reference
2
+
3
+ ## Table of Contents
4
+ 1. [Container installations (recommended)](#container-installations-recommended)
5
+ - 1.1 [Docker](#11-docker)
6
+ - 1.2 [`fmriprep-docker` wrapper](#12-fmriprep-docker-wrapper)
7
+ - 1.3 [Apptainer / Singularity](#13-apptainer--singularity)
8
+ 2. [Bare-metal (pip) installation](#bare-metal-pip-installation)
9
+ 3. [External binary dependencies (bare-metal only)](#external-binary-dependencies-bare-metal-only)
10
+ 4. [FreeSurfer license](#freesurfer-license)
11
+ 5. [TemplateFlow setup](#templateflow-setup)
12
+ 6. [Environment variables](#environment-variables)
13
+ 7. [Verifying the installation](#verifying-the-installation)
14
+
15
+ ---
16
+
17
+ ## Container installations (recommended)
18
+
19
+ fMRIPrep is a **BIDS-App**. Containers are the officially supported deployment
20
+ path — they package every neuroimaging binary (FreeSurfer, FSL, ANTs, AFNI,
21
+ Connectome-Workbench, MSM) at exact tested versions, avoiding the pain of a
22
+ manual environment.
23
+
24
+ ### 1.1 Docker
25
+
26
+ Pull an official image from Docker Hub:
27
+
28
+ ```bash
29
+ docker pull nipreps/fmriprep:25.2.5 # replace with the desired version
30
+ docker pull nipreps/fmriprep:latest # bleeding edge (not recommended for research)
31
+ ```
32
+
33
+ Image sizes are ~10 GB compressed / ~25 GB extracted.
34
+
35
+ Minimal bare-Docker invocation:
36
+
37
+ ```bash
38
+ docker run --rm -it \
39
+ -v /path/to/bids:/data:ro \
40
+ -v /path/to/derivatives:/out \
41
+ -v /path/to/work:/scratch \
42
+ -v /path/to/freesurfer/license.txt:/opt/freesurfer/license.txt:ro \
43
+ nipreps/fmriprep:25.2.5 \
44
+ /data /out participant \
45
+ -w /scratch
46
+ ```
47
+
48
+ Docker Hub tags: https://hub.docker.com/r/nipreps/fmriprep/tags/
49
+
50
+ ### 1.2 `fmriprep-docker` wrapper
51
+
52
+ A Python wrapper that constructs the `docker run` command for you. It shares
53
+ the CLI of `fmriprep` (paths are automatically bind-mounted).
54
+
55
+ Install:
56
+
57
+ ```bash
58
+ python -m pip install --user fmriprep-docker
59
+ ```
60
+
61
+ Use exactly like `fmriprep`:
62
+
63
+ ```bash
64
+ fmriprep-docker /path/to/bids /path/to/derivatives participant \
65
+ --fs-license-file $HOME/.licenses/freesurfer/license.txt \
66
+ --output-spaces MNI152NLin2009cAsym:res-2 fsaverage \
67
+ -w /path/to/work
68
+ ```
69
+
70
+ Wrapper-specific options (translate to `docker run` flags):
71
+
72
+ | Wrapper flag | Purpose |
73
+ |--------------|---------|
74
+ | `-i / --image IMG` | Pick a specific image (default: `nipreps/fmriprep:<wrapper_version>`) |
75
+ | `-e / --env VAR val` | Inject an env var (repeatable) |
76
+ | `-u / --user UID[:GID]` | Run container as another user |
77
+ | `--network none` | Simulate offline mode |
78
+ | `--shell` | Drop into a bash shell inside the container |
79
+ | `--patch PACKAGE=PATH` | Bind-mount a dev checkout over the installed package |
80
+ | `--no-tty` | Omit `-it` (useful for CI / batch) |
81
+ | `--config PATH` | Custom `nipype.cfg` |
82
+
83
+ The wrapper auto-detects `$FS_LICENSE` and bind-mounts it. It also warns if
84
+ Docker has <8 GB of RAM available.
85
+
86
+ The wrapper source lives at `wrapper/src/fmriprep_docker/__main__.py`; expected
87
+ Docker image path convention: `/app/.pixi/envs/fmriprep/lib/python3.12/site-packages`.
88
+
89
+ ### 1.3 Apptainer / Singularity
90
+
91
+ Build an image from Docker Hub (typical HPC workflow):
92
+
93
+ ```bash
94
+ # On a machine with internet + apptainer/singularity
95
+ apptainer build fmriprep-25.2.5.sif docker://nipreps/fmriprep:25.2.5
96
+ ```
97
+
98
+ Run:
99
+
100
+ ```bash
101
+ apptainer run --cleanenv \
102
+ -B /path/to/bids:/data:ro \
103
+ -B /path/to/derivatives:/out \
104
+ -B /path/to/work:/work \
105
+ -B $FS_LICENSE:/opt/freesurfer/license.txt:ro \
106
+ -B $HOME/.cache/templateflow:/opt/templateflow \
107
+ --env TEMPLATEFLOW_HOME=/opt/templateflow \
108
+ fmriprep-25.2.5.sif \
109
+ /data /out participant \
110
+ --fs-license-file /opt/freesurfer/license.txt \
111
+ -w /work --nthreads 8 --omp-nthreads 4 --mem 16000
112
+ ```
113
+
114
+ Notes:
115
+ - `--cleanenv` prevents host env from leaking in (recommended). If `$FS_LICENSE`
116
+ is set on the host and you use `--cleanenv`, you must pass
117
+ `--fs-license-file` explicitly (as above).
118
+ - Recent Apptainer (≥1.0) is a drop-in replacement for Singularity 3.x.
119
+ - Under Singularity 2.x, use `singularity exec` and add `-w` explicitly.
120
+
121
+ Extended HPC / TemplateFlow docs:
122
+ https://www.nipreps.org/apps/singularity/
123
+
124
+ ---
125
+
126
+ ## Bare-metal (pip) installation
127
+
128
+ > ⚠️ **Not recommended** — the container is the tested reference; bare-metal
129
+ > installs commonly break when a system library version drifts. Use only when
130
+ > containers are impossible.
131
+
132
+ Requirements:
133
+ - Python **3.10+** (3.11–3.13 also supported)
134
+ - All [External Dependencies](#external-binary-dependencies-bare-metal-only) present on `$PATH`
135
+
136
+ Install fMRIPrep from PyPI:
137
+
138
+ ```bash
139
+ python -m pip install fmriprep
140
+ ```
141
+
142
+ To pin a specific version:
143
+
144
+ ```bash
145
+ python -m pip install fmriprep==25.2.5
146
+ ```
147
+
148
+ Development install from GitHub:
149
+
150
+ ```bash
151
+ git clone https://github.com/nipreps/fmriprep.git
152
+ cd fmriprep
153
+ python -m pip install -e ".[all]"
154
+ ```
155
+
156
+ Optional feature groups (via pip extras):
157
+
158
+ | Extra | Adds |
159
+ |-------|------|
160
+ | `[doc]` / `[docs]` | Sphinx + docs deps |
161
+ | `[dev]` | ruff, pre-commit |
162
+ | `[test]` / `[tests]` | pytest, coverage |
163
+ | `[telemetry]` | migas + sentry-sdk |
164
+ | `[container]` | Extras baked into container (datalad, git-annex) |
165
+ | `[duecredit]` | duecredit citation tracking |
166
+ | `[maint]` | maintenance tools |
167
+ | `[all]` | Everything |
168
+
169
+ Python dependencies (auto-installed):
170
+ `acres`, `looseversion`, `nibabel≥5.1.1`, `nipype≥1.9.0`, `nireports≥24.1.0`,
171
+ `nitime≥0.9`, `nitransforms≥25.0.1`, `niworkflows≥1.14.4`, `numpy≥2.0`,
172
+ `packaging≥24`, `pandas≥2.2`, `psutil≥5.4`, `pybids≥0.16`, `requests≥2.27`,
173
+ `sdcflows≥2.15.0`, `smriprep≥0.19.2`, `tedana≥25.1.0`, `templateflow≥24.2.2`,
174
+ `transforms3d≥0.4.2`, `toml≥0.10`, `codecarbon≥2`, `APScheduler≥3.10`.
175
+
176
+ ---
177
+
178
+ ## External binary dependencies (bare-metal only)
179
+
180
+ Containers include these. For bare-metal, install these versions (from fMRIPrep
181
+ 25.2.x lockfiles / Dockerfile):
182
+
183
+ | Tool | Version (25.2.x) | Notes |
184
+ |------|------------------|-------|
185
+ | FreeSurfer | **7.3.2** | Get from Harvard, requires license.txt |
186
+ | FSL | **6.0.7.7** (via fsl-{bet2, flirt, fast4, fugue, mcflirt, miscmaths, topup} conda pkgs) | Only the components fMRIPrep uses |
187
+ | ANTs | **2.5.1** (2.6.* in pixi env) | `antsRegistration`, `N4BiasFieldCorrection`, `antsBrainExtraction.sh` |
188
+ | AFNI | **25.2.09** | Only `3dvolreg`, `3dTshift`, `3dUnifize`, `3dAutomask` are used |
189
+ | Connectome Workbench | **1.5.0+** (2.0.* in container, Qt6 build) | CIFTI + surface I/O |
190
+ | MSM | **HOCR (Nov 2019)** | Multimodal Surface Matching |
191
+ | bids-validator | **1.14.10** | Input dataset validation |
192
+ | NodeJS | **20.x** | For bids-validator, svgo |
193
+ | svgo | **^3.2.0** | Report SVG optimization |
194
+ | Python | **3.12** | Container uses 3.12 |
195
+
196
+ Use `references/versions-dependencies.md` for the exact pin table.
197
+
198
+ Verify each tool is on PATH:
199
+
200
+ ```bash
201
+ which recon-all antsRegistration flirt 3dvolreg wb_command
202
+ ```
203
+
204
+ ---
205
+
206
+ ## FreeSurfer license
207
+
208
+ fMRIPrep uses FreeSurfer tools even when `--fs-no-reconall` is set (some
209
+ utilities need it). **You must supply a license file.**
210
+
211
+ Register (free): https://surfer.nmr.mgh.harvard.edu/registration.html
212
+
213
+ You receive a `license.txt` (small text file with 4 lines). Recommended location:
214
+ `$HOME/.licenses/freesurfer/license.txt`.
215
+
216
+ fMRIPrep resolves the license path in this order:
217
+ 1. `--fs-license-file /path/to/license.txt` argument
218
+ 2. `$FS_LICENSE` environment variable (fMRIPrep sets this in-process)
219
+ 3. `$FREESURFER_HOME/license.txt` (bare-metal fallback)
220
+
221
+ ### Passing the license into containers
222
+
223
+ **Docker (raw):**
224
+ ```bash
225
+ -v $FS_LICENSE:/opt/freesurfer/license.txt:ro
226
+ ```
227
+
228
+ **Docker (wrapper) — auto-detected from `$FS_LICENSE`:**
229
+ ```bash
230
+ export FS_LICENSE=$HOME/.licenses/freesurfer/license.txt
231
+ fmriprep-docker /data /out participant
232
+ ```
233
+
234
+ **Apptainer with `--cleanenv`:** must pass `--fs-license-file` explicitly, e.g.:
235
+ ```bash
236
+ apptainer run --cleanenv \
237
+ -B $HOME/.licenses/freesurfer/license.txt:/opt/freesurfer/license.txt:ro \
238
+ fmriprep-25.2.5.sif /data /out participant \
239
+ --fs-license-file /opt/freesurfer/license.txt
240
+ ```
241
+
242
+ ---
243
+
244
+ ## TemplateFlow setup
245
+
246
+ TemplateFlow is the registry that provides `MNI152NLin2009cAsym`, `fsLR`,
247
+ `OASIS30ANTs`, etc. Templates are downloaded on first use.
248
+
249
+ Default cache path: `$HOME/.cache/templateflow`. Override with:
250
+ ```bash
251
+ export TEMPLATEFLOW_HOME=/path/to/templateflow
252
+ ```
253
+
254
+ **Pre-fetch templates** (recommended for HPC, air-gapped or slow-network setups):
255
+
256
+ ```bash
257
+ python -m pip install templateflow
258
+ python -c "from templateflow.api import get; \
259
+ get(['MNI152NLin2009cAsym', 'MNI152NLin6Asym', 'OASIS30ANTs', \
260
+ 'MNIPediatricAsym', 'MNIInfant', 'fsaverage', 'fsLR'])"
261
+ ```
262
+
263
+ Templates that **must** be present for common workflows:
264
+
265
+ | Template | Needed when |
266
+ |----------|-------------|
267
+ | `MNI152NLin2009cAsym` | Always (default output space + internal reference) |
268
+ | `OASIS30ANTs` | Skull-stripping default (`--skull-strip-template`) |
269
+ | `MNI152NLin6Asym` | `--cifti-output` |
270
+ | `fsaverage` / `fsLR` | Surface / CIFTI output |
271
+ | `MNIPediatricAsym` / `MNIInfant` | Pediatric / infant cohorts |
272
+
273
+ The helper script bundled in the repo (`scripts/fetch_templates.py`) pulls all
274
+ common templates:
275
+
276
+ ```bash
277
+ wget https://raw.githubusercontent.com/nipreps/fmriprep/master/scripts/fetch_templates.py
278
+ python fetch_templates.py --tf-dir /path/to/templateflow
279
+ ```
280
+
281
+ The container image includes a pre-populated TemplateFlow mirror in
282
+ `/home/fmriprep/.cache/templateflow` — you don't strictly need to bind-mount
283
+ your host cache when using Docker/Apptainer, but doing so avoids re-downloads
284
+ if you delete the container.
285
+
286
+ Apptainer + TemplateFlow guide:
287
+ https://www.nipreps.org/apps/singularity/#templateflow-and-singularity
288
+
289
+ ---
290
+
291
+ ## Environment variables
292
+
293
+ | Variable | Effect |
294
+ |----------|--------|
295
+ | `FS_LICENSE` | Path to FreeSurfer license (auto-picked up by fMRIPrep and the wrapper) |
296
+ | `FREESURFER_HOME` | FreeSurfer install root (bare-metal); used as fallback license search location |
297
+ | `SUBJECTS_DIR` | FreeSurfer subjects directory (bare-metal) |
298
+ | `TEMPLATEFLOW_HOME` | TemplateFlow cache root (default `~/.cache/templateflow`) |
299
+ | `FMRIPREP_DEV` | Set to `1` to enable dev warnings (normally suppressed) |
300
+ | `FMRIPREP_WARNINGS` | Force warnings even in production builds (dev use) |
301
+ | `NIPYPE_NO_ET` / `NO_ET` | Disable Nipype telemetry ping (fMRIPrep force-sets these) |
302
+ | `PYTHONHASHSEED` | Set to `0` for reproducible runs (container sets automatically) |
303
+ | `MKL_NUM_THREADS` / `OMP_NUM_THREADS` | Set to `1` in container so Nipype controls parallelism |
304
+ | `FSLDIR` | FSL install root (bare-metal); container sets to pixi env |
305
+ | `FSLOUTPUTTYPE` | `NIFTI_GZ` in container |
306
+ | `IS_DOCKER_8395080871` | Set inside the container; fMRIPrep uses it to detect containerized execution |
307
+ | `DOCKER_VERSION_8395080871` | Set by the Docker wrapper; distinguishes `docker` from `fmriprep-docker` runs |
308
+
309
+ ---
310
+
311
+ ## Verifying the installation
312
+
313
+ Print the version — every install path should respond:
314
+
315
+ ```bash
316
+ # bare-metal
317
+ fmriprep --version
318
+
319
+ # Docker
320
+ docker run --rm nipreps/fmriprep:25.2.5 --version
321
+
322
+ # Docker wrapper
323
+ fmriprep-docker --version
324
+
325
+ # Apptainer
326
+ apptainer run fmriprep-25.2.5.sif --version
327
+ ```
328
+
329
+ Expected: `fMRIPrep v25.2.5` (or your installed release).
330
+
331
+ Dry-run to verify a BIDS dataset without doing work:
332
+
333
+ ```bash
334
+ fmriprep /path/to/bids /path/to/derivatives participant \
335
+ --participant-label 01 \
336
+ --boilerplate-only # emit only the methods paragraph and exit
337
+ ```
338
+
339
+ Or generate reports without redoing computation (uses cached working dir):
340
+
341
+ ```bash
342
+ fmriprep /path/to/bids /path/to/derivatives participant \
343
+ --participant-label 01 \
344
+ --reports-only \
345
+ -w /path/to/work
346
+ ```