-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoracle_script.sh
executable file
·51 lines (48 loc) · 2.47 KB
/
oracle_script.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
42
43
44
45
46
47
48
49
50
51
data=$1
parsed=$2
alignments=$1.alignments
./alignments.sh $data
silent="0"
while [[ $# -gt 1 ]]
do
key="$3"
case $key in
-s|--silent)
silent="1"
;;
*)
# unknown option
;;
esac
shift # past argument or value
done
if [[ $silent -eq "0" ]];
then
silent=''
else
silent='-silent'
fi
python create_data.py -action_type "add" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "add" -data "$parsed.save.p" $silent
python create_data.py -action_type "add_addnode" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "add_addnode" -data "$parsed.save.p" $silent
python create_data.py -action_type "remove" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "remove" -data "$parsed.save.p" $silent
python create_data.py -action_type "remove_rmnode" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "remove_rmnode" -data "$parsed.save.p" $silent
python create_data.py -action_type "merge" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "merge" -data "$parsed.save.p" $silent
python create_data.py -action_type "merge_rmnode" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "merge_rmnode" -data "$parsed.save.p" $silent
python create_data.py -action_type "split" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "split" -data "$parsed.save.p" $silent
python create_data.py -action_type "split_addnode" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "split_addnode" -data "$parsed.save.p" $silent
python create_data.py -action_type "add_sibling" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "add_sibling" -data "$parsed.save.p" $silent
python create_data.py -action_type "add_sibling_addnode" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "add_sibling_addnode" -data "$parsed.save.p" $silent
python create_data.py -action_type "remove_sibling" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "remove_sibling" -data "$parsed.save.p" $silent
python create_data.py -action_type "remove_sibling_rmnode" -data $data -parsed $parsed -alignments $alignments $silent
python oracle.py -action_type "remove_sibling_rmnode" -data "$parsed.save.p" $silent