@@ -18,6 +18,10 @@ index_only=0
18
18
19
19
20
20
usage () {
21
+ echo
22
+ echo kaiju-makedb
23
+ echo Copyright 2015-2019 Peter Menzel, Anders Krogh
24
+ echo License GPLv3+: GNU GPL version 3 or later, http://gnu.org/licenses/gpl.html
21
25
echo
22
26
echo This program creates a protein reference database and index for Kaiju.
23
27
echo
@@ -40,16 +44,16 @@ usage() {
40
44
echo
41
45
echo " rvdb: Viral proteins from RVDB-prot"
42
46
echo
43
- echo " For example: $0 -s nr will create the database file kaijud_db_nr .fmi"
47
+ echo " For example: $0 -s nr will create the database file kaiju_db_nr .fmi"
44
48
echo
45
49
echo Additional options:
46
50
echo
47
- echo " $s " -t X Set number of parallel threads for index construction to X \( default:5\)
48
- echo " The more threads are used, the higher the memory requirement becomes."
51
+ echo " -t X Set number of parallel threads for index construction to X \(default:5\)"
52
+ echo " The more threads are used, the higher the memory requirement becomes."
49
53
echo
50
- echo " $s " --no-download Do not download files, but use the existing files in the folder.
54
+ echo " --no-download Do not download files, but use the existing files in the folder."
51
55
echo
52
- echo " $s " --index-only Only create BWT and FMI from kaiju_db_* .faa files, implies --no-download.
56
+ echo " --index-only Only create BWT and FMI from kaiju_db_*.faa files, implies --no-download."
53
57
echo
54
58
}
55
59
@@ -118,7 +122,7 @@ command -v kaiju-mkfmi >/dev/null 2>/dev/null || { echo Error: kaiju-mkfmi not f
118
122
command -v kaiju-mkbwt >/dev/null 2>/dev/null || { echo Error: kaiju-mkbwt not found in $PATH ; exit 1; }
119
123
command -v kaiju-convertNR >/dev/null 2>/dev/null || { echo Error: kaiju-convertNR not found in $PATH ; exit 1; }
120
124
121
- [ -z " $DB " ] && { echo Error: Use option -s to select a source database; exit 1; }
125
+ [ -z " $DB " ] && { echo Error: Use option -s to select a source database; usage; exit 1; }
122
126
[ " $DB " = " mar" -o " $DB " = " mar_ref" -o " $DB " = " mar_db" -o " $DB " = " mar_mag" -o " $DB " = " nr" -o " $DB " = " nr_euk" -o " $DB " = " refseq" -o " $DB " = " progenomes" -o " $DB " = " viruses" -o " $DB " = " plasmids" -o " $DB " = " rvdb" ] || { echo Error: $DB is not a valid source database; usage; exit 1; }
123
127
124
128
if [ " $DB " = " mar" -o " $DB " = " mar_ref" -o " $DB " = " mar_db" -o " $DB " = " mar_mag" ]
0 commit comments