(for terminal branches, or leaves) and
(for internal branches). If the latter two rates differ significantly, we deduce that evolution along internal branches (historical, e.g., influenced primarily by selection for transmission in HIV) and along terminal branches (recent, e.g., influenced by within-patient evolution in HIV) are subject to differing selective constraints. Formally,
A straightforward modification of the null hypothesis can be used to test for non-neutral evolution only along internal branches of the tree:
We refer to the latter test as IFEL (internal fixed effects likelihood). Significance is assessed by the likelihood ratio test with one degree of freedom. Our simulations (see simulation strategy details below) have shown that the use of the
asymptotic distribution leads to a conservative test, and actual false positive rates (in our simulation scenario) are lower than the nominal significance level of the test (
) with an above average level of divergence (αs > 1), the power increases to 41%. For very strongly selected sites (K ≥ 16), the power is boosted to 68%. Overall, the PPV of the test is 98.8%.