Jump to content

Ka/Ks ratio

From Wikipedia, the free encyclopedia

In genetics, the Ka/Ks ratio, also known as ω or dN/dS ratio,[a] is used to estimate the balance between neutral mutations, purifying selection and beneficial mutations acting on a set of homologous protein-coding genes. It is calculated as the ratio of the number of nonsynonymous substitutions per non-synonymous site (Ka), in a given period of time, to the number of synonymous substitutions per synonymous site (Ks), in the same period. The latter are assumed to be neutral, so that the ratio indicates the net balance between deleterious and beneficial mutations. Values of Ka/Ks significantly above 1 are unlikely to occur without at least some of the mutations being advantageous. If beneficial mutations are assumed to make little contribution, then Ka/Ks estimates the degree of evolutionary constraint.


Selection acts on variation in phenotypes, which are often the result of mutations in protein-coding genes. The genetic code is written in DNA sequences as codons, groups of three nucleotides. Each codon represents a single amino acid in a protein chain. However, there are more codons (64) than amino acids found in proteins (20), so many codons are effectively synonyms. For example, the DNA codons TTT and TTC both code for the amino acid Phenylalanine, so a change from the third T to C makes no difference to the resulting protein. On the other hand, the codon GAG codes for Glutamic acid while the codon GTG codes for Valine, so a change from the middle A to T does change the resulting protein, for better or (more likely) worse,[b] so the change is not a synonym. These changes are illustrated in the tables below.

The Ka/Ks ratio measures the relative rates of synonymous and nonsynonymous substitutions at a particular site.

A point mutation causing a synonymous substitution
Type of structure Before Change After Result
Codon in a DNA sequence TTT harmless mutation;[c]
Synonymous substitution    
↓ codes for ↓ codes for   ↓ codes for
Amino acid in a Protein Phenylalanine   no change Phenylalanine Normal protein, normal function
A point mutation causing a nonsynonymous substitution
Type of structure Before Change After Result
Codon in a DNA sequence GAG Missense mutation;
Nonsynonymous substitution
↓ codes for ↓ codes for   ↓ codes for
Amino acid in a Protein Glutamic acid   structural change Valine             Altered protein may or may not cause harm
(e.g. disease) or give new advantage


Methods for estimating Ka and Ks use a sequence alignment of two or more nucleotide sequences of homologous genes that code for proteins (rather than being genetic switches, controlling development or the rate of activity of other genes). Methods can be classified into three groups: approximate methods, maximum-likelihood methods, and counting methods. However, unless the sequences to be compared are distantly related (in which case maximum-likelihood methods prevail), the class of method used makes a minimal impact on the results obtained; more important are the assumptions implicit in the chosen method.[1]: 498 

Approximate methods[edit]

Approximate methods involve three basic steps: (1) counting the number of synonymous and nonsynonymous sites in the two sequences, or estimating this number by multiplying the sequence length by the proportion of each class of substitution; (2) counting the number of synonymous and nonsynonymous substitutions; and (3) correcting for multiple substitutions.

These steps, particularly the latter, require simplistic assumptions to be made if they are to be achieved computationally; for reasons discussed later, it is impossible to exactly determine the number of multiple substitutions.[1]

Maximum-likelihood methods[edit]

The maximum-likelihood approach uses probability theory to complete all three steps simultaneously.[1] It estimates critical parameters, including the divergence between sequences and the transition/transversion ratio, by deducing the most likely values to produce the input data.[1]

Counting methods[edit]

In order to quantify the number of substitutions, one may reconstruct the ancestral sequence and record the inferred changes at sites (straight counting – likely to provide an underestimate); fitting the substitution rates at sites into predetermined categories (Bayesian approach; poor for small data sets); and generating an individual substitution rate for each codon (computationally expensive). Given enough data, all three of these approaches will tend to the same result.[2]

Interpreting results[edit]

The Ka/Ks ratio is used to infer the direction and magnitude of natural selection acting on protein coding genes. A ratio greater than 1 implies positive or Darwinian selection (driving change); less than 1 implies purifying or stabilizing selection (acting against change); and a ratio of exactly 1 indicates neutral (i.e. no) selection. However, a combination of positive and purifying selection at different points within the gene or at different times along its evolution may cancel each other out. The resulting averaged value can mask the presence of one of the selections and lower the seeming magnitude of another selection.

Of course, it is necessary to perform a statistical analysis to determine whether a result is significantly different from 1, or whether any apparent difference may occur as a result of a limited data set. The appropriate statistical test for an approximate method involves approximating dN − dS with a normal approximation, and determining whether 0 falls within the central region of the approximation. More sophisticated likelihood techniques can be used to analyse the results of a Maximum Likelihood analysis, by performing a chi-squared test to distinguish between a null model (Ka/Ks = 1) and the observed results.[1]


The Ka/Ks ratio is a more powerful test of the neutral model of evolution than many others available in population genetics as it requires fewer assumptions.[1]


There is often a systematic bias in the frequency at which various nucleotides are swapped, as certain mutations are more probable than others.[1] For instance, some lineages may swap C to T more frequently than they swap C to A. In the case of the amino acid Asparagine, which is coded by the codons AAT or AAC, a high C->T exchange rate will increase the proportion of synonymous substitutions at this codon, whereas a high C→A exchange rate will increase the rate of non-synonymous substitutions. Because it is rather common for transitions (T↔C & A↔G) to be favoured over transversions (other changes),[1] models must account for the possibility of non-homogeneous rates of exchange.[3] Some simpler approximate methods, such as those of Miyata & Yasunaga and Nei & Gojobori, neglect to take these into account, which generates a faster computational time at the expense of accuracy; these methods will systematically overestimate N and underestimate S.[1]

Further, there may be a bias in which certain codons are preferred in a gene, as a certain combination of codons may improve translational efficiency.[1] A 2022 study reported that synonymous mutations in representative yeast genes are mostly strongly non-neutral, which calls into question the assumptions underlying use of the Ka/Ks ratio.[4]

In addition, as time progresses, it is possible for a site to undergo multiple modifications. For instance, a codon may switch from AAA→AAC→AAT→AAA. There is no way of detecting multiple substitutions at a single site, thus the estimate of the number of substitutions is always an underestimate. In addition, in the example above two non-synonymous and one synonymous substitution occurred at the third site; however, because substitutions restored the original sequence, there is no evidence of any substitution. As the divergence time between two sequences increases, so too does the amount of multiple substitutions. Thus "long branches" in a dN/dS analysis can lead to underestimates of both dN and dS, and the longer the branch, the harder it is to correct for the introduced noise.[3] Of course, the ancestral sequence is usually unknown, and two lineages being compared will have been evolving in parallel since their last common ancestor. This effect can be mitigated by constructing the ancestral sequence; the accuracy of this sequence is enhanced by having a large number of sequences descended from that common ancestor to constrain its sequence by phylogenetic methods.[1]

Methods that account for biases in codon usage and transition/transversion rates are substantially more reliable than those that do not.[1]


Although the Ka/Ks ratio is a good indicator of selective pressure at the sequence level, evolutionary change can often take place in the regulatory region of a gene which affects the level, timing or location of gene expression. Ka/Ks analysis will not detect such change. It will only calculate selective pressure within protein coding regions. In addition, selection that does not cause differences at an amino acid level—for instance, balancing selection—cannot be detected by these techniques.[1]

Another issue is that heterogeneity within a gene can make a result hard to interpret. For example, if Ka/Ks = 1, it could be due to relaxed selection, or to a chimera of positive and purifying selection at the locus. A solution to this limitation would be to apply Ka/Ks analysis across many species at individual codons.

The Ka/Ks method requires a rather strong signal in order to detect selection. In order to detect selection between lineages, then the selection, averaged over all sites in the sequence, must produce a Ka/Ks greater than one—quite a feat if regions of the gene are strongly conserved. In order to detect selection at specific sites, then the Ka/Ks ratio must be greater than one when averaged over all included lineages at that site—implying that the site must be under selective pressure in all sampled lineages. This limitation can be moderated by allowing the Ka/Ks rate to take multiple values across sites and across lineages; the inclusion of more lineages also increases the power of a sites-based approach.[1]

Further, the method lacks the capability to distinguish between positive and negative nonsynonymous substitutions. Some amino acids are chemically similar to one another, whereas other substitutions may place an amino acid with wildly different properties to its precursor. In most situations, a smaller chemical change is more likely to allow the protein to continue to function, and a large chemical change is likely to disrupt the chemical structure and cause the protein to malfunction. However, incorporating this into a model is not straightforward as the relationship between a nucleotide substitution and the effects of the modified chemical properties is very difficult to determine.[1]

An additional concern is that the effects of time must be incorporated into an analysis, if the lineages being compared are closely related; this is because it can take a number of generations for natural selection to "weed out" deleterious mutations from a population, especially if their effect on fitness is weak.[5][6][7][8] This limits the usefulness of the Ka/Ks ratio for comparing closely related populations.

Individual codon approach[edit]

Additional information can be gleaned by determining the Ka/Ks ratio at specific codons within a gene sequence. For instance, the frequency-tuning region of an opsin may be under enhanced selective pressure when a species colonises and adapts to new environment, whereas the region responsible for initializing a nerve signal may be under purifying selection. In order to detect such effects, one would ideally calculate the Ka/Ks ratio at each site. However this is computationally expensive and in practise, a number of Ka/Ks classes are established, and each site is assigned to the best-fitting class.[1]

The first step in identifying whether positive selection acts on sites is to compare a test where the Ka/Ks ratio is constrained to be < 1 in all sites to one where it may take any value, and see if permitting Ka/Ks to exceed 1 in some sites improves the fit of the model. If this is the case, then sites fitting into the class where Ka/Ks > 1 are candidates to be experiencing positive selection. This form of test can either identify sites that further laboratory research can examine to determine possible selective pressure; or, sites believed to have functional significance can be assigned into different Ka/Ks classes before the model is run.[1]


  1. ^ The terms Ka/Ks and dN/dS are used interchangeably. Note however that Dn and Ds are different parameters from dN and dS (or KA and KS ). Dn and Ds are count estimates, which represent the total numbers of non-synonymous and synonymous substitutions.
  2. ^ "Better" means that the change is advantageous and will be selected for by natural selection. "Worse" means that the change is harmful, and will be selected against.
  3. ^ Often but not always a "silent mutation".


  1. ^ a b c d e f g h i j k l m n o p q Yang Z, Bielawski JP (December 2000). "Statistical methods for detecting molecular adaptation". Trends in Ecology & Evolution. 15 (12): 496–503. CiteSeerX doi:10.1016/S0169-5347(00)01994-7. PMC 7134603. PMID 11114436.
  2. ^ Kosakovsky Pond SL, Frost SD (May 2005). "Not so different after all: a comparison of methods for detecting amino acid sites under selection". Molecular Biology and Evolution. 22 (5): 1208–1222. doi:10.1093/molbev/msi105. PMID 15703242.
  3. ^ a b Hurst LD (September 2002). "The Ka/Ks ratio: diagnosing the form of sequence evolution". Trends in Genetics. 18 (9): 486–487. doi:10.1016/S0168-9525(02)02722-1. PMID 12175810.
  4. ^ Shen X, Song S, Li C, Zhang J (June 2022). "Synonymous mutations in representative yeast genes are mostly strongly non-neutral". Nature. 606 (7915): 725–731. Bibcode:2022Natur.606..725S. doi:10.1038/s41586-022-04823-w. PMC 9650438. PMID 35676473. S2CID 249520936.
  5. ^ Rocha EP, Smith JM, Hurst LD, Holden MT, Cooper JE, Smith NH, Feil EJ (March 2006). "Comparisons of dN/dS are time dependent for closely related bacterial genomes". Journal of Theoretical Biology. 239 (2): 226–235. Bibcode:2006JThBi.239..226R. doi:10.1016/j.jtbi.2005.08.037. PMID 16239014.
  6. ^ Kryazhimskiy S, Plotkin JB (December 2008). "The population genetics of dN/dS". PLOS Genetics. 4 (12): e1000304. doi:10.1371/journal.pgen.1000304. PMC 2596312. PMID 19081788.
  7. ^ Peterson GI, Masel J (November 2009). "Quantitative prediction of molecular clock and ka/ks at short timescales". Molecular Biology and Evolution. 26 (11): 2595–2603. doi:10.1093/molbev/msp175. PMC 2912466. PMID 19661199.
  8. ^ Mugal CF, Wolf JB, Kaj I (January 2014). "Why time matters: codon evolution and the temporal dynamics of dN/dS". Molecular Biology and Evolution. 31 (1): 212–231. doi:10.1093/molbev/mst192. PMC 3879453. PMID 24129904.

Further reading[edit]

External links[edit]