-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_predwindows.bash
51 lines (51 loc) · 1.16 KB
/
run_predwindows.bash
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
#!/usr/bin/env bash
#This script runs run.bash for different numbers
#of predicted samples into the future
dataset=${dataset:-"Mariagerfjord"}
npredictions="3 5 10 15 20"
set -u
for i in $npredictions
do
cat << EOF > config.json
{
"abund_file": "data/datasets/$dataset/ASVtable.csv",
"taxonomy_file": "data/datasets/$dataset/taxonomy.csv",
"metadata_file": "data/metadata.csv",
"results_dir": "results",
"metadata_date_col": "Date",
"tax_level": "OTU",
"tax_add": ["Species", "Genus"],
"functions": [
"AOB",
"NOB",
"PAO",
"GAO",
"Filamentous"
],
"only_pos_func": false,
"pseudo_zero": 0.01,
"max_zeros_pct": 0.60,
"top_n_taxa": 200,
"num_features": 200,
"num_per_group": 5,
"iterations": 10,
"max_epochs_lstm": 200,
"window_size": 10,
"predict_timestamp": $i,
"num_clusters_idec": 40,
"tolerance_idec": 0.001,
"transform": "divmean",
"cluster_idec": true,
"cluster_func": true,
"cluster_abund": true,
"cluster_graph": true,
"smoothing_factor": 4,
"splits": [
0.80,
0.05,
0.15
]
}
EOF
bash run.bash
done