Skip to content

Commit

Permalink
Adjust raxml to speed up tree building
Browse files Browse the repository at this point in the history
Currently tree building for the global tree took ~4 hours (4:35:46). GitHub
Actions has a 6hour runtime limit. Changing some of the parameters with the
goal of speeding up tree building without losing quality of trees.

Testing:

1. `-f b` to `-f a` to use rapid bootstrapping
2. Use `-N 100` to set the number of bootstraps to 100
3. Use `-x 12345` to set the random seed for bootstrapping
4. Add `-i auto` to automatically determine the best starting tree
  • Loading branch information
j23414 committed Nov 19, 2024
1 parent ae9354b commit 7d0a405
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions phylogenetic/rules/construct_phylogeny.smk
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ rule tree:
benchmark:
"benchmarks/tree.txt"
threads: workflow.cores
params:
raxml_tree_builder_args="-f a -m GTRCAT -p 235813 -x 12345 -N 100 -i auto"
shell:
"""
augur tree \
--alignment {input.alignment} \
--output {output.tree} \
--method raxml \
--tree-builder-args {params.raxml_tree_builder_args:q} \
--nthreads {threads:q} 2>&1 | tee {log}
"""

Expand Down

0 comments on commit 7d0a405

Please sign in to comment.