Open roblanf opened 3 months ago
Small update. I am pretty sure this is a bug that can be overcome.
I ran another three analyses, this time with the partition file defining just a single partition, so the only thing I change is the partition file:
DNA, codon_123 = 1-1527
Because of this, all analyses are now in practice identical - all have just a single set of branch lengths, because there's only one partition.
Same three analyses:
$iqt -s $aln -q 123_codon_partition.txt -T $threads -m MFP -redo -pre 123_identical
$iqt -s $aln -p 123_codon_partition.txt -T $threads -m MFP -redo -pre 123_relative
$iqt -s $aln -Q 123_codon_partition.txt -T $threads -m MFP -redo -pre 123_independent
The first analysis with -p
(identical branch lengths) fails with the same error:
ERROR: Fixing branch lengths not supported under specified site rate model
The other two work, and give identical models (and near identical likelihoods, as expected) if I fix the -seed
to the same thing and run it on one thread. They also (also as expected) give the same answer as running without a partition file.
E.g. -p
(relative brlens) gives:
ModelFinder
-----------
Best-fit model according to BIC: GTR+F+I+G4:codon_123
List of best-fit models per partition:
ID Model LogL AIC w-AIC AICc w-AICc BIC w-BIC
1 GTR+F+I+G4 -12305.824 24633.647 + 3.03e-314 24633.822 - 216 24692.289 - 0
So, the mystery is why the first command doesn't work:
$iqt -s $aln -q 123_codon_partition.txt -T $threads -m MFP -redo -pre 123_identical
@roblanf Thank you for reporting the issue, and sorry for the delayed response. The problem arises from the incompatibility between the "-q" option (which sets all partitions to share the same branch lengths) and the free-rate RHAS model (+R). The optimization method for the free-rate model requires flexibility in branch lengths, making this issue not easy to resolve. I will discuss this with Minh to explore potential solutions.
In the meantime, please use the "-m TEST" option, which excludes the +R model.
Here are three analyses, quite simple, each is a 3 partition analysis on a small COI alignment. The only difference between the three is the option for how to treat the branch lengths among partitions:
-q
all branches equal-p
relative rates for each partition-Q
independent set of branch lengths for each partitionThe partition file looks like this:
And the analyses were:
The issue is that the first analysis fails with the following error in ModelFinder:
The second and third analyses work fine, e.g. producing output in the
.iqtree
file like this from ModelFinder:My expectation was that the first analysis would do something similar, but it seems like there's a sticking point somewhere. My guess is that it has to do with estimating free rate models
+RX
on partitioned data with identical branch lengths. However, I can't see why this is a problem in theory. Nevertheless, in practice it seems to cause IQ-TREE to fail, with something to do with fixing branch lengths.