-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.sh.example
executable file
·65 lines (51 loc) · 2.18 KB
/
params.sh.example
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
#!/bin/bash
### Set all parameters and rename to params.sh ###
##############################################################
# Set the following parameters
# Substitute everything surrounded by <...> with actual parameter
##############################################################
# Absolute path to base directory for this application
# Install the application code (from repo) inside a
# subdirectory of the base directory
BASEDIR="/home/boyle/bien/gnrs"
# Path to database configuration file (db_config.sh)
# Recommend move outside app root directory (use absolute path)
# Omit trailing slash
db_config_path="${BASEDIR}/config"
# Data directory name
# User input and results are saved here
# GNRS will look inside app directory (gnrs/) for this directory
# unless $data_dir_local_abs is set (next parameter)
# Omit trailing slash
data_base_dir="../data/user" # Relative path
# Absolute path to data directory
# Use this if data directory outside root application directory
# Comment out to use $data_base_dir (relative, above)
# Omit trailing slash
data_dir_local_abs="<absolute/path/to/data_directory>"
# Destination email for process notifications
# You must supply a valid email if you used the -m option
email="<your_email_address>"
##############################################################
# You shouldn't need to change these parameters in most cases
##############################################################
# Fuzzy match threshold (trigram similarity score)
# [0-1], recommend at least 0.5 to avoid false positives
match_threshold=0.5
# Default name of the raw data file to be imported.
# This name will be used if no file name supplied as command line
# parameter. Must be located in the user_data directory
submitted_filename="gnrs_submitted.csv"
# Default results file
# Added as suffix to custom input file name
results_filename="gnrs_results.csv"
# 't' to limit number of records imported (for testing)
# 'f' to run full import
use_limit='f'
recordlimit=1000
# Short name for this operation, for screen echo and
# notification emails. Number suffix matches script suffix
pname="GNRS"
pname_local=$pname
# General process name prefix for email notifications
pname_header_prefix="Process"