Skip to content

FEL-contrast

HyPhy version required≥ 2.3.4
Parallel supportMP and/or MPI
File pathLIB/TemplateBatchFiles/SelectionAnalyses/FEL-contrast.bf
Standard analysis menuEvolutionary Hypothesis Testing > FEL-contrast

What biological question is the method designed to answer?

Which sites in a gene may be associated with adaptation to a different environment. You need a tree with branches partitioned (a priori) into two sets: reference and test.

Suppose you have a gene which was sampled from different selective environments. The specific example for which this tool was developed is evolution of HIV in different hosts or different compartments (blood vs brain) in the host. Similar situations arise when the gene is sampled from species living in different environment, eating different food, having different wavelength eye sensitivity. This division has to be binary, however, so that any branch in the tree is either in the reference environment, or the test environment.

FEL-contrast then allows you to examine selective pressures (measured as dN/dS) at each site in the gene individually, and test whether or not they are different between environments.

Armed with a list of such sites, you could then attempt to explore if evolution at these sites is associated with adaptation to the environment.

What is the statistical procedure and statistical test is used to establish significance for this method?

For each site, three rates are inferred, with other parameters (frequencies, branch lengths) inferred jointly and held at

  • α : synonymous substitution rate
  • β r : non-synonymous substitution rate along reference branches
  • β p : non-synonymous substitution rate along test branches

Two models are compared using a likelihood ratio test

  • HA: α, β r, and β t are inferred by maximum likelihood as free parameters

  • H0: The β r := β t constraint is enforced.

The models are nested and differ by one degree of freedom. p-values are computed using the limit χ2 distribution with one degree of freedom.

How should one interpret positive and negative test results?

A significant result at a site means that dN/dS (β/α) is different between the two sets of branches, with either an increase or a decrease on the test branches relative to the reference branches. A significant finding does not make any claims about positive (dN/dS > 1) or negative (dN/dS < 1), just that dN/dS differ among sets of branches, i.e., a difference need not change the mode of selection.

Negative results do not mean that there is no difference, rather that whatever difference there may be does not rise to the level of statistical significance/

Rules of thumb for when this method is likely to work well, and when it is not.

  • Generally, you need 10 or more branches in each set to be able to have any statistical power.
  • Too little divergence is also likely to severely throttle statistical power.

Example

We will analyze HIV-1 env sequences from a transmission pair: sequences are isolated from the putative source individual and the putative recipient individual from the 2005 study by Frost et al.

  1. Partition the tree into the source and recipient (here we include the transmission branch with the source sequences), for example as described here. For convenience, download a NEXUS file with the tree already partitioned.

  2. Run HYPHYMP or HYPHYMPI, select Evolutionary Hypothesis Testing from the menu of analyses then select Use a FEL method to test which sites in a gene may be associated with adaptation to a different environment. Alternatively, you can supply the path of the file as a command line argument, e.g. (by default /path/to/hyphylib should be /usr/local/lib/hyphy)

    $HYPHYMP /path/to/hyphylib/TemplateBatchFiles/SelectionAnalyses/FEL-contrast.bf
  3. Select Universal genetic code

  4. Input the path to the example file downloaded from the link above

  5. Choose SOURCE as the test set

  6. Select Yes to include synonymous rate variation

  7. Input 0.1 for the default p-value

The analysis will now run for a few minutes and output the following results


Branches to use as the test set in the FEL-contrast analysis

Selected 24 branches to include in FEL calculations: 0564_7, 0564_11, 0564_4, Node6, 0564_1, 0564_21, 0564_5, Node11, Node9, Node5, 0564_17, Node4, 0564_13, 0564_15, Node16, 0564_22, 0564_6, Node20, 0564_3, Node19, Node15, Node3, 0564_9, Node2

Obtaining branch lengths and nucleotide substitution biases under the nucleotide GTR model

  • Log(L) = -5524.85, AIC-c = 11151.77 (51 estimated parameters)

Obtaining the global omega estimate based on relative GTR branch lengths and nucleotide substitution biases

  • Log(L) = -5436.84, AIC-c = 10991.98 (59 estimated parameters)
  • non-synonymous/synonymous rate ratio for background = 0.9178
  • non-synonymous/synonymous rate ratio for test = 0.8293

Improving branch lengths, nucleotide substitution biases, and global dN/dS ratios under a full codon model

  • Log(L) = -5436.29
  • non-synonymous/synonymous rate ratio for background = 1.1136
  • non-synonymous/synonymous rate ratio for test = 0.7748

For partition 1 these sites are significant at p <=0.1

Codonalphabeta-referencebeta-testLRTDifference detected?
40.00022.3800.0003.390Decr. p = 0.0656
520.00020.9820.0003.384Decr. p = 0.0658
830.00020.3650.0003.389Decr. p = 0.0656
1180.00017.1790.0003.404Decr. p = 0.0651
1240.00023.3460.0003.396Decr. p = 0.0653
1550.0000.00064.9435.045Incr. p = 0.0247
1870.00020.9340.0003.577Decr. p = 0.0586
2180.00020.8250.0003.519Decr. p = 0.0607
2220.00022.6580.0003.459Decr. p = 0.0629
2240.00025.8740.0003.681Decr. p = 0.0550
3520.00019.4200.0003.411Decr. p = 0.0648
3860.00020.3340.0003.387Decr. p = 0.0657
4170.00021.3160.0003.383Decr. p = 0.0659
4550.00022.0100.0003.398Decr. p = 0.0653
4620.00069.06610.5673.860Decr. p = 0.0494
4660.00055.1420.0007.562Decr. p = 0.0060
5060.00033.1540.0003.438Decr. p = 0.0637
5260.00050.8105.3133.351Decr. p = 0.0672
5330.00021.4890.0003.485Decr. p = 0.0619
5980.00018.1030.0003.392Decr. p = 0.0655
6337.01920.2270.0003.393Decr. p = 0.0655
7480.00036.7730.0006.388Decr. p = 0.0115
7510.00018.4470.0003.123Decr. p = 0.0772
7620.00018.8680.0003.402Decr. p = 0.0651
7880.00026.7350.0003.937Decr. p = 0.0472
8200.00056.3710.0009.657Decr. p = 0.0019
8240.00019.6300.0003.604Decr. p = 0.0576

** Found 1 sites with increased dN/dS in the test branches relative to the reference branches and 26 sites with decreased dN/dS selection at p <= 0.1**