-
Notifications
You must be signed in to change notification settings - Fork 0
/
multiple_raxml_starts_flu100.sh
executable file
·42 lines (31 loc) · 1.39 KB
/
multiple_raxml_starts_flu100.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
#!/bin/bash
#SBATCH --cpus-per-task=1
#SBATCH --nodes=1
#SBATCH -o job_%j.out
#SBATCH -e job_%j.err
#SBATCH --mail-type=ALL
#SBATCH [email protected]
function nni_search() {
root="1"
search="tp"
max_iter=300
data_path="data/flu100"
results_path="${data_path}/_output"
fasta=${data_path}/flu100.fasta
cred_nwk="${results_path}/flu100.credible.nwk"
seed_newick=${results_path}/flu100.raxml_start.nwk
top_topology_nwk="multiple_trees_data/raxml_tests/flu100/flu100.raxml.unique.nwk"
top_tree_nwk="${results_path}/flu100.top_raxml.tree.nwk"
echo "# Obtaining optimal branch lengths for top trees via wtch-branch-optimization.py..."
python wtch-branch-optimization.py $top_topology_nwk $fasta $top_tree_nwk --sort=True
nw_reroot $top_tree_nwk $root > $seed_newick
credible_newick=${results_path}/flu100.credible.with-fake-branches.nwk
posterior_newick=${results_path}/flu100.mb-trees.with-fake_branches.nwk
pp_csv=${results_path}/flu100.mb-pp.csv
pcsp_pp_csv=${results_path}/flu100.pcsp-pp.csv
subsplit_csv=${results_path}/flu100.subsplit.csv
output_path=${results_path}/flu100.results.${search}.${max_iter}.top_raxml.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