Skip to main content

Troubleshooting

Table 1 lists common problems, their likely causes and remedies. A quality-assurance checklist follows.

Table 1

Common Problems, Causes and Remedies

SymptomLikely causeRemedy
Warped atlas displaced anteriorly or posteriorlyPoor T1 → MNI registration, or mismatched coverage (skull-stripped participant image with a whole-head template)Check brain extraction; use the brain template; overlay the warped template on the T1 before warping labels
Left and right appear reversedIncorrect transform, header orientation error, mislabelled hemisphereCheck with fslorient and fslhd; overlay known asymmetric anatomy
Atlas mask empty after warpingThreshold too strict after linear interpolation, or grid mismatchInspect the probability map before thresholding; derive a 25% map from the _overlap_prop file (downloads page); warp the binary map with nearest-neighbour interpolation
Mask includes ventricle or gray matterRegistration error or excessive dilationReduce dilation; inspect in native space
VTA in the cerebral peduncle or ponsLocal registration failureRerun registration for the participant; consider a midbrain-weighted mask via -x
tckgen reaches far fewer streamlines than the targetCutoff too high for the field strength; corridor too narrow; seed or target disconnected from the corridorRun the pilot sweep; confirm the seed and target lie within the inclusion zone; try a 25% map derived from the _overlap_prop file, or one additional voxel of dilation
Tract appears thick at a permissive cutoffExpected before cleaningCompare cleaned bundles; if still thick, reduce dilation
Cleaning removes nearly all streamlinesTwo bundles cleaned as one, or a sparse raw tractApply the QuickBundles division; check the raw streamline count
Profile endpoints reversed in some participantsOrientation failedAssign node 0 by the seed region; check centroid orientation per participant
Whole-tract NDI implausibly high or lowGrid mismatch, partial volume, global tissue differencesConfirm a common grid; add a whole-white-matter NDI covariate; inspect the overlay
AMICO FileNotFoundError during parallel runsKernel directory regenerated by every jobGenerate kernels once on one participant before starting the pool
pip install pyAFQ fails on zippOutdated system packagepip install --user --upgrade zipp
Coverage audit flags every corridor as too smallCorridors are below 1% of brain volume by designRaise the threshold or disregard the flag

Note. MNI = Montreal Neurological Institute; VTA = ventral tegmental area; NDI = neurite density index.

Symptoms that appear at Step 1 or Step 2 often originate upstream, in the brain mask, the skull strip or the T1-to-diffusion transform; those steps are documented in the Diffusion MRI Preprocessing tutorial.

Quality-assurance checklist​

  • Record atlas version, threshold, dilation, interpolation, transforms, cutoff, scalar maps, covariates and software versions.
  • Inspect the atlas in MNI space before warping.
  • Inspect every warped region over the T1 and diffusion images.
  • Check voxel counts and volumes after warping.
  • Save at least one overlay image per participant and step.
  • Inspect streamlines in native space and compare with the atlas in MNI space.
  • Verify node ordering and coverage.
  • Check missingness by tract and participant before group models.