-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain
More file actions
42 lines (32 loc) · 697 Bytes
/
main
File metadata and controls
42 lines (32 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#PBS -k o
#PBS -l nodes=1:ppn=16,vmem=32gb,walltime=08:00:00
[ $PBS_O_WORKDIR ] && cd $PBS_O_WORKDIR
export SINGULARITYENV_WORKDIR=$(pwd)
## modules
echo "Loading modules"
module unload python
module load dipy/dev
module load nodejs
module load singularity
echo "Finished loading modules"
export PYTHONPATH=/N/u/brlife/git/nibabel:$PYTHONPATH
echo "setting miniconda path..."
unset PYTHONPATH
export PATH=/N/u/gberto/Karst/miniconda2/bin:$PATH
set -e
set -x
#execute app
./run.sh
ret=$?
if [ ! $ret -eq 0 ]; then
exit $ret
fi
#removing files
rm *.nii.gz -f
rm *.tck
rm -r tractograms_directory -f
rm -r examples_directory* -f
rm kdt -f
rm prototypes.npy -f
echo "Complete"