Skip to content
Philip Cook edited this page Apr 14, 2024 · 24 revisions

Welcome to the ANTs wiki!

See an overview of our answers to frequently asked questions and commonly requested examples here.

Searching the wiki

The search bar on the right searches page titles and headings. For a full-text search of the wiki, use the main Github search bar at the top of the page, and select "in this repository". It will search for your terms in code, issues, and wiki pages.

Installing ANTs

There are several options to install ANTs.

Binaries

Release binaries are available for Mac, Linux, and Windows: see the binary installation instructions.

ANTs since 2.4.4 is available via Conda, thanks to Ghislain Vaillant.

Docker

Docker images are available on DockerHub.

If you are using Docker Desktop, you will probably want to increase the default RAM available to docker, see the documentation for Mac | Windows | Linux.

Compiling from source

To build and install ANTs from source, see compiling ANTs on Linux / Mac or compiling ANTs on Windows. The Windows compilation instructions have not been updated in some time, and may be out of date. Please open an issue with any proposed changes.

Using ANTs

A recommended call to antsCorticalThickness.sh:

antsCorticalThickness.sh -d $dim \
  -a $img \
  -e ${TEMPLATE_DIR}T_template0.nii.gz \
  -t ${TEMPLATE_DIR}T_template0_BrainCerebellum.nii.gz \
  -f ${TEMPLATE_DIR}T_template0_BrainCerebellumExtractionMask.nii.gz \
  -m ${TEMPLATE_DIR}T_template0_BrainCerebellumProbabilityMask.nii.gz \
  -p ${TEMPLATE_DIR}Priors/priors%d.nii.gz \
  -z 0 -x 25 -g 1 -k 1 \
  -o ${OUT_DIR}/${outname}/${outname}_

Fast pairwise deformable registration:

antsRegistrationSyNQuick.sh \
    -d 3 \
    -t s \
    -f fixed.nii.gz \
    -m moving.nii.gz \
    -o movingToFixed | tee myRegOutput.txt

If you run antsRegistrationSyNQuick.sh or antsRegistrationSyN.sh, it will print the full ANTs command, which you can further modify. In the above example, the command (and its output) will be stored in myRegOutput.txt as well as being printed to the screen.