forked from Plant-Food-Research-Open/genepal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal_genepal
executable file
·44 lines (38 loc) · 867 Bytes
/
local_genepal
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
#!/usr/bin/env bash
NO_FORMAT="\033[0m"
C_RED="\033[38;5;9m"
F_BOLD="\033[1m"
profile="test_full"
stub=""
eggnogmapper_db_dir_param=""
for arg in "$@"; do
case $arg in
-stub)
stub="-stub"
;;
-test)
profile="test"
;;
-test_full)
profile="test_full"
;;
esac
done
if [[ -z $stub ]]; then
echo -e "${C_RED}${F_BOLD}Executing without -stub${NO_FORMAT}"
fi
if [[ $profile == "test_full" ]]; then
eggnogmapper_db_dir_param="--eggnogmapper_db_dir ../dbs/emapperdb/5.0.2"
echo "Executing test_full"
else
echo "Executing test"
fi
# Run nextflow with the selected flags
nextflow run \
main.nf \
-profile docker,${profile} \
-resume \
$stub \
-c ../nxf-config/resources.config \
$eggnogmapper_db_dir_param \
--outdir results