anchor.diff:  # ANTS (https://github.com/stnava/ANTs)
   #-------------------------------------------------------------------------------
   RUN \
  -    if [ ! -e $SOFT/ants ]; then \
  -        mkdir ants && \
  -        cd ants && \
  -        git clone https://github.com/stnava/ANTs.git -b $ANTS_VERSION  && \
  -        mkdir build && \
  -        cd build && \
  -        cmake -DUSE_VTK=ON -DUSE_SYSTEM_VTK=ON -DVTK_DIR=$HOME/vtk/build && \
  -        make -j $N_CPUS && \
  -        make install && \
  -        cd ../..; \
  -    fi
  +    mkdir ants && \
  +    cd ants && \
  +    git clone https://github.com/stnava/ANTs.git -b $ANTS_VERSION  && \
  +    mkdir build && \
  +    cd build && \
  +    cmake -DUSE_VTK=ON -DUSE_SYSTEM_VTK=ON -DVTK_DIR=$HOME/vtk/build && \
  +    make -j $N_CPUS && \
  +    make install && \
  +    cd ../..; \
   
   RUN \
       echo "export ANTSPATH=${HOME}/ants/build/bin" >> $BASHRC
  
positive.code: 
  # SimpleITK
  RUN \
      if [ ! -e  $SOFT/simpleitk ]; then \
          mkdir simpleitk && \
          cd simpleitk && \
          git clone --recursive http://itk.org/SimpleITK.git -b $SIMPLEITK_VERSION && \
          mkdir build && \
          cd build && \
          cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.5 -DPYTHON_INCLUDE_DIR=/usr/include/x86_64-linux-gnu/python3.5m -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.5m.so.1 -DWRAP_JAVA=OFF -DWRAP_CSHARP=OFF -DWRAP_RUBY=OFF ../SimpleITK/SuperBuild && \
          make -j $N_CPUS && \
          cd ../..; \
      fi
  
  RUN echo "addlibpath $pwd/simpleitk/build/lib" >> $BASHRC
  
  
negative.code: # PETPVC (https://github.com/UCL/PETPVC)
  #-------------------------------------------------------------------------------
  RUN \
      mkdir petpvc && \
      cd petpvc && \
      git clone https://github.com/UCL/PETPVC.git -b $PETPVC_VERSION && \
      mkdir build && \
      cd build && \
      cmake -DITK_DIR=$HOME/ants/build/ITKv4-build && \
      make -j $N_CPUS && \
      cd ../..; \
  
  RUN echo "addapath $HOME/petpvc/build/src" >> $BASHRC
  
  