How floristijhuis/neuro-utils works
neuro-utils is a small command-line wrapper that reads one project YAML, selects BIDS subjects and sessions, then runs native FreeSurfer or containerized fMRIPrep/MRIQC and places outputs in derivatives. Its main stages are configuration and selection, tool-specific command preparation, optional scratch staging, execution, and output cleanup or retention on failure. The graph distinguishes participant and group MRIQC workflows and FreeSurfer reuse. Relationships are based on the shown source and README; unsampled configuration and capabilities are not expanded beyond documented behavior.
Main entry points: cli.py Command entry · nipreps.py Container jobs · staging.py BIDS staging · freesurfer.py FreeSurfer workflow
Components 17
CLI and configuration
- Command entry
neuro_utils/cli.py - Project config
neuro_utils/config.py - Subject selection
neuro_utils/cli.py
Processing workflows
- FreeSurfer workflow
neuro_utils/freesurfer.py - fMRIPrep workflow
neuro_utils/nipreps.py - MRIQC participant
neuro_utils/nipreps.py - MRIQC group
neuro_utils/nipreps.py
Execution and staging
- BIDS staging
neuro_utils/staging.py - Container jobs
neuro_utils/nipreps.py - Docker commands
neuro_utils/containers.py
Dataset locations
- BIDS dataset
- Derivatives
- Scratch workspace
Other components
- CLI user
- Project YAML
- recon-all
- Docker daemon
Connections 25
- CLI user → Command entry: runs command
README.md - Command entry → Project config: loads YAML
neuro_utils/cli.py - Project YAML → Project config: configures project
README.md - Command entry → Subject selection: resolves subjects
neuro_utils/cli.py - Subject selection → BIDS dataset: lists subjects
neuro_utils/cli.py - Command entry → FreeSurfer workflow: dispatches
neuro_utils/cli.py - Command entry → fMRIPrep workflow: dispatches
neuro_utils/cli.py - Command entry → MRIQC participant: dispatches
neuro_utils/cli.py - Command entry → MRIQC group: dispatches
neuro_utils/cli.py - FreeSurfer workflow → recon-all: runs recon-all
neuro_utils/freesurfer.py - FreeSurfer workflow → BIDS staging: copies outputs
neuro_utils/freesurfer.py - fMRIPrep workflow → Container jobs: prepares job
neuro_utils/nipreps.py - MRIQC participant → Container jobs: prepares job
neuro_utils/nipreps.py - MRIQC group → Container jobs: prepares job
neuro_utils/nipreps.py - Container jobs → Docker commands: builds and runs
neuro_utils/nipreps.py - Docker commands → Docker daemon: invokes Docker
neuro_utils/containers.py - fMRIPrep workflow → BIDS staging: stages BIDS and FreeSurfer
neuro_utils/nipreps.py - MRIQC participant → BIDS staging: stages BIDS
neuro_utils/nipreps.py - MRIQC group → BIDS staging: stages BIDS and reports
neuro_utils/nipreps.py - BIDS staging → BIDS dataset: copies selected data
neuro_utils/staging.py - BIDS staging → Scratch workspace: writes workspace
neuro_utils/staging.py - FreeSurfer workflow → BIDS dataset: selects T1w
neuro_utils/freesurfer.py - FreeSurfer workflow → Derivatives: writes reconstructions
neuro_utils/freesurfer.py - Container jobs → Derivatives: publishes outputs
neuro_utils/nipreps.py - Container jobs → Scratch workspace: uses work area
neuro_utils/nipreps.py