@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.
- package/package.json +1 -1
- package/skills/01_Meta-Skills/workflow-skill-creator/SKILL.md +288 -0
- package/skills/01_Meta-Skills/workflow-skill-creator/references/cli_script_template.py +217 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/SKILL.md +256 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/bids-filter.md +287 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/citation.md +284 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/cli-reference.md +260 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/confounds.md +344 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/installation.md +346 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/outputs.md +369 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/sdc-fieldmaps.md +306 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/spaces.md +334 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/troubleshooting-faq.md +419 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/usage-examples.md +465 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/versions-dependencies.md +228 -0
- package/skills/06_fMRI_Neuroimaging/fmriprep/references/workflows.md +392 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/SKILL.md +212 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/datasets.md +252 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/interface-plotting.md +238 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/metrics.md +236 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/networks.md +273 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/spatial-modularity.md +291 -0
- package/skills/06_fMRI_Neuroimaging/netneurotools-guide/references/stats.md +290 -0
- package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/SKILL.md +116 -0
- package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/references/citation.bib +58 -0
- package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/analyze_pae.py +212 -0
- package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/analyze_plddt.py +125 -0
- package/skills/09_Cellular_Molecular_Neuroscience/alphafold-database-fetch-and-analyze/scripts/fetch_structure.py +168 -0
- package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/SKILL.md +176 -0
- package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/references/citation.bib +14 -0
- package/skills/09_Cellular_Molecular_Neuroscience/gtex-database/scripts/gtex_cli.py +281 -0
- package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/SKILL.md +181 -0
- package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/references/citation.bib +14 -0
- package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/references/search-api.md +137 -0
- package/skills/09_Cellular_Molecular_Neuroscience/human-protein-atlas-database/scripts/hpa_cli.py +263 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/SKILL.md +169 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/references/citation.bib +15 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/download_coordinate_files.py +113 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/fetch_pdb_metadata.py +70 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/fetch_schema.py +251 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pdb-database/scripts/search_pdb.py +187 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pymol/SKILL.md +146 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/PYMOL_REFERENCE.md +160 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/RECIPES.md +348 -0
- package/skills/09_Cellular_Molecular_Neuroscience/pymol/references/citation.bib +6 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/SKILL.md +120 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/references/citation.bib +18 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/references/query_syntax.md +34 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/scripts/download_paper.py +116 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/scripts/download_paper_source.py +98 -0
- package/skills/17_Literature_Databases/literature-search-arxiv/scripts/search_arxiv.py +174 -0
- package/skills/17_Literature_Databases/literature-search-biorxiv/SKILL.md +169 -0
- package/skills/17_Literature_Databases/literature-search-biorxiv/references/citation.bib +12 -0
- package/skills/17_Literature_Databases/literature-search-biorxiv/scripts/search_by_dates.py +297 -0
- package/skills/17_Literature_Databases/literature-search-biorxiv/scripts/search_by_doi.py +72 -0
- package/skills/17_Literature_Databases/literature-search-europepmc/SKILL.md +229 -0
- package/skills/17_Literature_Databases/literature-search-europepmc/references/citation.bib +15 -0
- package/skills/17_Literature_Databases/literature-search-europepmc/scripts/europepmc_api.py +345 -0
- package/skills/17_Literature_Databases/literature-search-openalex/SKILL.md +169 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/authors.md +78 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/citation.bib +8 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/geo_and_language.md +37 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/institutions.md +64 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/publishers_funders.md +42 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/sources.md +79 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/taxonomy.md +52 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/topics.md +29 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/type_values.md +65 -0
- package/skills/17_Literature_Databases/literature-search-openalex/references/works.md +304 -0
- package/skills/17_Literature_Databases/literature-search-openalex/scripts/openalex_cli.py +633 -0
- package/skills/17_Literature_Databases/pubmed-database/SKILL.md +185 -0
- package/skills/17_Literature_Databases/pubmed-database/references/advanced-linking.md +128 -0
- package/skills/17_Literature_Databases/pubmed-database/references/advanced-search.md +98 -0
- package/skills/17_Literature_Databases/pubmed-database/references/bulk-workflows.md +88 -0
- package/skills/17_Literature_Databases/pubmed-database/references/citation-matching.md +155 -0
- package/skills/17_Literature_Databases/pubmed-database/references/citation.bib +15 -0
- package/skills/17_Literature_Databases/pubmed-database/references/cross-database-linking.md +93 -0
- package/skills/17_Literature_Databases/pubmed-database/references/fetch-and-resolve.md +125 -0
- package/skills/17_Literature_Databases/pubmed-database/references/search-and-discovery.md +106 -0
- package/skills/17_Literature_Databases/pubmed-database/references/utilities.md +42 -0
- package/skills/17_Literature_Databases/pubmed-database/scripts/pubmed_api.py +715 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/SKILL.md +251 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/pyproject.toml +15 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/references/citation.bib +12 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/analyze_ism.py +334 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/generate_ontology_mapping.py +170 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/interpret_splicing.py +305 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/lookup_gene_info.py +337 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/resolve_ontology_terms.py +155 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/visualize_genome_tracks.py +402 -0
- package/skills/18_Genetics_Genomics/alphagenome-single-variant-analysis/scripts/visualize_variant_effects.py +1198 -0
- package/skills/18_Genetics_Genomics/clinvar-database/SKILL.md +370 -0
- package/skills/18_Genetics_Genomics/clinvar-database/references/citation.bib +23 -0
- package/skills/18_Genetics_Genomics/clinvar-database/scripts/clinvar_api.py +711 -0
- package/skills/18_Genetics_Genomics/dbsnp-database/SKILL.md +350 -0
- package/skills/18_Genetics_Genomics/dbsnp-database/references/api-notes.md +88 -0
- package/skills/18_Genetics_Genomics/dbsnp-database/references/citation.bib +12 -0
- package/skills/18_Genetics_Genomics/dbsnp-database/scripts/dbsnp_cli.py +625 -0
- package/skills/18_Genetics_Genomics/gnomad-database/SKILL.md +73 -0
- package/skills/18_Genetics_Genomics/gnomad-database/references/citation.bib +14 -0
- package/skills/18_Genetics_Genomics/gnomad-database/scripts/get_gene_constraint.py +90 -0
- package/skills/18_Genetics_Genomics/gnomad-database/scripts/get_variant_frequency.py +181 -0
- package/skills/18_Genetics_Genomics/gnomad-database/scripts/search_variants.py +207 -0
- package/skills/19_Pharmacology/chembl-database/SKILL.md +283 -0
- package/skills/19_Pharmacology/chembl-database/references/api_endpoints.md +97 -0
- package/skills/19_Pharmacology/chembl-database/references/citation.bib +30 -0
- package/skills/19_Pharmacology/chembl-database/scripts/chembl_api.py +657 -0
- package/skills/19_Pharmacology/clinical-trials-database/SKILL.md +378 -0
- package/skills/19_Pharmacology/clinical-trials-database/references/citation.bib +11 -0
- package/skills/19_Pharmacology/clinical-trials-database/references/clinical_trials_api.md +187 -0
- package/skills/19_Pharmacology/clinical-trials-database/references/studies_schema.md +143 -0
- package/skills/19_Pharmacology/clinical-trials-database/scripts/clinical_trials_api.py +373 -0
- package/skills/19_Pharmacology/openfda-database/SKILL.md +225 -0
- package/skills/19_Pharmacology/openfda-database/references/api_endpoints.md +207 -0
- package/skills/19_Pharmacology/openfda-database/references/citation.bib +15 -0
- package/skills/19_Pharmacology/openfda-database/references/recipes.md +150 -0
- package/skills/19_Pharmacology/openfda-database/scripts/openfda_query.py +505 -0
- package/skills/19_Pharmacology/opentargets-database/SKILL.md +198 -0
- package/skills/19_Pharmacology/opentargets-database/references/OpenTargets_GraphQL_Guide.md +216 -0
- package/skills/19_Pharmacology/opentargets-database/references/citation.bib +15 -0
- package/skills/19_Pharmacology/opentargets-database/scripts/query_opentargets.py +533 -0
- package/skills/19_Pharmacology/pubchem-database/SKILL.md +164 -0
- package/skills/19_Pharmacology/pubchem-database/references/citation.bib +15 -0
- package/skills/19_Pharmacology/pubchem-database/references/endpoints.md +71 -0
- package/skills/19_Pharmacology/pubchem-database/references/workflows.md +32 -0
- package/skills/19_Pharmacology/pubchem-database/scripts/pubchem_api.py +327 -0
- package/skills/20_Infrastructure/uv/SKILL.md +30 -0
- package/skills/01_Meta-Skills/academic-research-hub/SKILL.md +0 -108
- package/skills/01_Meta-Skills/academic-research-hub/scripts/requirements.txt +0 -17
- package/skills/01_Meta-Skills/academic-research-hub/scripts/research.py +0 -781
- package/skills/01_Meta-Skills/beautiful-log/SKILL.md +0 -64
- package/skills/01_Meta-Skills/beautiful-log/scripts/beautiful_log.py +0 -274
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/SKILL.md +0 -130
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/assets/config.template.yaml +0 -54
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/assets/top5_digest_template.md +0 -5
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/build_top5_digest.py +0 -300
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/common.py +0 -137
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/merge_results.py +0 -106
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/run_pipeline.py +0 -177
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/search_arxiv.py +0 -162
- package/skills/01_Meta-Skills/ethoclaw-daily-paper/scripts/search_pubmed.py +0 -202
- package/skills/01_Meta-Skills/ethoclaw-normalize-tabular/SKILL.md +0 -173
- package/skills/01_Meta-Skills/ethoclaw-normalize-tabular/scripts/normalize_data.py +0 -874
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/SKILL.md +0 -134
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/references/confirmation-prompts.md +0 -31
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/references/output-patterns.md +0 -45
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_markdown_deliverables.py +0 -41
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_research_log.py +0 -84
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/build_summary_md.py +0 -63
- package/skills/01_Meta-Skills/ethoclaw-pdf-research/scripts/extract_pdf_bundle.py +0 -140
- package/skills/01_Meta-Skills/experiment-controller/SKILL.md +0 -140
- package/skills/01_Meta-Skills/knowledge-graph-builder/SKILL.md +0 -366
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/entity_resolution.py +0 -120
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/extraction_prompt_template.txt +0 -19
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/graph_query.py +0 -106
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/hypothesis_cli_reference.py +0 -42
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/new_data_source_template.py +0 -116
- package/skills/01_Meta-Skills/knowledge-graph-builder/scripts/requirements.txt +0 -15
- package/skills/01_Meta-Skills/method-design/SKILL.md +0 -61
- package/skills/01_Meta-Skills/multi-search-engine/SKILL.md +0 -119
- package/skills/01_Meta-Skills/research-idea/SKILL.md +0 -65
- package/skills/05_EEG_ERP/eeg-skill/SKILL.md +0 -197
- package/skills/05_EEG_ERP/meg-skill/SKILL.md +0 -188
- package/skills/05_EEG_ERP/meg-skill/scripts/time_frequency.py +0 -223
- package/skills/05_EEG_ERP/mne-eeg-tool/SKILL.md +0 -165
- package/skills/05_EEG_ERP/mne-eeg-tool/scripts/eeg_pipeline_reference.py +0 -231
- package/skills/05_EEG_ERP/seed-iv-skill/SKILL.md +0 -184
- package/skills/05_EEG_ERP/seed-iv-skill/scripts/classify_seed_iv.py +0 -154
- package/skills/05_EEG_ERP/seed-iv-skill/scripts/extract_seed_iv_features.py +0 -190
- package/skills/05_EEG_ERP/seed-iv-skill/scripts/validate_seed_iv.py +0 -102
- package/skills/05_EEG_ERP/seed-vig-skill/SKILL.md +0 -182
- package/skills/05_EEG_ERP/seed-vig-skill/scripts/classify_seed_vig.py +0 -165
- package/skills/05_EEG_ERP/seed-vig-skill/scripts/extract_seed_vig_features.py +0 -185
- package/skills/05_EEG_ERP/seed-vig-skill/scripts/validate_seed_vig.py +0 -88
- package/skills/06_fMRI_Neuroimaging/abcd-skill/SKILL.md +0 -308
- package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/abcd_qc_summary.py +0 -449
- package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/extract_abcd_phenotype.py +0 -292
- package/skills/06_fMRI_Neuroimaging/abcd-skill/scripts/reorganize_abcd.py +0 -387
- package/skills/06_fMRI_Neuroimaging/abide-skill/SKILL.md +0 -302
- package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/abide_qc_summary.py +0 -317
- package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/extract_abide_phenotype.py +0 -267
- package/skills/06_fMRI_Neuroimaging/abide-skill/scripts/reorganize_abide.py +0 -387
- package/skills/06_fMRI_Neuroimaging/adhd200-skill/SKILL.md +0 -244
- package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/adhd200_qc_summary.py +0 -98
- package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/extract_adhd200_phenotype.py +0 -134
- package/skills/06_fMRI_Neuroimaging/adhd200-skill/scripts/reorganize_adhd200.py +0 -206
- package/skills/06_fMRI_Neuroimaging/adni-skill/SKILL.md +0 -358
- package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/generate_adni_task_files.py +0 -1305
- package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/generate_vqa_from_tasks.py +0 -766
- package/skills/06_fMRI_Neuroimaging/adni-skill/scripts/reorganize_adni.py +0 -491
- package/skills/06_fMRI_Neuroimaging/aibl-skill/SKILL.md +0 -295
- package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/aibl_qc_summary.py +0 -260
- package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/extract_aibl_phenotype.py +0 -365
- package/skills/06_fMRI_Neuroimaging/aibl-skill/scripts/reorganize_aibl.py +0 -394
- package/skills/06_fMRI_Neuroimaging/aomic-skill/SKILL.md +0 -292
- package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/aomic_qc_summary.py +0 -258
- package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/extract_aomic_phenotype.py +0 -284
- package/skills/06_fMRI_Neuroimaging/aomic-skill/scripts/reorganize_aomic.py +0 -322
- package/skills/06_fMRI_Neuroimaging/asl-skill/SKILL.md +0 -168
- package/skills/06_fMRI_Neuroimaging/asl-skill/scripts/compute_cbf.py +0 -224
- package/skills/06_fMRI_Neuroimaging/bids-organizer/SKILL.md +0 -241
- package/skills/06_fMRI_Neuroimaging/bold5000-skill/SKILL.md +0 -186
- package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/bold5000_qc_summary.py +0 -96
- package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/extract_bold5000_stimulus.py +0 -125
- package/skills/06_fMRI_Neuroimaging/bold5000-skill/scripts/reorganize_bold5000.py +0 -102
- package/skills/06_fMRI_Neuroimaging/camcan-skill/SKILL.md +0 -213
- package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/camcan_qc_summary.py +0 -131
- package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/extract_camcan_phenotype.py +0 -145
- package/skills/06_fMRI_Neuroimaging/camcan-skill/scripts/validate_camcan.py +0 -141
- package/skills/06_fMRI_Neuroimaging/cobre-skill/SKILL.md +0 -201
- package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/cobre_qc_summary.py +0 -95
- package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/extract_cobre_phenotype.py +0 -104
- package/skills/06_fMRI_Neuroimaging/cobre-skill/scripts/reorganize_cobre.py +0 -140
- package/skills/06_fMRI_Neuroimaging/conn-tool/SKILL.md +0 -180
- package/skills/06_fMRI_Neuroimaging/dcm2nii/SKILL.md +0 -189
- package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/SKILL.md +0 -183
- package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/dmt_har_med_qc_summary.py +0 -96
- package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/extract_dmt_har_med_phenotype.py +0 -121
- package/skills/06_fMRI_Neuroimaging/dmt-har-med-skill/scripts/reorganize_dmt_har_med.py +0 -125
- package/skills/06_fMRI_Neuroimaging/dwi-skill/SKILL.md +0 -359
- package/skills/06_fMRI_Neuroimaging/fmri-skill/SKILL.md +0 -371
- package/skills/06_fMRI_Neuroimaging/fmriprep-tool/SKILL.md +0 -228
- package/skills/06_fMRI_Neuroimaging/freesurfer-tool/SKILL.md +0 -286
- package/skills/06_fMRI_Neuroimaging/freesurfer-tool/scripts/freesurfer_processor.py +0 -145
- package/skills/06_fMRI_Neuroimaging/fsl-tool/SKILL.md +0 -208
- package/skills/06_fMRI_Neuroimaging/hbn-skill/SKILL.md +0 -271
- package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/extract_hbn_phenotype.py +0 -107
- package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/hbn_qc_summary.py +0 -96
- package/skills/06_fMRI_Neuroimaging/hbn-skill/scripts/reorganize_hbn.py +0 -150
- package/skills/06_fMRI_Neuroimaging/hcpa-skill/SKILL.md +0 -210
- package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/extract_hcpa_phenotype.py +0 -146
- package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/hcpa_qc_summary.py +0 -120
- package/skills/06_fMRI_Neuroimaging/hcpa-skill/scripts/reorganize_hcpa.py +0 -155
- package/skills/06_fMRI_Neuroimaging/hcpd-skill/SKILL.md +0 -210
- package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/extract_hcpd_phenotype.py +0 -148
- package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/hcpd_qc_summary.py +0 -125
- package/skills/06_fMRI_Neuroimaging/hcpd-skill/scripts/reorganize_hcpd.py +0 -146
- package/skills/06_fMRI_Neuroimaging/hcpep-skill/SKILL.md +0 -215
- package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/extract_hcpep_phenotype.py +0 -157
- package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/hcpep_qc_summary.py +0 -143
- package/skills/06_fMRI_Neuroimaging/hcpep-skill/scripts/reorganize_hcpep.py +0 -146
- package/skills/06_fMRI_Neuroimaging/hcppipeline-tool/SKILL.md +0 -217
- package/skills/06_fMRI_Neuroimaging/hcpya-skill/SKILL.md +0 -214
- package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/extract_hcpya_phenotype.py +0 -190
- package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/hcpya_qc_summary.py +0 -152
- package/skills/06_fMRI_Neuroimaging/hcpya-skill/scripts/reorganize_hcpya.py +0 -203
- package/skills/06_fMRI_Neuroimaging/ixi-skill/SKILL.md +0 -198
- package/skills/06_fMRI_Neuroimaging/ixi-skill/scripts/ixi_qc_summary.py +0 -137
- package/skills/06_fMRI_Neuroimaging/ixi-skill/scripts/reorganize_ixi.py +0 -190
- package/skills/06_fMRI_Neuroimaging/mnd-skill/SKILL.md +0 -191
- package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/extract_mnd_phenotype.py +0 -143
- package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/mnd_qc_summary.py +0 -120
- package/skills/06_fMRI_Neuroimaging/mnd-skill/scripts/validate_mnd.py +0 -107
- package/skills/06_fMRI_Neuroimaging/mschallenge-skill/SKILL.md +0 -203
- package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/analyze_lesions.py +0 -119
- package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/longitudinal_lesion.py +0 -148
- package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/mschallenge_qc_summary.py +0 -132
- package/skills/06_fMRI_Neuroimaging/mschallenge-skill/scripts/validate_mschallenge.py +0 -116
- package/skills/06_fMRI_Neuroimaging/nibabel-skill/SKILL.md +0 -184
- package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/atlas_coordinate_reference.py +0 -61
- package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/freesurfer_io_reference.py +0 -34
- package/skills/06_fMRI_Neuroimaging/nibabel-skill/scripts/nifti_inspection_reference.py +0 -35
- package/skills/06_fMRI_Neuroimaging/nifd-skill/SKILL.md +0 -205
- package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/extract_nifd_phenotype.py +0 -132
- package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/nifd_qc_summary.py +0 -111
- package/skills/06_fMRI_Neuroimaging/nifd-skill/scripts/validate_nifd.py +0 -111
- package/skills/06_fMRI_Neuroimaging/nii2dcm/SKILL.md +0 -143
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/SKILL.md +0 -266
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/connectome_reference.py +0 -65
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/denoise_timeseries_reference.py +0 -58
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/hierarchical_parcellation_reference.py +0 -53
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/kmeans_parcellation_reference.py +0 -53
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/preprocess_bold_reference.py +0 -76
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/rest_dictlearning_reference.py +0 -56
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/rest_ica_reference.py +0 -59
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/second_level_glm_reference.py +0 -58
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/spacenet_classifier_reference.py +0 -59
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/svm_classifier_reference.py +0 -60
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/task_glm_reference.py +0 -63
- package/skills/06_fMRI_Neuroimaging/nilearn-tool/scripts/zalff_summary_reference.py +0 -109
- package/skills/06_fMRI_Neuroimaging/nsd-skill/SKILL.md +0 -210
- package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/extract_nsd_stimulus.py +0 -171
- package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/nsd_qc_summary.py +0 -142
- package/skills/06_fMRI_Neuroimaging/nsd-skill/scripts/validate_nsd.py +0 -142
- package/skills/06_fMRI_Neuroimaging/oasis-skill/SKILL.md +0 -205
- package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/extract_oasis_phenotype.py +0 -126
- package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/oasis_qc_summary.py +0 -115
- package/skills/06_fMRI_Neuroimaging/oasis-skill/scripts/validate_oasis.py +0 -119
- package/skills/06_fMRI_Neuroimaging/pet-skill/SKILL.md +0 -173
- package/skills/06_fMRI_Neuroimaging/pet-skill/scripts/compute_suvr.py +0 -202
- package/skills/06_fMRI_Neuroimaging/pnc-skill/SKILL.md +0 -206
- package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/extract_pnc_phenotype.py +0 -136
- package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/pnc_qc_summary.py +0 -116
- package/skills/06_fMRI_Neuroimaging/pnc-skill/scripts/validate_pnc.py +0 -120
- package/skills/06_fMRI_Neuroimaging/ppmi-skill/SKILL.md +0 -209
- package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/extract_ppmi_phenotype.py +0 -138
- package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/ppmi_qc_summary.py +0 -111
- package/skills/06_fMRI_Neuroimaging/ppmi-skill/scripts/validate_ppmi.py +0 -117
- package/skills/06_fMRI_Neuroimaging/qsiprep-tool/SKILL.md +0 -320
- package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/SKILL.md +0 -215
- package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/extract_rest_mdd_phenotype.py +0 -132
- package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/harmonize_sites.py +0 -152
- package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/rest_mdd_qc_summary.py +0 -124
- package/skills/06_fMRI_Neuroimaging/rest-mneta-mdd-skill/scripts/validate_rest_mdd.py +0 -103
- package/skills/06_fMRI_Neuroimaging/smri-skill/SKILL.md +0 -302
- package/skills/06_fMRI_Neuroimaging/tcp-skill/SKILL.md +0 -204
- package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/extract_tcp_phenotype.py +0 -139
- package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/tcp_qc_summary.py +0 -111
- package/skills/06_fMRI_Neuroimaging/tcp-skill/scripts/validate_tcp.py +0 -99
- package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/SKILL.md +0 -217
- package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/extract_ucla_cnp_phenotype.py +0 -145
- package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/ucla_cnp_qc_summary.py +0 -111
- package/skills/06_fMRI_Neuroimaging/ucla-cnp-skill/scripts/validate_ucla_cnp.py +0 -113
- package/skills/06_fMRI_Neuroimaging/ukb-skill/SKILL.md +0 -310
- package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/build_ukb_survival.py +0 -210
- package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/extract_ukb_cases.py +0 -308
- package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/extract_ukb_phenotype.py +0 -232
- package/skills/06_fMRI_Neuroimaging/ukb-skill/scripts/ukb_qc_summary.py +0 -158
- package/skills/06_fMRI_Neuroimaging/wmh-segmentation/SKILL.md +0 -133
- package/skills/07_Computational_Modeling/detrending/SKILL.md +0 -118
- package/skills/07_Computational_Modeling/dictlearning/SKILL.md +0 -122
- package/skills/07_Computational_Modeling/filtering/SKILL.md +0 -121
- package/skills/07_Computational_Modeling/glm/SKILL.md +0 -153
- package/skills/07_Computational_Modeling/hierarchical/SKILL.md +0 -121
- package/skills/07_Computational_Modeling/ica/SKILL.md +0 -122
- package/skills/07_Computational_Modeling/kmeans/SKILL.md +0 -119
- package/skills/07_Computational_Modeling/run_models/SKILL.md +0 -427
- package/skills/07_Computational_Modeling/spacenet/SKILL.md +0 -122
- package/skills/07_Computational_Modeling/svm/SKILL.md +0 -120
- package/skills/08_Computational_Neuroscience/brain_gnn/SKILL.md +0 -183
- package/skills/08_Computational_Neuroscience/dipy-tool/SKILL.md +0 -239
- package/skills/08_Computational_Neuroscience/dipy-tool/scripts/dti_metrics_reference.py +0 -70
- package/skills/08_Computational_Neuroscience/dipy-tool/scripts/load_and_mask_reference.py +0 -76
- package/skills/08_Computational_Neuroscience/dipy-tool/scripts/roi_stats_reference.py +0 -59
- package/skills/08_Computational_Neuroscience/fm_app/SKILL.md +0 -195
- package/skills/08_Computational_Neuroscience/neurostorm/SKILL.md +0 -151
- package/skills/13_Visualization/brain-visualization/SKILL.md +0 -191
- package/skills/13_Visualization/brain-visualization/scripts/connectome_reference.py +0 -108
- package/skills/13_Visualization/brain-visualization/scripts/freesurfer_ply_reference.py +0 -54
- package/skills/13_Visualization/brain-visualization/scripts/zalff_summary_reference.py +0 -116
- package/skills/13_Visualization/ethoclaw-paper-figure-layout/SKILL.md +0 -78
- package/skills/13_Visualization/ethoclaw-paper-figure-layout/assets/naturecomm_figures.tex +0 -74
- package/skills/13_Visualization/ethoclaw-paper-figure-layout/scripts/layout_results_foldered.py +0 -579
- package/skills/14_Writing/overleaf-skill/SKILL.md +0 -184
- package/skills/14_Writing/overleaf-skill/scripts/install.sh +0 -30
- package/skills/14_Writing/paper-writing/SKILL.md +0 -146
- package/skills/14_Writing/paper-writing/scripts/data_statement_templates.py +0 -164
- package/skills/14_Writing/paper-writing/scripts/figure_templates.py +0 -315
- package/skills/14_Writing/paper-writing/scripts/nature_figure_style.py +0 -214
- package/skills/14_Writing/paper-writing/scripts/section_phrasebank.py +0 -246
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/SKILL.md +0 -274
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/report_template_en.html +0 -112
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/report_template_en.md +0 -21
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/cluster-section.md +0 -5
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/heatmap-section.md +0 -5
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/integrated-interpretation.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/overview.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/project-summary.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/radar-section.md +0 -5
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/raw-trajectory.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/sample-check.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/single-subject-section.md +0 -3
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/assets/section_templates/stats-section.md +0 -5
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/epm.md +0 -52
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/fst.md +0 -37
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/nor.md +0 -39
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/oft.md +0 -43
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/tcst.md +0 -45
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/experiment-types/tst.md +0 -36
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/input-types.md +0 -59
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/interpretation-guardrails.md +0 -45
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/metadata-schema.md +0 -57
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/report-sections.md +0 -86
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/references/section-selection-rules.md +0 -169
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/build_report_manifest.py +0 -27
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/render_report.py +0 -34
- package/skills/16_Animal_Behavior/ethoclaw-analysis-report/scripts/report_utils.py +0 -1121
- package/skills/16_Animal_Behavior/ethoclaw-animal-grounding/SKILL.md +0 -390
- package/skills/16_Animal_Behavior/ethoclaw-animal-grounding/reference_code.py +0 -98
- package/skills/16_Animal_Behavior/ethoclaw-animal-pose-estimation/SKILL.md +0 -336
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/README.md +0 -21
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/SKILL.md +0 -41
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/batch_kinematic_generator.py +0 -663
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/config.json +0 -19
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/generate_kinematic_parameter.py +0 -401
- package/skills/16_Animal_Behavior/ethoclaw-kinematic-parameter-generator/kinematic_generator.py +0 -265
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/SKILL.md +0 -72
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/references/config.example.toml +0 -56
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/scripts/cluster_all_params.py +0 -232
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-clustermap-generate/scripts/cluster_all_params_from_config.py +0 -236
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/SKILL.md +0 -68
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/references/notes.md +0 -5
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-radar-generate/scripts/plot_h5_radar.py +0 -513
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/SKILL.md +0 -52
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/config.toml +0 -81
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/references/stats-rule.md +0 -18
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_inspect.py +0 -79
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_violin_batch.py +0 -624
- package/skills/16_Animal_Behavior/ethoclaw-multiparameter-violin-stats-generate/scripts/h5_violin_stats.py +0 -438
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/SKILL.md +0 -280
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/core_scripts/heatmap_trajectory.py +0 -790
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/core_scripts/heatmap_velocity.py +0 -855
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_2d.csv +0 -101
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_2d.h5 +0 -0
- package/skills/16_Animal_Behavior/ethoclaw-trajectory-velocity-heatmap-generate/reference_data/reference_data_readme.md +0 -126
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "fmriprep"
|
|
3
|
+
description: "Preprocess task-based or resting-state fMRI data with fMRIPrep — a robust, BIDS-App preprocessing pipeline built on FSL, ANTs, FreeSurfer, AFNI, and Nilearn. Use this skill whenever the user asks to preprocess fMRI/BOLD data, run fMRIPrep on a BIDS dataset, set up Docker/Singularity/Apptainer containers for fMRIPrep, choose output spaces (MNI152NLin2009cAsym, fsaverage, fsLR/CIFTI), configure susceptibility distortion correction (SDC), extract or interpret the confounds table, resample to surface/grayordinates, cite fMRIPrep and its dependencies, or debug fMRIPrep crashes and hangs."
|
|
4
|
+
domain: "fmri-neuroimaging"
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
authors:
|
|
7
|
+
- "Claude (AI-assisted)"
|
|
8
|
+
review_status: "ai-generated"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# fMRIPrep: Robust fMRI Preprocessing Pipeline
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
This skill encodes complete operational knowledge of **fMRIPrep** — the NiPreps
|
|
16
|
+
BIDS-App for preprocessing task and resting-state fMRI. It covers installation
|
|
17
|
+
(Docker/Apptainer/pip), the full CLI, workflow internals, output layout, the
|
|
18
|
+
confounds table, output spaces / TemplateFlow, susceptibility distortion
|
|
19
|
+
correction, BIDS filters, troubleshooting, and how to cite. It is derived from
|
|
20
|
+
the fMRIPrep 25.2.x (LTS) source tree (https://github.com/nipreps/fmriprep).
|
|
21
|
+
|
|
22
|
+
## When to Use This Skill
|
|
23
|
+
|
|
24
|
+
Activate when the user:
|
|
25
|
+
|
|
26
|
+
- Wants to run fMRIPrep on a BIDS dataset (Docker, Singularity/Apptainer, pip)
|
|
27
|
+
- Asks how to install fMRIPrep or set up dependencies (FreeSurfer license, TemplateFlow)
|
|
28
|
+
- Needs help choosing `--output-spaces`, `--cifti-output`, or surface targets (fsaverage, fsLR)
|
|
29
|
+
- Needs help with SDC / fieldmap issues (`--use-syn-sdc`, `--force syn-sdc`, `IntendedFor`, `B0FieldIdentifier`)
|
|
30
|
+
- Asks about the confounds file (`~_desc-confounds_timeseries.tsv`), aCompCor/tCompCor, motion parameters
|
|
31
|
+
- Debugs a crashing/hanging fMRIPrep run, FreeSurfer `IsRunning` errors, or race conditions
|
|
32
|
+
- Wants to reuse pre-computed derivatives (`--derivatives`), an existing FreeSurfer subject dir, or a partial run
|
|
33
|
+
- Needs a BIDS filter file (`--bids-filter-file`) or wants to select tasks/sessions/echoes
|
|
34
|
+
- Needs a citation/boilerplate for a paper or grant proposal
|
|
35
|
+
- Wants to interpret the HTML visual report
|
|
36
|
+
|
|
37
|
+
## Reference Files (Progressive Disclosure)
|
|
38
|
+
|
|
39
|
+
| Topic | File | When to Read |
|
|
40
|
+
|-------|------|--------------|
|
|
41
|
+
| Installation (Docker, Apptainer, pip, wrapper, FreeSurfer license) | `references/installation.md` | User asks how to install/set up fMRIPrep, or hits license/permission errors |
|
|
42
|
+
| Complete CLI reference (every flag, defaults, choices) | `references/cli-reference.md` | User asks "what does flag X do?" or needs the full option table |
|
|
43
|
+
| Practical invocation examples (single subject, batch, HPC SLURM, Docker) | `references/usage-examples.md` | User asks "how do I actually run it on my data?" |
|
|
44
|
+
| Workflow internals (anat + BOLD stages, HMC, BBR, SDC, surface, CIFTI) | `references/workflows.md` | User asks what fMRIPrep does under the hood, or wants a step-by-step methods section |
|
|
45
|
+
| Output layout and derivatives naming | `references/outputs.md` | User asks what files fMRIPrep produces, or how to find a specific derivative |
|
|
46
|
+
| Confounds table (aCompCor, tCompCor, motion, FD, DVARS, spike regressors) | `references/confounds.md` | User asks which columns of the confounds TSV to use for denoising |
|
|
47
|
+
| Output spaces / TemplateFlow (MNI152NLin2009cAsym, fsLR, fsaverage, custom) | `references/spaces.md` | User asks how to specify `--output-spaces`, use custom templates, or pre-fetch templates |
|
|
48
|
+
| Susceptibility distortion correction (fieldmaps, PEPOLAR, phase-diff, SyN) | `references/sdc-fieldmaps.md` | User has fieldmaps, wants fieldmap-less SDC, or SDC-related errors |
|
|
49
|
+
| BIDS filter file syntax + PyBIDS queries | `references/bids-filter.md` | User needs to select specific sessions/tasks or non-BIDS entities |
|
|
50
|
+
| FAQ, troubleshooting, hangs, HPC, TemplateFlow offline | `references/troubleshooting-faq.md` | User's run is crashing/hanging or they're on an HPC without Internet |
|
|
51
|
+
| Citation boilerplate, DOIs, BibTeX, dependency papers | `references/citation.md` | User writes a paper or grant that uses fMRIPrep |
|
|
52
|
+
| Pinned dependency versions (25.2.x LTS) | `references/versions-dependencies.md` | User asks which version of FreeSurfer/ANTs/FSL/AFNI ships with fMRIPrep |
|
|
53
|
+
|
|
54
|
+
## What fMRIPrep Is
|
|
55
|
+
|
|
56
|
+
fMRIPrep is a **BIDS-App**: a container that consumes a `BIDS`-organized
|
|
57
|
+
dataset and emits a BIDS-Derivatives dataset plus a per-subject HTML report.
|
|
58
|
+
It performs *minimal preprocessing* — motion correction, field unwarping,
|
|
59
|
+
normalization, bias-field correction, brain extraction, coregistration, and
|
|
60
|
+
optional surface resampling — and deliberately **does not smooth or denoise**.
|
|
61
|
+
Downstream denoising is enabled by the confounds table.
|
|
62
|
+
|
|
63
|
+
- **Homepage**: https://fmriprep.org
|
|
64
|
+
- **Repo**: https://github.com/nipreps/fmriprep
|
|
65
|
+
- **Container image**: `nipreps/fmriprep:<version>` on Docker Hub
|
|
66
|
+
- **Latest release** (of this snapshot): **25.2.5** (2026-03-10) — 25.2.x is the **LTS** track, supported through **October 2029**
|
|
67
|
+
- **License**: Apache-2.0 (since 21.0.x)
|
|
68
|
+
- **RRID**: SCR_016216
|
|
69
|
+
|
|
70
|
+
## Command-Line Structure (BIDS-App)
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
fmriprep <bids_dir> <output_dir> <analysis_level> [OPTIONS]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- `bids_dir` — root of the BIDS dataset (contains `sub-*/` folders and `dataset_description.json`)
|
|
77
|
+
- `output_dir` — where derivatives + reports go (must NOT be inside `bids_dir`)
|
|
78
|
+
- `analysis_level` — only `participant` is supported
|
|
79
|
+
|
|
80
|
+
Same structure applies to the container form:
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
docker run --rm -it <mounts> nipreps/fmriprep:<version> <bids_dir> <output_dir> participant [OPTIONS]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Pipeline Overview
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
┌──────────────────────────────────────┐
|
|
90
|
+
│ BIDS Dataset (T1w/T2w + BOLD + fmap)│
|
|
91
|
+
└──────────────────┬───────────────────┘
|
|
92
|
+
│
|
|
93
|
+
┌─────────────────────┼─────────────────────┐
|
|
94
|
+
▼ ▼ ▼
|
|
95
|
+
┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐
|
|
96
|
+
│ Anatomical WF │ │ Fieldmap WF │ │ BOLD WF (per run)│
|
|
97
|
+
│ (smriprep) │ │ (SDCFlows) │ │ (fmriprep) │
|
|
98
|
+
│ ─────────────── │ │ ─────────────── │ │ ───────────── │
|
|
99
|
+
│ • Conform T1w │ │ • PEPOLAR/TOPUP │ │ • Reference img │
|
|
100
|
+
│ • N4 bias corr │ │ • Phase-diff │ │ • HMC (mcflirt) │
|
|
101
|
+
│ • Skull-strip │ │ • Phase encoding │ │ • STC (3dTShift) │
|
|
102
|
+
│ (antsBrainExt) │ │ • SyN-SDC (t1w) │ │ • SDC apply │
|
|
103
|
+
│ • FAST segment │ │ │ │ • BBR to T1w │
|
|
104
|
+
│ • antsRegistrat │ │ │ │ • Multi-echo T2* │
|
|
105
|
+
│ → MNI templates│ │ │ │ • Resample to │
|
|
106
|
+
│ • recon-all │ │ │ │ output spaces │
|
|
107
|
+
│ • MSM-Sulc │ │ │ │ • Surface + CIFTI│
|
|
108
|
+
│ • Curv/Sulc/Thick│ │ │ │ • Confounds │
|
|
109
|
+
└─────────┬─────────┘ └──────────┬────────┘ └──────────┬────────┘
|
|
110
|
+
│ │ │
|
|
111
|
+
└────────────────────────┴───────────────────────┘
|
|
112
|
+
│
|
|
113
|
+
▼
|
|
114
|
+
┌────────────────────────────────────────┐
|
|
115
|
+
│ BIDS-Derivatives + sub-XX.html report │
|
|
116
|
+
└────────────────────────────────────────┘
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Read `references/workflows.md` for the full method description and node names.
|
|
120
|
+
|
|
121
|
+
## Quick Start
|
|
122
|
+
|
|
123
|
+
The **fastest path** for a new user with Docker:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# 1. Install the wrapper (Python 3.10+)
|
|
127
|
+
python -m pip install --user fmriprep-docker
|
|
128
|
+
|
|
129
|
+
# 2. Get a FreeSurfer license (free): https://surfer.nmr.mgh.harvard.edu/registration.html
|
|
130
|
+
# Save the file, e.g. as ~/.licenses/freesurfer/license.txt
|
|
131
|
+
export FS_LICENSE=$HOME/.licenses/freesurfer/license.txt
|
|
132
|
+
|
|
133
|
+
# 3. Pre-fetch TemplateFlow templates (avoids network needs mid-run)
|
|
134
|
+
python -m pip install --user templateflow
|
|
135
|
+
python -c "from templateflow.api import get; \
|
|
136
|
+
get(['MNI152NLin2009cAsym','MNI152NLin6Asym','OASIS30ANTs','fsaverage','fsLR'])"
|
|
137
|
+
|
|
138
|
+
# 4. Run — replace paths with yours
|
|
139
|
+
fmriprep-docker /path/to/bids /path/to/derivatives participant \
|
|
140
|
+
--participant-label 01 \
|
|
141
|
+
--output-spaces MNI152NLin2009cAsym:res-2 fsaverage:den-10k \
|
|
142
|
+
--nthreads 8 --omp-nthreads 4 --mem 12000 \
|
|
143
|
+
-w /path/to/work
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Equivalent bare Docker invocation (what the wrapper produces):
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
docker run --rm -it \
|
|
150
|
+
-v /path/to/bids:/data:ro \
|
|
151
|
+
-v /path/to/derivatives:/out \
|
|
152
|
+
-v /path/to/work:/scratch \
|
|
153
|
+
-v $FS_LICENSE:/opt/freesurfer/license.txt:ro \
|
|
154
|
+
-v $HOME/.cache/templateflow:/home/fmriprep/.cache/templateflow \
|
|
155
|
+
nipreps/fmriprep:25.2.5 \
|
|
156
|
+
/data /out participant \
|
|
157
|
+
--participant-label 01 \
|
|
158
|
+
--output-spaces MNI152NLin2009cAsym:res-2 fsaverage:den-10k \
|
|
159
|
+
--nthreads 8 --omp-nthreads 4 --mem 12000 \
|
|
160
|
+
-w /scratch
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Equivalent Apptainer/Singularity invocation:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
apptainer run --cleanenv \
|
|
167
|
+
-B /path/to/bids:/data:ro \
|
|
168
|
+
-B /path/to/derivatives:/out \
|
|
169
|
+
-B /path/to/work:/work \
|
|
170
|
+
-B $FS_LICENSE:/opt/freesurfer/license.txt:ro \
|
|
171
|
+
-B $HOME/.cache/templateflow:/opt/templateflow \
|
|
172
|
+
--env TEMPLATEFLOW_HOME=/opt/templateflow \
|
|
173
|
+
fmriprep-25.2.5.sif \
|
|
174
|
+
/data /out participant \
|
|
175
|
+
--participant-label 01 \
|
|
176
|
+
--fs-license-file /opt/freesurfer/license.txt \
|
|
177
|
+
-w /work
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Key Concepts (cheat-sheet)
|
|
181
|
+
|
|
182
|
+
| Concept | Meaning |
|
|
183
|
+
|---------|---------|
|
|
184
|
+
| **BIDS-App** | Container/exec with fixed 3-positional CLI (`bids_dir output_dir participant`). fMRIPrep only supports `participant`. |
|
|
185
|
+
| **BIDS Derivatives** | Output format — sub-folders per subject, sidecar JSON per NIfTI, standardized entity keys (`space-`, `desc-`, `hemi-`, `from-`, `to-`). |
|
|
186
|
+
| **NiPreps** | The umbrella (www.nipreps.org). fMRIPrep depends on sister packages: `smriprep` (anat), `sdcflows` (SDC), `niworkflows` (utilities), `nireports` (reports), `templateflow` (templates). |
|
|
187
|
+
| **TemplateFlow** | Registry of standard neuroimaging templates fetched on demand. Home dir: `$TEMPLATEFLOW_HOME` (default `~/.cache/templateflow`). |
|
|
188
|
+
| **Working directory** (`-w`) | Nipype's scratch space. Enables resume-on-crash. Not inside `bids_dir`. |
|
|
189
|
+
| **`--output-spaces`** | Which coordinate systems to resample BOLD/T1w to. Space `KEY[:cohort-X][:res-Y][:den-Z]`. Default: `MNI152NLin2009cAsym:res-native`. Read `references/spaces.md`. |
|
|
190
|
+
| **`--level`** | `minimal` (transforms only), `resampling` (adds mid-way NIfTIs), `full` (default — every derivative). |
|
|
191
|
+
| **`--ignore`** | Skip preprocessing aspects. Choices: `fieldmaps`, `slicetiming`, `sbref`, `t2w`, `flair`, `fmap-jacobian`. |
|
|
192
|
+
| **`--force`** | Override auto-choices. Choices: `bbr`, `no-bbr`, `syn-sdc`, `fmap-jacobian`. |
|
|
193
|
+
| **`--derivatives`** | Reuse precomputed derivatives from another package (BIDS-Derivatives-compliant); replaces the older `--anat-derivatives`. |
|
|
194
|
+
| **`--use-syn-sdc`** | Fieldmap-less SDC using anatomical prior; if no fmap and unable → `error` (default) or `warn`. |
|
|
195
|
+
| **`--cifti-output`** | Enable grayordinate output. Choices: `91k` (2 mm, 91282 grayordinates), `170k` (1.6 mm, 170494). Implies `MNI152NLin6Asym`. |
|
|
196
|
+
| **`--fs-no-reconall`** | Skip FreeSurfer surface reconstruction. Disables surface/CIFTI outputs. |
|
|
197
|
+
| **`--fs-license-file`** | Path to your FreeSurfer license (required even if `recon-all` is not run — some FS binaries need it). |
|
|
198
|
+
| **Confounds** | Nuisance regressors written to `~_desc-confounds_timeseries.tsv`. Read `references/confounds.md` before including in a design matrix. |
|
|
199
|
+
| **HMC** | Head-Motion Correction (FSL `mcflirt`). Reference-image based. |
|
|
200
|
+
| **STC** | Slice-Timing Correction (AFNI `3dTShift`). Runs only if `SliceTiming` present in metadata and ≥5 usable volumes. |
|
|
201
|
+
| **BBR** | Boundary-Based Registration (FreeSurfer `bbregister` when recon-all is on, else FSL `flirt --schedule=bbr.sch`). |
|
|
202
|
+
| **CompCor** | Component-based noise correction. Anatomical (aCompCor) uses eroded WM/CSF/combined masks; temporal (tCompCor) uses top-variance voxels. |
|
|
203
|
+
| **Boilerplate** | Auto-generated methods paragraph in the report — copy verbatim into papers (public-domain, CC0). |
|
|
204
|
+
|
|
205
|
+
## Sensible Defaults
|
|
206
|
+
|
|
207
|
+
fMRIPrep is designed so a bare invocation "just works". If you have no strong
|
|
208
|
+
preferences, this is the recommended starting point:
|
|
209
|
+
|
|
210
|
+
- `--output-spaces MNI152NLin2009cAsym:res-2 fsaverage:den-10k anat` — one volumetric standard space, a light surface space, and native anatomical
|
|
211
|
+
- `--nthreads = number of CPU cores allocated to the container`
|
|
212
|
+
- `--omp-nthreads ≤ nthreads` (typically `nthreads / 2` when running multiple subjects; single subject: 8 is a common cap)
|
|
213
|
+
- `--mem-mb` at least 8000 (Docker wrapper warns below 8 GB); 16 GB is comfortable
|
|
214
|
+
- Keep the FS license mounted; keep `TEMPLATEFLOW_HOME` mounted; keep `-w` on a **fast local disk** (not NFS if avoidable)
|
|
215
|
+
- Process **one subject per container instance** (see FAQ)
|
|
216
|
+
|
|
217
|
+
## Common Pitfalls
|
|
218
|
+
|
|
219
|
+
1. **Output dir == input dir**: fMRIPrep will refuse to run. Put derivatives in a separate path (e.g. `bids/derivatives/fmriprep-25.2.5/`).
|
|
220
|
+
2. **Working directory inside `bids_dir`**: also refused. Put `-w /scratch/work` outside the input.
|
|
221
|
+
3. **`--output-spaces MNI152NLin6Asym:res-2` ≠ 2 mm always** — `res-` is a TemplateFlow *index*, not millimeters. Verify with the template JSON.
|
|
222
|
+
4. **Race conditions on parallel subjects**: never share the same `-w` across subjects. Give each subject its own working directory, or launch each subject in its own container.
|
|
223
|
+
5. **FreeSurfer `IsRunning.lh+rh` error** after a crash: delete `IsRunning.*` files in `<output>/sourcedata/freesurfer/sub-XX/scripts/` and re-run.
|
|
224
|
+
6. **Slice-timing correction is referenced to the middle slice by default** (`--slice-time-ref 0.5`), which shifts effective volume onsets by 0.5 TR — adjust your GLM accordingly, or set `--slice-time-ref 0` to disable the shift.
|
|
225
|
+
7. **Never include all confounds columns** in a design matrix — pick a strategy (24P+aCompCor, ICA-AROMA, scrubbing) and use the corresponding subset.
|
|
226
|
+
8. **No skull-stripped T1w inputs** — fMRIPrep expects raw T1w. If skull-stripped, use `--skull-strip-t1w skip` (understand the risks) or revert to originals.
|
|
227
|
+
9. **Version pinning**: process an entire study with the *same* fMRIPrep version+container build. Do not upgrade mid-study.
|
|
228
|
+
10. **Datasets with lesions**: place `sub-XX/anat/sub-XX_label-lesion_roi.nii.gz` and add `*lesion_roi.nii.gz` to `.bidsignore` — enables lesion cost-function masking during registration.
|
|
229
|
+
11. **Apple Silicon Docker**: run under `--platform linux/amd64` (or `DOCKER_DEFAULT_PLATFORM=linux/amd64` when using `fmriprep-docker`); the container is only built for `linux-64`.
|
|
230
|
+
12. **Multi-echo two-echo data**: rejected since 25.2.4 — fMRIPrep requires ≥3 echoes for tedana T2* estimation.
|
|
231
|
+
13. **`--use-syn-sdc` requires anatomical space templates** to be present locally (`MNI152NLin2009cAsym`); pre-fetch or allow Internet.
|
|
232
|
+
14. **HPC + Singularity**: the FS license *and* a writeable `TEMPLATEFLOW_HOME` must be bind-mounted; login-node fetches templates before batch submission (compute nodes are usually offline).
|
|
233
|
+
|
|
234
|
+
## What This Skill Does Not Cover
|
|
235
|
+
|
|
236
|
+
- **Group-level statistics** — fMRIPrep is participant-level only. Use FitLins, Nilearn, SPM, FSL FEAT, etc. downstream.
|
|
237
|
+
- **Denoising strategy selection** — see [Ciric 2017](https://doi.org/10.1016/j.neuroimage.2017.03.020) and [Parkes 2018](https://doi.org/10.1016/j.neuroimage.2017.12.073); fMRIPrep only supplies regressors.
|
|
238
|
+
- **DWI, MEG, EEG** — different NiPreps apps (`dMRIPrep`, `MEGPrep`, planned).
|
|
239
|
+
- **Custom Nipype workflow edits** — for extension, read the API docs at https://fmriprep.readthedocs.io/en/latest/api.html.
|
|
240
|
+
|
|
241
|
+
## Where to Get Help
|
|
242
|
+
|
|
243
|
+
- Community Q&A: https://neurostars.org/tag/fmriprep (canonical support channel)
|
|
244
|
+
- Bug reports: https://github.com/nipreps/fmriprep/issues
|
|
245
|
+
- Full docs: https://fmriprep.org / https://fmriprep.readthedocs.io
|
|
246
|
+
- Sample HTML report: https://fmriprep.org/en/latest/_static/SampleReport/sample_report.html
|
|
247
|
+
|
|
248
|
+
## Verify Installation
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
fmriprep --version # bare-metal
|
|
252
|
+
docker run --rm nipreps/fmriprep:25.2.5 --version # Docker
|
|
253
|
+
apptainer run fmriprep-25.2.5.sif --version # Apptainer
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
Expected output form: `fMRIPrep vXX.Y.Z`.
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
# BIDS Filter File Reference
|
|
2
|
+
|
|
3
|
+
`--bids-filter-file FILE` lets you pass fMRIPrep a JSON file with custom
|
|
4
|
+
PyBIDS queries — the way to select input data on any BIDS entity that isn't
|
|
5
|
+
covered by `--participant-label`, `--session-label`, `--task-id`, or
|
|
6
|
+
`--echo-idx`.
|
|
7
|
+
|
|
8
|
+
## Table of Contents
|
|
9
|
+
1. [Syntax overview](#syntax-overview)
|
|
10
|
+
2. [Default filters (what fMRIPrep queries by default)](#default-filters-what-fmriprep-queries-by-default)
|
|
11
|
+
3. [Filter entity reference](#filter-entity-reference)
|
|
12
|
+
4. [Special values: `null` and `"*"`](#special-values-null-and-)
|
|
13
|
+
5. [Worked examples](#worked-examples)
|
|
14
|
+
6. [Combining with other flags](#combining-with-other-flags)
|
|
15
|
+
7. [Validating your filter](#validating-your-filter)
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Syntax overview
|
|
20
|
+
|
|
21
|
+
A single JSON object with a well-known set of top-level keys (the "query
|
|
22
|
+
names") — each maps to an entity-value dict. Only entries whose top-level
|
|
23
|
+
key matches a fMRIPrep query take effect.
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"<query_name>": {
|
|
28
|
+
"<bids_entity>": "<filter_value>",
|
|
29
|
+
...
|
|
30
|
+
},
|
|
31
|
+
...
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Common `query_name`s: `t1w`, `t2w`, `bold`, `flair`, `fmap`, `sbref`, `roi`.
|
|
36
|
+
|
|
37
|
+
Entity keys are PyBIDS entity names: `datatype`, `suffix`, `session`,
|
|
38
|
+
`acquisition`, `run`, `direction`, `reconstruction`, `subject`, `task`,
|
|
39
|
+
`echo`, `part`, etc. See the PyBIDS config:
|
|
40
|
+
https://github.com/bids-standard/pybids/blob/main/src/bids/layout/config/bids.json
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Default filters (what fMRIPrep queries by default)
|
|
45
|
+
|
|
46
|
+
If you don't pass a filter file, these are the built-in queries used by
|
|
47
|
+
fMRIPrep (from the official FAQ):
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"fmap": {"datatype": "fmap"},
|
|
52
|
+
"bold": {"datatype": "func", "suffix": "bold"},
|
|
53
|
+
"sbref": {"datatype": "func", "suffix": "sbref"},
|
|
54
|
+
"flair": {"datatype": "anat", "suffix": "FLAIR"},
|
|
55
|
+
"t2w": {"datatype": "anat", "suffix": "T2w"},
|
|
56
|
+
"t1w": {"datatype": "anat", "suffix": "T1w"},
|
|
57
|
+
"roi": {"datatype": "anat", "suffix": "roi"}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Note: fMRIPrep delegates data collection to
|
|
62
|
+
`niworkflows.utils.bids.collect_data`, which in current niworkflows versions
|
|
63
|
+
adds `"part": ["mag", None]` to `t1w`/`t2w`/`bold`/`sbref`/`flair` so complex
|
|
64
|
+
`part-phase` images are excluded automatically. If you need to keep `part-phase`
|
|
65
|
+
data (rare), override the query explicitly with your own filter file.
|
|
66
|
+
|
|
67
|
+
Any query you include in your file OVERRIDES the matching default entirely
|
|
68
|
+
(the merge is per-query, not per-entity). Only the queries you override change
|
|
69
|
+
— unspecified queries keep their defaults.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Filter entity reference
|
|
74
|
+
|
|
75
|
+
Values are compared to file entity values (all strings). Supports:
|
|
76
|
+
|
|
77
|
+
| Value | Meaning |
|
|
78
|
+
|-------|---------|
|
|
79
|
+
| `"01"`, `"rest"`, `"AP"`, ... | Literal string match |
|
|
80
|
+
| `["01", "02"]` | Match any of these values |
|
|
81
|
+
| `null` | Match files that have NO value for this entity |
|
|
82
|
+
| `"*"` | Match files with ANY non-empty value for this entity |
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Special values: `null` and `"*"`
|
|
87
|
+
|
|
88
|
+
`null` → PyBIDS `Query.NONE`: matches files without that entity in their name/metadata.
|
|
89
|
+
|
|
90
|
+
Use case: select the T1w that has no `acquisition-` tag when the dataset has
|
|
91
|
+
both `acq-original` and `acq-clean` variants.
|
|
92
|
+
|
|
93
|
+
```json
|
|
94
|
+
{"t1w": {"datatype": "anat", "suffix": "T1w", "acquisition": null}}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
`"*"` → PyBIDS `Query.ANY`: matches files where the entity is present with any value.
|
|
98
|
+
|
|
99
|
+
Use case: only include BOLD runs that have an explicit `run-` entity.
|
|
100
|
+
|
|
101
|
+
```json
|
|
102
|
+
{"bold": {"datatype": "func", "suffix": "bold", "run": "*"}}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Worked examples
|
|
108
|
+
|
|
109
|
+
### Session 02 T1w, session 02 BOLD (from the fMRIPrep docs FAQ)
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"t1w": {
|
|
114
|
+
"datatype": "anat",
|
|
115
|
+
"session": "02",
|
|
116
|
+
"acquisition": null,
|
|
117
|
+
"suffix": "T1w"
|
|
118
|
+
},
|
|
119
|
+
"bold": {
|
|
120
|
+
"datatype": "func",
|
|
121
|
+
"session": "02",
|
|
122
|
+
"suffix": "bold"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Note: `--session-label 02` is a simpler equivalent for the same result when
|
|
128
|
+
you don't need entity-level nuances.
|
|
129
|
+
|
|
130
|
+
### Only rest-task BOLD runs
|
|
131
|
+
|
|
132
|
+
```json
|
|
133
|
+
{
|
|
134
|
+
"bold": {"datatype": "func", "suffix": "bold", "task": "rest"}
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Equivalent to `--task-id rest`.
|
|
139
|
+
|
|
140
|
+
### Multiple acquisitions, but not "hurried"
|
|
141
|
+
|
|
142
|
+
```json
|
|
143
|
+
{
|
|
144
|
+
"bold": {
|
|
145
|
+
"datatype": "func",
|
|
146
|
+
"suffix": "bold",
|
|
147
|
+
"acquisition": ["mb4", "mb8"]
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Or exclude a specific value — PyBIDS doesn't have a "not equal" match; use
|
|
153
|
+
`--force-index`/`--ignore` or `.bidsignore` for exclusion patterns.
|
|
154
|
+
|
|
155
|
+
### Preferred T1w by reconstruction
|
|
156
|
+
|
|
157
|
+
Dataset has `rec-defaced` and `rec-original` T1w — pick original:
|
|
158
|
+
|
|
159
|
+
```json
|
|
160
|
+
{
|
|
161
|
+
"t1w": {
|
|
162
|
+
"datatype": "anat",
|
|
163
|
+
"suffix": "T1w",
|
|
164
|
+
"reconstruction": "original"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### AP-direction PEPOLAR EPIs only (both dirs would confuse SDC selection)
|
|
170
|
+
|
|
171
|
+
```json
|
|
172
|
+
{
|
|
173
|
+
"fmap": {"datatype": "fmap", "direction": "AP"}
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Multi-echo dataset, restrict to echo 2 for tests
|
|
178
|
+
|
|
179
|
+
```json
|
|
180
|
+
{
|
|
181
|
+
"bold": {"datatype": "func", "suffix": "bold", "echo": "2"}
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
(Or use `--echo-idx 2`.)
|
|
186
|
+
|
|
187
|
+
### Only runs with a matching sbref
|
|
188
|
+
|
|
189
|
+
Two-query filter: require BOTH BOLD and its sbref to have `run` entity.
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"bold": {"datatype": "func", "suffix": "bold", "run": "*"},
|
|
194
|
+
"sbref": {"datatype": "func", "suffix": "sbref", "run": "*"}
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Only session that DOESN'T have `acq-` tag on the T1w
|
|
199
|
+
|
|
200
|
+
```json
|
|
201
|
+
{
|
|
202
|
+
"t1w": {
|
|
203
|
+
"datatype": "anat",
|
|
204
|
+
"suffix": "T1w",
|
|
205
|
+
"acquisition": null
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Combining with other flags
|
|
213
|
+
|
|
214
|
+
The filter file is applied on top of `--participant-label` / `--session-label`
|
|
215
|
+
/ `--task-id` / `--echo-idx`. Order of operations:
|
|
216
|
+
|
|
217
|
+
1. `--participant-label` restricts the subjects that get processed.
|
|
218
|
+
2. Within each subject, PyBIDS queries (default OR overridden by your filter)
|
|
219
|
+
run against the subject's files.
|
|
220
|
+
3. `--task-id`, `--session-label`, `--echo-idx` further filter the BOLD query
|
|
221
|
+
*after* the filter file is applied.
|
|
222
|
+
|
|
223
|
+
So `--task-id rest --bids-filter-file f.json` with a filter of
|
|
224
|
+
`{"bold": {"acquisition": "mb4"}}` yields BOLD files with
|
|
225
|
+
`task-rest AND acq-mb4`.
|
|
226
|
+
|
|
227
|
+
Also consider:
|
|
228
|
+
|
|
229
|
+
- `--bids-database-dir /path/to/db` — pre-computed PyBIDS SQLite index.
|
|
230
|
+
Speeds up filtering for large datasets. Create with:
|
|
231
|
+
```bash
|
|
232
|
+
pybids layout <bids_root> <db_dir> --no-validate --index-metadata
|
|
233
|
+
```
|
|
234
|
+
- `--ignore` (fMRIPrep-level, disables aspects of processing) or
|
|
235
|
+
`.bidsignore` at the dataset root (excludes files from PyBIDS/bids-validator
|
|
236
|
+
altogether) — for finer control over what files reach the pipeline. Note:
|
|
237
|
+
the `--force-index` PyBIDS flag is *not* exposed by fMRIPrep's CLI despite
|
|
238
|
+
older docs referencing it; use `.bidsignore` instead.
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## Validating your filter
|
|
243
|
+
|
|
244
|
+
Before running fMRIPrep, test the filter with PyBIDS in Python:
|
|
245
|
+
|
|
246
|
+
```python
|
|
247
|
+
from bids import BIDSLayout
|
|
248
|
+
from bids.layout import Query
|
|
249
|
+
import json
|
|
250
|
+
|
|
251
|
+
layout = BIDSLayout("/data/bids", validate=False)
|
|
252
|
+
|
|
253
|
+
with open("my_filter.json") as f:
|
|
254
|
+
filters = json.load(f)
|
|
255
|
+
|
|
256
|
+
# Replace None → Query.NONE, "*" → Query.ANY
|
|
257
|
+
def clean(d):
|
|
258
|
+
return {k: (Query.NONE if v is None else Query.ANY if v == "*" else v)
|
|
259
|
+
for k, v in d.items()}
|
|
260
|
+
|
|
261
|
+
for query_name, query in filters.items():
|
|
262
|
+
print(f"\n=== {query_name} ===")
|
|
263
|
+
files = layout.get(**clean(query))
|
|
264
|
+
for f in files[:5]:
|
|
265
|
+
print(f.path)
|
|
266
|
+
print(f"... ({len(files)} total)")
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Iterate on your filter until the file lists look right, THEN pass it to fMRIPrep.
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## Common pitfalls
|
|
274
|
+
|
|
275
|
+
1. **Wrong query key** — a top-level key that isn't in `{t1w, t2w, bold, flair, fmap, sbref, roi}` is silently ignored. Watch spelling.
|
|
276
|
+
2. **`suffix` vs `datatype`** — `suffix` is the final `_bold`/`_T1w` label; `datatype` is the folder (`func`/`anat`/`fmap`). Provide both when overriding.
|
|
277
|
+
3. **PyBIDS entity vs metadata key** — `session`, `acquisition`, etc. are entities (folder/filename); metadata (e.g., `RepetitionTime`) is NOT filterable via `--bids-filter-file` — use `--force-index`/`--ignore` or `.bidsignore`.
|
|
278
|
+
4. **JSON quoting** — `null` is unquoted; `"*"` is a quoted string.
|
|
279
|
+
5. **Path separator** — On Windows, use forward slashes in your JSON paths.
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## Reference
|
|
284
|
+
|
|
285
|
+
- fMRIPrep FAQ on filter files: https://fmriprep.readthedocs.io/en/latest/faq.html#how-do-I-select-only-certain-files-to-be-input-to-fMRIPrep
|
|
286
|
+
- PyBIDS entity dictionary: https://github.com/bids-standard/pybids/blob/main/src/bids/layout/config/bids.json
|
|
287
|
+
- BIDS entity table: https://bids-specification.readthedocs.io/en/stable/appendices/entity-table.html
|