/
runall.sh
executable file
·41 lines (31 loc) · 1.19 KB
/
runall.sh
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
#!/bin/sh
# exit if any of the subcommands returns an error, since they only work if the preceding command succeeded
set -e
# for i in "$@"
# do
# case $i in
# -s=*|--simrunmethod=*)
# SIMRUNMETHOD="${i#*=}"
# shift
# ;;
# esac
# done
## assumes that network models are built and in place, because this is typically an exploratory step
## once the network models are satisfactory, this script builds simulations, runs them, post processes
## and samples the simulation output, builds seriation scripts, runs seriations, and annotates the output
sh bin/build-simulations.sh &> build-simulation.log
# if [ SIMRUNMETHOD = 'gridengine' ]
# then
# echo "running simulations with GridEngine"
# sh bin/run-simulations-gridengine.sh &> simulation.log
# else
# echo "running simulations by serial execution"
# sh bin/run-simulations.sh &> simulation.log
# fi
# The above logic was not working on Ewens for some reason.
sh bin/run-simulations-gridengine.sh &> simulation.log
sh bin/export-data.sh &> export.log
sh bin/simulation-postprocess.sh &> postprocess.log
sh bin/build-seriations.sh &> build-seriations.log
sh bin/run-seriations.sh &> seriation.log
sh bin/annotate-seriation-output.sh &> annotate.log