forked from Ensembl/ensj-healthcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_ens_hc_hive.sh
executable file
·59 lines (47 loc) · 1.31 KB
/
run_ens_hc_hive.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
52
53
54
55
56
57
58
#!/bin/sh -x
div=$1
db=$2
sid=$3
properties=$4
group=$5
hcdb=$6
if [ -z "$JAVA_OPTS" ]; then
JAVA_OPTS=-Xmx15g
fi
export JAVA_OPTS
report_dir=$(dirname $0)/hc_reports/$div/$sid
mkdir -p $report_dir
echo "Running HCs on $div:$db in session $sid to $report_dir/$db.out"
div=${div,,}
if [[ $db =~ core ]] || [[ $db =~ otherfeatures ]] || [[ $db =~ rnaseq ]] || [[ $db =~ cdna ]] || [[ $db =~ vega ]] ; then
./run-configurable-testrunner.sh \
-g $group\
-c $properties \
-R Database --output.database $hcdb \
-d $db \
--sessionID $sid >& $report_dir/$db.out
elif [[ $db =~ compara ]]; then
./run-configurable-testrunner.sh \
-g EGCompara \
-c $properties \
-R Database --output.database $hcdb \
-d $db \
--sessionID $sid >& $report_dir/$db.out
elif [[ $db =~ variation ]]; then
./run-configurable-testrunner.sh \
-g VariationRelease \
-c $properties \
-R Database --output.database $hcdb \
-d $db \
--sessionID $sid >& $report_dir/$db.out
elif [[ $db =~ funcgen ]]; then
./run-configurable-testrunner.sh \
-g FuncgenRelease \
-c $properties \
-R Database --output.database $hcdb \
-d $db \
--datafile_base_path /nfs/production/panda/ensembl/production/ensemblftp/data_files/ \
--sessionID $sid >& $report_dir/$db.out
else
echo "Do not know how to handle database $db - skipping"
fi