Upgrading from 26.0

26.1 reorganized the command line. Options are now grouped by decision in --help, several were renamed, and options whose settings moved into a configuration file were removed. Run qsiprep --help or see Command-line reference for the current list.

Removed or renamed options

In 26.0

In 26.1

PR

--session-id

--session-label

#1136

--dwi-only

--anat-modality none

#1145

--dwi-no-biascorr, --b1-biascorrect-stage

--dwi-biascorrect none (or n4, auto)

#1145, #1144

--fs-license-file

Removed. No FreeSurfer license is needed.

#1145

--dwi-denoise-window

--dwidenoise-window

#1149

--denoise-after-combining

Removed. Series are always denoised before concatenation.

#1146

--anat-only

Removed.

#1151

--hmc-model eddy

--hmc-method eddy

#1105

--hmc-model none, 3dSHORE or tensor

--hmc-method shoreline, with the model in --shoreline-config

#1105, #1140

--hmc-transform, --shoreline-iters

--shoreline-config (a JSON file; see Configuring SHORELine)

#1140

--pepolar-method

--sdc-method

#1140

--force-syn, --use-syn-sdc

--sdc-fieldmapless-method syn --sdc-anat-reference invt1w, with --force sdc-anat-reference to override fieldmaps

#1111

--b0-to-t1w-transform

--dwi2anat-dof 6 (rigid) or 12 (affine)

#1144

--intramodal-template-iters, --intramodal-template-transform

--dwiref-definition subject with --dwiref-construction-iters and --dwiref-construction-transform

#1144

--longitudinal

--subject-anatomical-reference unbiased

#1126

--subject-anatomical-reference first-alphabetically

--subject-anatomical-reference first-lex

#1157

--b0-motion-corr-to, --fmap-no-demean, --fmap-bspline

Removed.

#1124, #1130, #1131

--output-resolution 2

--output-spaces acpc:res-2mm MNI152NLin2009cAsym

#1127

--output-resolution 1.5

--output-spaces acpc:res-1p5mm MNI152NLin2009cAsym

#1127

--output-resolution 2 --infant

--infant --output-spaces acpc:res-2mm MNIInfant:cohort-auto

#1127

--anatomical-template

List the template in --output-spaces

#1127

--skip-anat-based-spatial-normalization

Request no standard space, as in --output-spaces acpc:res-2mm

#1127

Keep --infant when moving to --output-spaces: besides adding MNIInfant:cohort-auto, it narrows the autobox padding and requires --subject-anatomical-reference sessionwise, so dropping it changes the results. It does not change --anat-modality. Because --infant always requests an infant template, the old --infant --skip-anat-based-spatial-normalization combination, which wrote no standard space, has no equivalent.

New options

  • --output-spaces: the DWI spaces and resolutions for the preprocessed DWI (acpc, anat and dwiref, at a physical size, res-native, res-nativemin or res-nativemax), and any number of TemplateFlow template spaces for the transforms and anatomical derivatives, with cohort-auto age-based cohort selection (Output spaces and resolutions). It is optional and defaults to acpc:res-nativemin.

  • --hmc-method tortoise and --diffprep-config: TORTOISE DIFFPREP head motion and eddy-current correction (TORTOISE DIFFPREP).

  • --sdc-method: topup, drbuddi or topup+drbuddi for reverse phase-encoded data (Susceptibility distortion correction).

  • --sdc-fieldmapless-method (topup, syn, unpile) and --sdc-anat-reference (synb0, invt1w, t2w, none): the correction for series no fieldmap reaches, and --force sdc-anat-reference to use it for every series (Susceptibility distortion correction).

  • --force one-pass-sdc: drops the second pass of SynB0 + TOPUP (with every head motion method) and of GRE fieldmap registration.

  • --gradient-file, --force gradwarp1D/gradwarp3D, --ignore gradwarp: gradient nonlinearity correction (Gradient nonlinearity correction).

  • --ignore jacobian: intensity modulation after distortion correction (Intensity modulation).

  • --gpu and --tortoise-gpu-cpu-ratio: per-task GPU selection, replacing use_cuda in the configuration files.

  • --denoise-method dwidenoise2, --denoise-method svht, --unringing-method svht and --denoise-config.

  • --mrtrix-version: use the MRtrix3 development branch.

  • --anat-biascorrect, --report-output-level, --ignore pepolar-dwis, --ignore sdc, --ignore shims, --ignore fov.

Behavior changes

  • Grouping is done by qsiplan. The rules for which scans estimate a fieldmap, which fieldmap corrects which scan and which scans are concatenated are now shared with the standalone qsiplan tool, and every decision is reported with its provenance. B0FieldIdentifier and B0FieldSource are supported, and BIDS URIs work in IntendedFor. Inconsistent metadata that used to be silently worked around now stops the run with a named error (Grouping and metadata errors).

  • Separately corrected halves are concatenated by default. --distortion-group-merge now defaults to concat instead of none: a reverse phase-encoded pair whose halves are corrected separately, as they are with --hmc-method tortoise, is written as one output rather than one per phase-encoding direction. Pass --distortion-group-merge none for the 26.0 behavior (Grouping and concatenation).

  • GRE fieldmaps go into eddy. With --hmc-method eddy, a GRE fieldmap is passed to eddy and applied inside its model rather than to its outputs. --force gre-sdc-after-eddy restores the old behavior for comparison and is deprecated.

  • Fieldmap-less correction is still off by default, but the flags changed. --use-syn-sdc is gone; --sdc-anat-reference synb0 turns the correction on, and --sdc-fieldmapless-method picks it: SynB0 + TOPUP (the default, with every head motion method: before eddy, after DIFFPREP or SHORELine), syn for the old SyN registration, or unpile, which is experimental, against the synthetic b=0 or the T2w (--sdc-anat-reference t2w, unpile). Once requested, a series the correction cannot handle (no T1w, no PhaseEncodingDirection or TotalReadoutTime) stops the run with an error. A T2w no longer selects a correction by itself.

  • A GRE fieldmap initializes DRBUDDI, and is unpile’s prior, when a series is also corrected by reverse phase encoding or by a forced fieldmap-less correction (Starting DRBUDDI and unpile from a GRE fieldmap).

  • Intensity modulation after distortion correction is now applied by QSIPrep for the corrections it resamples itself, and written as a derivative.

  • Distortion correction displacement maps are written for inspection.

  • GRE fieldmaps no longer use FSL. Phase unwrapping and fieldmap application use niimath’s ROMEO implementation instead of PRELUDE and FUGUE.

  • SHORELine is deprecated and prints a removal notice.

  • Output resolution. Without --output-spaces the preprocessed DWI is written at acpc:res-nativemin, the smallest voxel dimension of each output’s own runs, and named space-ACPC_res-nativemin. Every output on a DWI grid carries its res- entity, even with one resolution, so QSIRecon must select ACPC outputs by res-. res-native, the runs’ own voxel size, stops the run for an output that combines runs of different voxel sizes.

  • Anatomical derivatives at the anatomical’s voxel size. The space-ACPC anatomicals, the subject dwiref template in ACPC, and the anatomicals of a template listed without a TemplateFlow res- label are written at the anatomical’s own voxel size, on the template’s field of view, instead of on the template’s 1 mm grid. Filenames are unchanged, and so is the content for a 1 mm isotropic anatomical. The anatomicals the DWI is registered to are unchanged.

  • Output naming follows fMRIPrep 26.0 for the coregistration reference: space-distortiongroup or space-subject on the reference image and desc-coreg on the transforms (Transforms).