anchor.diff:      aws s3 cp --no-sign-request s3://mrneurodata/resources/ndmg_atlases.zip ./ && \
       unzip ndmg_atlases.zip
   
  +RUN mkdir /data && \
  +    chmod -R 777 /data
  +
  +ENV MPLCONFIGDIR /tmp/matplotlib
  +ENV PYTHONWARNINGS ignore
   
   # copy over the entrypoint script
  -COPY ./startfngs.sh /
   ADD ./.vimrc .vimrc
  +RUN ldconfig
  +RUN chmod -R 777 /usr/local/bin/ndmg_bids
   
   # and add it as an entrypoint
   ENTRYPOINT ["ndmg_bids"]
  
positive.code:     libs_path=/usr/lib/x86_64-linux-gnu && \
      if [ -f $libs_path/libgsl.so.19 ]; then \
             ln $libs_path/libgsl.so.19 $libs_path/libgsl.so.0; \
      fi && \
      echo "Install libxp (not in all ubuntu/debian repositories)" && \
      apt-get install -yq --no-install-recommends libxp6 \
      || /bin/bash -c " \
         curl --retry 5 -o /tmp/libxp6.deb -sSL \
  
negative.code: #--------NDMG SETUP-----------------------------------------------------------#
  # setup of python dependencies for ndmg itself, as well as file dependencies
  RUN \
      pip install numpy networkx>=1.11 nibabel>=2.0 dipy>=0.1 scipy \
      python-dateutil==2.6.1 boto3 awscli matplotlib==1.5.3 plotly==1.12.9 nilearn>=0.2 sklearn>=0.0 \
      pandas cython pyvtk awscli requests==2.5.3 scikit-image pybids
  
  RUN \
      git clone -b merge-dmri-fmri $NDMG_URL /ndmg && \
      cd /ndmg && \
      python setup.py install 
  
  