TORTOISE DIFFPREP
qsiprep.workflows.dwi.diffprep.init_diffprep_hmc_wf()
--hmc-method tortoise runs DIFFPREP from TORTOISE v4
[1]. DIFFPREP fits a signal model over arbitrary
q-space, so it does not need shells: it is the method for Cartesian DSI,
compressed-sensing DSI and other non-shelled schemes, and it works on shelled
data too. It corrects rigid head motion together with eddy currents, using a
24-parameter quadratic transform by default.
What runs
The concatenated series is converted to TORTOISE’s format.
If the unit contains more than one phase encoding direction, the series is split by distortion group, because one DIFFPREP run models one phase axis for the whole file. DIFFPREP runs once per group.
DIFFPREP fits a SHORE/MAPMRI model, iteratively registers each volume to the model’s prediction, and writes the corrected volumes with the rotated b-matrix.
Susceptibility distortion is corrected with TORTOISE’s own tools where they apply (below), and the groups are recombined.
Like eddy, DIFFPREP writes its own corrected volumes, so the output is
interpolated twice. The eddy-current Jacobian modulation of the DIFFPREP
transform is applied by QSIPrep at the final resampling (see
Intensity modulation), and the per-volume eddy parameters go to the
confounds file. The per-slice model fit is shown in the carpet plot.
(Source code, png, svg, pdf)
Distortion correction cases
Reverse phase encoding (DRBUDDI). After DIFFPREP has corrected each
phase encoding direction, DRBUDDI [2] estimates the field
from the two directions and applies it to every volume. It is described in
DRBUDDI; a T2w, if present, is included in its registration. For
non-shelled data, DRBUDDI’s tensor fit for its registration target may be
poor; set "drbuddi_synth_shell_bval" (for example 1000) in
--diffprep-config to have TORTOISE synthesize a tensor-fittable shell
per phase encoding direction from the model.
GRE fieldmap. The fieldmap is applied to DIFFPREP’s output by QSIPrep’s fieldmap workflow (see GRE fieldmaps).
SynB0 + TOPUP (with --sdc-anat-reference synb0, the default fieldmap-less
method). A synthetic b=0 is generated
from DIFFPREP’s motion-corrected b=0 average and the T1w, TOPUP pairs the two,
and the field is applied at the final resampling (SynB0).
By default the synthetic b=0 is then generated again from the b=0 the first field
unwarped, and TOPUP runs again; --force one-pass-sdc skips this second pass.
unpile (--sdc-fieldmapless-method unpile) fits the field from
DIFFPREP’s motion-corrected b=0 and the T2w (--sdc-anat-reference t2w) or
the synthetic b=0 (synb0), and the field is applied at the final
resampling (unpile). When it is forced over a GRE fieldmap
(--force sdc-anat-reference), the GRE field is the prior of the fit
(Starting DRBUDDI and unpile from a GRE fieldmap).
SyN (--sdc-fieldmapless-method syn) is applied to DIFFPREP’s output, as
with eddy.
Configuring DIFFPREP
--diffprep-config is a JSON file; the default is diffprep_params.json.
Key |
Meaning |
|---|---|
|
|
|
b-value of a shell to synthesize for DRBUDDI’s registration target
( |
|
Passed through to DIFFPREP. |
|
A list of extra command-line arguments for DIFFPREP. |
|
Run the GPU build. |
--tortoise-gpu-cpu-ratio tunes how DIFFPREP shares volumes between the
GPU and the CPU threads when both are used.
Limitations
GE gradient coefficient files are not accepted (see Gradient coefficient files).
--sdc-method topupandtopup+drbuddiare not available; TOPUP is aneddytool.