predict_ppa_venv.sh 370 B

123456789101112131415161718
  1. #!/bin/sh
  2. indir=$1
  3. model=$2
  4. nfeat=$3
  5. niter=$4
  6. # activate the virtual environment
  7. . code/localpython/venv/python37/bin/activate
  8. # FSL v5.0.9 directory
  9. FSLDIR=~/fsl
  10. . ${FSLDIR}/etc/fslconf/fsl.sh
  11. PATH=${FSLDIR}/bin:${PATH}
  12. export FSLDIR PATH
  13. . ${FSLDIR}/etc/fslconf/fsl.sh
  14. # call the script
  15. ./code/predict_ppa.py -indir $indir -model $model -nfeat $nfeat -niter $niter