-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_loopdatasets.bash
51 lines (50 loc) · 1.13 KB
/
run_loopdatasets.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
set -u
datasets_folder=data/datasets
datasets=$(find $datasets_folder/* -maxdepth 0 -type d -exec echo -n '"{}" ' \;)
find ${datasets_folder}/* -maxdepth 0 -type d |\
while read -r f;
do
cat << EOF > config.json
{
"abund_file": "$f/ASVtable.csv",
"taxonomy_file": "$f/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": 10,
"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