-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiderare_phenomizing.sh
45 lines (40 loc) · 1023 Bytes
/
iderare_phenomizing.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
#!/bin/bash
set -euo pipefail
# Default values for parameters
threshold=0.4
differential=10
recommendation=20
add_yml=false
# Parse command line arguments
while [[ $# -gt 0 ]]; do
case "$1" in
--threshold)
threshold="$2"
shift 2
;;
--differential)
differential="$2"
shift 2
;;
--recommendation)
recommendation="$2"
shift 2
;;
--add-yml)
add_yml=true
shift
;;
*)
echo "Unknown argument: $1"
exit 1
;;
esac
done
conda activate iderare
# Pass parameters to Python script
if "$add_yml"; then
python backbone/iderare_phenomizing.py --threshold "$threshold" --differential "$differential" --recommendation "$recommendation" --add-yml
else
python backbone/iderare_phenomizing.py --threshold "$threshold" --differential "$differential" --recommendation "$recommendation"
fi
conda deactivate