-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfiguration.default
73 lines (62 loc) · 1.8 KB
/
Configuration.default
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
if [ "${MGICONFIG}" = "" ]
then
export MGICONFIG=/usr/local/mgi/live/mgiconfig
fi
source ${MGICONFIG}/master.config.sh
export PG_DBSERVER="bhmgidb07lp.jax.org"
export PG_DBNAME="pub"
export PG_DBUSER="mgd_public"
export PG_1LINE_PASSFILE=""
export AGR_SCHEMA="agr_schemas"
export AGR_SCHEMA_URL="https://github.com/alliance-genome/agr_schemas"
export AGR_SCHEMA_VERSION="1.0.2.4"
export AGR_RELEASE_VERSION="8.0.0"
export FTPALLIANCE="${FTPROOT}/pub/alliance"
export OUTPUT_DIR="."
export TOKEN_FILE="~/.DQM_UPLOAD_TOKEN"
export LOGFILE=""
###################
# Probably don't need to edit anything below this line...
###################
# Mouse taxon id
export GLOBALTAXONID="NCBITaxon:10090"
# For AGR, need to define a global prefix to prepend to old-style MGD ids.
# In the BGI json file, MGD-MRK-12345 would become MGD_old:MGD-MRK-12345
# Note that this prefix must agree with the one defined in the AGR resourceDescriptors.yaml
# file, located here: https://github.com/alliance-genome/agr_schemas/blob/master/resourceDescriptors.yaml
#
export MGD_OLD_PREFIX="MGD_old:"
# ---------------------
# Echos its arguments to the log file. Prepends a datetime stamp.
#
logit () {
if [[ ${LOGFILE} ]] ; then
echo `date` "$*" >> ${LOGFILE}
else
echo `date` "$*"
fi
}
# ---------------------
# Logs a message and exits with error code 1.
#
die () {
logit "$*"
exit 1
}
# ---------------------
# If the exit code of the last command ($?) is not zero,
# either exits with an error message (the default) or
# echos a warning and continues (if called with -w).
#
checkexit () {
c=$?
if [ $c -ne 0 ]; then
if [ "$1" == "-w" ] ; then
shift
logit "WARNING: nonzero exit code detected." "$*"
else
die "ERROR: $*"
fi
fi
return 0
}