Skip to content

Commit

Permalink
use latest compilation of ANTs
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Mar 28, 2016
1 parent 1b86711 commit 1216bc0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
8 changes: 5 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
dependencies:
cache_directories:
- "~/examples/"
- "~/.apt-cache"
- "~/.apt-cache/"
- "~/.local/"
- "~/downloads/"
- "~/workdir"
pre:
# Let CircleCI cache the apt archive
Expand All @@ -11,14 +13,14 @@ dependencies:
- sudo apt-get update
- bash ./circle_setup.sh
override:
- sudo apt-get install -y fsl-core fsl-atlases fsl-mni152-templates afni ants
- sudo ln -sf $HOME/local/ants/* /usr/local/bin/
- sudo apt-get install -y fsl-core fsl-atlases fsl-mni152-templates afni
- sudo ln -sf /usr/lib/ants/N4BiasFieldCorrection /usr/local/bin/
- echo "source /etc/fsl/fsl.sh" >> $HOME/.profile
- echo "source /etc/afni/afni.sh" >> $HOME/.profile
- pip install --upgrade pip
- pip install numpy
- pip install sphinx sphinx-autobuild
- yes s | pip install -e git+https://github.com/oesteban/nipype@exp/mriqc#egg=nipype
- pip install -r requirements.txt
- pip install -e .
machine:
Expand Down
8 changes: 8 additions & 0 deletions circle_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ if [[ ! -d ${HOME}/examples/ds003_downsampled ]]; then
tar xf ${HOME}/downloads/ds003_downsampled.tar -C ${HOME}/examples
fi

if [[ ! -d ${HOME}/local/ants ]]; then
mkdir -p ${HOME}/downloads
wget -c -O ${HOME}/downloads/ants.tar.bz2 "https://2a353b13e8d2d9ac21ce543b7064482f771ce658.googledrive.com/host/0BxI12kyv2olZVFhUcGVpYWF3R3c/ANTs-Linux_Ubuntu14.04.tar.bz2"
mkdir -p ${HOME}/local/ants
tar xjf ${HOME}/downloads/ants.tar.bz2 -C ${HOME}/local/
mv ${HOME}/local/ANTs.2.1.0.Debian-Ubuntu_X64 ${HOME}/local/ants
fi

mkdir -p ~/examples/ds003_sub-01
ln -fs ~/examples/ds003_downsampled/sub-01 ~/examples/ds003_sub-01/
echo "{plugin: MultiProc, plugin_args: {n_proc: 4}}" > ~/examples/plugin.yml
Expand Down

0 comments on commit 1216bc0

Please sign in to comment.