Skip to content

Commit 96b0c04

Browse files
chore(tree): use new, preferred iqtree option names (those mentioned by iqtree2 -h)
1 parent 603709f commit 96b0c04

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

augur/tree.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@
2828
# For compat with older versions of iqtree, we avoid the newish -fast
2929
# option alias and instead spell out its component parts:
3030
#
31-
# -ninit 2
31+
# --ninit 2
3232
# -n 2
33-
# -me 0.05
33+
# --epsilon 0.05
3434
#
3535
# This may need to be updated in the future if we want to stay in lock-step
3636
# with -fast, although there's probably no particular reason we have to.
3737
# Refer to the handling of -fast in utils/tools.cpp:
3838
# https://github.com/Cibiv/IQ-TREE/blob/44753aba/utils/tools.cpp#L2926-L2936
3939
# Increasing threads (-T) can cause IQtree to run longer, hence use AUTO by default
4040
# -T AUTO makes IQtree chose the optimal number of threads
41-
# -redo prevents IQtree errors when a run was aborted and restarted
42-
"iqtree": "-ninit 2 -n 2 -me 0.05 -T AUTO -redo",
41+
# --redo prevents IQtree errors when a run was aborted and restarted
42+
"iqtree": "--ninit 2 -n 2 --epsilon 0.05 -T AUTO --redo",
4343
}
4444

4545
# IQ-TREE only; see usage below

tests/functional/tree.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Build a tree, augmenting existing default arguments with custom arguments.
4040
$ ${AUGUR} tree \
4141
> --method iqtree \
4242
> --alignment tree/aligned.fasta \
43-
> --tree-builder-args="-czb" \
43+
> --tree-builder-args="--polytomy" \
4444
> --output "$TMP/tree_raw.nwk" > /dev/null
4545

4646
Build a tree, replacing existing default arguments with custom arguments.
@@ -49,7 +49,7 @@ Since the following custom arguments are incompatible with the default IQ-TREE a
4949
$ ${AUGUR} tree \
5050
> --method iqtree \
5151
> --alignment tree/full_aligned.fasta \
52-
> --tree-builder-args="-czb -bb 1000 -bnni -redo" \
52+
> --tree-builder-args="--polytomy -bb 1000 -bnni --redo" \
5353
> --override-default-args \
5454
> --output "$TMP/tree_raw.nwk" > /dev/null
5555

0 commit comments

Comments
 (0)