-
-
Notifications
You must be signed in to change notification settings - Fork 381
Command line parsing issues
This page lists some known issues with ANTs command line parsing.
Bash and related shells interpret arguments containing square brackets as a pattern, and attempt to perform filename expansion. This creates a problem if there is a file matching one of the characters in the brackets. For example, the argument -c [100x100x100]
passed to antsRegistration
will be incorrect if a file named "1", "0", or "x" exists in the current working directory.
The easiest way to avoid glob problems is to include white space inside the square brackets in ANTs parameters when calling ANTs executables. For example -c [ 100x100x100 ]
or -t SyN[ 0.1 ]
passed to antsRegistration
.
Script arguments with spaced brackets should be quoted, for example antsCorticalThickness -c "WM[ 4 ]"
.
ANTs scripts have been updated to avoid unwanted filename expansion (f154285).
This should not be a problem any longer but may affect older versions. Multiple extensions, or even just periods, in file names used to cause errors. Some known issues have been fixed (for example 568 and 658).