HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
HYPHY Package >> HyPhy feedback >> ML value
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1146781457

Message started by gustavo on May 4th, 2006 at 3:24pm

Title: ML value
Post by gustavo on May 4th, 2006 at 3:24pm
I’m doing a per site ML optimization for an alignment of 485 sequences using JTT model . I observed that for some positions the log likelihood is  -1e+06. What is the meaning of this result?
Thanks in advance


gustavo

Title: Re: ML value
Post by Sergei on May 4th, 2006 at 3:41pm
Dear Gustavo,

This is indicative of numerical underflow (e.g. the likelihood of some sites falls below MIN_DOUBLE). This 'hack' effectively excludes sites which underflow from the analysis.

You can change a #define (USE_SCALING_TO_FIX_UNDERFLOW to 1) in in calcnode.h and recompile HyPhy. This will turn on a procedure to correct for underflow but slow down likelihood calculations quite a bit - about 3x depending on how many sites underflow - which is why it is turned off by default. Also, currently this fix only works for nucleotide and codon data (but not for a.a.). Let me add the appropriate fix for this case and I'll post a note when this is done.

Cheers,
Sergei

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.