-
Notifications
You must be signed in to change notification settings - Fork 0
/
tpds1.sh
executable file
·40 lines (29 loc) · 1.07 KB
/
tpds1.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
#!/bin/bash
#SBATCH --cpus-per-task=1
#SBATCH --nodes=1
#SBATCH -o job_%j.out
#SBATCH -e job_%j.err
ds=1
result_type="_output"
search_type="tp"
function nni_search() {
ds=$1
result_type=$2
search=$3
max_iter=1000
echo "### nni_search ds=${ds} result_type=${result_type} search=${search}..."
data_path="data/ds${ds}"
results_path="${data_path}/${result_type}"
fasta=${data_path}/ds${ds}.fasta
seed_newick=${results_path}/ds${ds}.top1.nwk
credible_newick=${results_path}/ds${ds}.credible.with-fake-branches.nwk
posterior_newick=${results_path}/ds${ds}.mb-trees.with-fake_branches.nwk
pp_csv=${results_path}/ds${ds}.mb-pp.csv
pcsp_pp_csv=${results_path}/ds${ds}.pcsp-pp.csv
subsplit_csv=${results_path}/ds${ds}.subsplit.csv
output_path=${results_path}/ds${ds}.results.${search}.${max_iter}.csv
python nni_search.py nni-search $fasta $seed_newick $credible_newick \
$posterior_newick $pp_csv $pcsp_pp_csv $subsplit_csv --${search} --iter-max \
${max_iter} -o $output_path
}
nni_search $ds $result_type $search_type