Skip to content
QSMxT v9 is a ground-up rewrite in Rust. Coming from the Python version (8.x)? See what changed →

Configuration

Anything you can set on the qsmxt run command line can also live in a TOML configuration file. A config file makes runs reproducible and is the cleanest way to drive batch and HPC processing.

Terminal window
qsmxt init > pipeline.toml

qsmxt init writes a configuration pre-populated with the default settings, ready to edit. Run qsmxt init --help for options.

Terminal window
qsmxt run study/bids --config pipeline.toml

Command-line flags take precedence over values in the file, so you can keep a base config and override individual settings per run:

Terminal window
qsmxt run study/bids --config pipeline.toml --qsm-algorithm tgv

The configuration captures the choice of algorithm at each pipeline stage along with that algorithm’s parameters — masking, phase-offset removal, unwrapping, background-field removal, dipole inversion, and referencing. Because each algorithm has its own parameters, the config is the place to tune things like regularisation weights and iteration counts that aren’t exposed as top-level flags.

Terminal window
qsmxt validate study/bids

validate checks that your dataset has the phase/magnitude pairs and sidecar metadata the pipeline needs, so problems surface before a long run starts.