iqtree / iqtree2

NEW location of IQ-TREE software for efficient phylogenomic software by maximum likelihood http://www.iqtree.org
GNU General Public License v2.0
246 stars 57 forks source link

EX2 model inconsistent lnl btwn .sitelh and .log files when -blfix specified #309

Open evolbeginner opened 2 months ago

evolbeginner commented 2 months ago

Dear Minh,

I found inconsistent lnL results when using EX2 model (and perhaps EX3 and a few other mixture sub models) according to fixed bls (and thus also tree topology) in tree construction.

The cmd is:

iqtree -m LG -s 1.aln -pre 1 -redo -wsl -te 1.treefile0 -blfix

which gave me the best lnl as -19010.645 as seen in the .log file.

Then I used the following R code to calculate the lnl using the .sitelog file and got -19201.6:

a <- readLines("1.sitelh")[2]; sum(na.omit(as.numeric(strsplit(a, " ")[[1]])))

The files that i used for testing are attached here. ex2_blfix.tar.zip

I actually did some calculations using my own script and found that the sitelh file seems correct (but probably my calculation is incorrect). Would you pls mind having a look at it? Thanks!

BTW, I have another suggestion that the iqtree google grp seems unaccessible but i think there are many interesting threads there so might be worth reopening or archiving at another place. thanks!

Best, Sishuo