-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain
44 lines (38 loc) · 774 Bytes
/
main
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
43
44
#!/bin/bash
#PBS -k o
#PBS -l nodes=1:ppn=16,walltime=12:00:00
## modules
echo "Loading modules"
module load ants
module unload matlab
module load matlab/2017a
module load spm/8
module unload python
module load dipy/dev
module load nodejs
module unload mrtrix/0.2.12
module load mrtrix/0.3.15
module unload fsl
module load fsl/5.0.9
module unload freesurfer/5.3.0
module load freesurfer/6.0.0
echo "Finished loading modules"
export PYTHONPATH=/N/u/brlife/git/nibabel:$PYTHONPATH
#execute app
./run.sh
ret=$?
if [ ! $ret -eq 0 ]; then
exit $ret
fi
#removing files
rm *.trk -f
rm *.tck -f
rm *.nii.gz -f
rm -r tractograms_directory -f
rm -r examples_directory* -f
rm kdt -f
rm prototypes.npy -f
rm -r aligned_ROIs -f
rm -r templates -f
rm distance* -f
echo "Complete"