-
Notifications
You must be signed in to change notification settings - Fork 0
/
render_paper_content.sh
executable file
·60 lines (51 loc) · 1.26 KB
/
render_paper_content.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Create tables
cd $BASE_DIR/table_scripts
# Array of table scripts
TABLE_SCRIPTS=(
"supplement_table_1.py"
"supplement_table_4.py"
"supplement_table_5.py"
"supplement_table_6.py"
"supplement_table_7.py"
"supplement_table_10.py"
"n_samples.py"
"hv_family_abun.py"
"flu_ra.py"
"hv__family_abun.py"
"sars-cov-2-increase.py"
"median_ra.py"
)
# Run table scripts
for script in "${TABLE_SCRIPTS[@]}"; do
if [ -f "$script" ]; then
python "$script" || echo "Warning: $script failed to execute"
else
echo "Warning: $script not found"
fi
done
echo "Tables created successfully."
cd "$BASE_DIR/figures"
# Array of figure scripts
FIGURE_SCRIPTS=(
"composite_fig_2.py"
"composite_fig_3.py"
"composite_fig_4.py"
"fig_5.py"
"supplement_fig_1.py"
"supplement_fig_2_to_4.py"
"supplement_fig_5.py"
"supplement_fig_6.py"
"supplement_fig_7.py"
"supplement_fig_8.py"
"supplement_fig_y.py"
)
# Run figure scripts
for script in "${FIGURE_SCRIPTS[@]}"; do
if [ -f "$script" ]; then
python "$script" || echo "Warning: $script failed to execute"
else
echo "Warning: $script not found"
fi
done