-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_preprocess.sh
More file actions
executable file
·30 lines (27 loc) · 963 Bytes
/
Copy pathrun_preprocess.sh
File metadata and controls
executable file
·30 lines (27 loc) · 963 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
#!/bin/bash
# Define variables for all the parameters
DATASET_PATH="./datasets/vasoplegia/CPMG.csv"
SAVE_PATH="./datasets/vasoplegia/preprocessed"
METADATA_COLUMNS=2
UNIQUE_ID_COL="Subject ID"
CLASS_LABEL_COL="Vasoplegia"
#WAVELETS="db1,db7,db20,db38" # Adjust this list based on your needs
WAVELETS="db1"
SUBS_TO_REMOVE="LPS1,LPS14,LPS19,LPS53,LPS65,LPS141"
STEP_SIZE=0.005
OVERLAP=0.0025
N_COMPONENTS=2
# Directory where the preprocess_control.py script is located relative to the bash script
PREPROCESS_DIR="./preprocessing"
# Execute the Python script with all the parameters
python "$PREPROCESS_DIR/preprocess_control.py" \
--dataset_path "$DATASET_PATH" \
--save_path "$SAVE_PATH" \
--metadata_columns $METADATA_COLUMNS \
--unique_id_col "$UNIQUE_ID_COL" \
--class_label_col "$CLASS_LABEL_COL" \
--wavelets "$WAVELETS" \
--subs_to_remove "$SUBS_TO_REMOVE" \
--step_size $STEP_SIZE \
--overlap $OVERLAP \
--n_components $N_COMPONENTS