View source: R/grantham_distance.R
| grantham_distance_exact | R Documentation | 
This function calculates the Grantham's distance for pairs of amino acids. It uses the values for the amino acid properties as published in Table 1 of Science (1974). 185(4154): 862–4 by R. Grantham.
grantham_distance_exact(
  x,
  y,
  alpha = 1.833,
  beta = 0.1018,
  gamma = 0.000399,
  rho = 50.723
)
x | 
 A character vector of amino acid three-letter codes, e.g.   | 
y | 
 A character vector of amino acid three-letter codes.  | 
alpha | 
 The constant   | 
beta | 
 The constant   | 
gamma | 
 The constant   | 
rho | 
 Grantham's distances reported in Table 2, Science (1974).
185(4154): 862–4 by R. Grantham, are scaled by a factor (here named
  | 
Contrary to Grantham's distances presented in Table 2 of Grantham's paper, the distances returned by this function are calculated anew starting from the amino acid properties (composition, polarity and molecular volume). No rounding to nearest integer is performed.
A tibble of Grantham's distances for each amino acid pair.
.
grantham_equation()
grantham_distance_exact(c('Ser', 'Ser'), c('Pro', 'Trp'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.