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.
Generate a starting config
Section titled “Generate a starting config”qsmxt init > pipeline.tomlqsmxt init writes a configuration pre-populated with the default settings,
ready to edit. Run qsmxt init --help for options.
Use it
Section titled “Use it”qsmxt run study/bids --config pipeline.tomlCommand-line flags take precedence over values in the file, so you can keep a base config and override individual settings per run:
qsmxt run study/bids --config pipeline.toml --qsm-algorithm tgvWhat’s in it
Section titled “What’s in it”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.
Validate before you run
Section titled “Validate before you run”qsmxt validate study/bidsvalidate checks that your dataset has the phase/magnitude pairs and sidecar
metadata the pipeline needs, so problems surface before a long run starts.