Parameter -o for setting outgroup is not working and I'm getting a long branch for the first species (IQTree2.3.4) #351
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@badiaclara can you share the alignment please? This will help in attempting to see what's going on. However, a couple of things to point out. First, the outgroup is a purely cosmetic thing for plotting the tree. You can open your tree in any software (FigTree, iTOL, etc) and set a new outgroup to root the tree. The choice of outgroup makes no difference to the tree you are estimating - all trees with reversible models are unrooted anyway. Second, that long branch most likely exists because that's the best way to explain the input alignment. It may not make sense biologically, but it probably (I say probably because it's always possible there's a bug!) makes perfect sense with the combination of model and data that you are using. If you can upload your alignment it will be easier to help out more than this. Rob |
Beta Was this translation helpful? Give feedback.
-
Hi Rob, Thanks very much for your reply and for the insights. I had a different understanding on how IQtree deals with the outgroup.. I thought it needed to set the outgroup during the analysis to find the best topology. How do I know if my analysis have trees with reversible models? About the alignment - turns out I found the problem: it was the .phy formatting. I was converting the .nex to .phy on MEGAX, and the first sequence had nucleotides while the others were interpreting the first one as a reference (and MEGAX was giving me dots for equivalent bases instead of keeping the original sequences). So, I converted the .nex to .phy properly in R and it worked beautifully. In addition to that, I removed gap to ensure that I wouldn't have too much data discrepancy. Cheers, |
Beta Was this translation helpful? Give feedback.
@badiaclara can you share the alignment please? This will help in attempting to see what's going on.
However, a couple of things to point out. First, the outgroup is a purely cosmetic thing for plotting the tree. You can open your tree in any software (FigTree, iTOL, etc) and set a new outgroup to root the tree. The choice of outgroup makes no difference to the tree you are estimating - all trees with reversible models are unrooted anyway.
Second, that long branch most likely exists because that's the best way to explain the input alignment. It may not make sense biologically, but it probably (I say probably because it's always possible there's a bug!) makes perfect sense with the combina…