-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathiderare.sh
More file actions
36 lines (31 loc) · 747 Bytes
/
Copy pathiderare.sh
File metadata and controls
36 lines (31 loc) · 747 Bytes
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
#!/bin/bash
set -euo pipefail
# Default values for parameters
mode="both"
trimming=false
# Parse command line arguments
while [[ $# -gt 0 ]]; do
case "$1" in
--mode)
mode="$2"
shift 2
;;
--trimming)
trimming=true
shift
;;
*)
echo "Unknown argument: $1"
exit 1
;;
esac
done
conda activate iderare
# Pass parameters to Python script
## If trimming=True, then the script will run the trimming process --trimming, else, only pass mode
if [ "$trimming" = true ]; then
python backbone/iderare_prep.py --mode "$mode" --trimming
else
python backbone/iderare_prep.py --mode "$mode"
fi
source pipeline.sh