Skip to content

Sequence order in the input and parallelism affect reproducibility #233

Answered by bqminh
apcamargo asked this question in Q&A
Discussion options

You must be logged in to vote

There are two questions:

  • Can sequence order input change the tree topology? YES, even with the same seed number. IQ-TREE at the beginning uses random stepwise addition technique to construct initial parsimony trees, where different orders may result in different parsimony trees, and subsequent tree search may diverge in different trees.

  • Can different thread number result in different trees? YES, even with the same seed number. The explanation is a bit involved but revolved around this inequality:

(a+b)+c != a +(b+c)

While they are mathematically equivalent, they are not always the same in a computer due to rounding errors (there are many articles about this on the web). As an examp…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by roblanf
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@apcamargo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #228 on June 18, 2024 00:22.