My first guess is that ants is not installed on the machine/environment you’re running nipype on. inside the jupyter notebook if you type in a cell !which antsApplyTransforms, I’m hypothesizing the output will be empty meaning your environment does not have access to ants commands.
Assumption: using mac or linux
The solution will be to install ants or through neurodebian, and then make sure the binaries (such as antsApplyTransforms) is accessible through your $PATH variable. (what’s a $PATH variable?)
I do not know an official ants docker container, but one should be able to make one with neurodocker or manually making your own docker image one of the neurodebian images as a base
The dockerfile may look something like this:
FROM neurodebian:xenial
RUN apt-get update && \
apt-get install -y --no-install-recommends ants
(or something like that, I’m pretty sure it’s neurodebian:xenial, not neurodebian/xenial)
But if you also like to run jupyter and nipype, you would need to install that too in the container (which means it may be easier to use neurodocker)