gd {agvgd} | R Documentation |
Grantham deviation
Description
This function calculates the Grantham deviation ():
where is the value for composition
of amino acid
,
i.e. the atomic weight ratio of hetero (noncarbon) elements in end groups or
rings to carbons in the side chain;
is the value for polarity
of amino acid
; and,
is the value for molecular
volume
of amino acid
.
,
and
are looked up in
grantham::amino_acids_properties based on the amino acid identities passed
in
x
. The function is implemented in
dev()
. Remaining
variables in the equation are arguments to gd()
and hence are explained
below in the Arguments section.
Usage
gd(
x,
c_min,
c_max,
p_min,
p_max,
v_min,
v_max,
alpha = 1.833,
beta = 0.1018,
gamma = 0.000399,
rho = 50.723
)
Arguments
x |
A character vector of one-letter amino acid codes, indicating missense substitutions. |
c_min |
Amino acid composition, minimum value. |
c_max |
Amino acid, composition, maximum value. |
p_min |
Amino acid polarity, minimum value. |
p_max |
Amino acid polarity, maximum value. |
v_min |
Amino acid molecular volume, maximum value. |
v_max |
Amino acid molecular volume, maximum value. |
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
|
Value
A numeric vector of Grantham deviations. Each deviation corresponds
to one of the amino acids indicated in x
.
See Also
Examples
gd('S', c_min = 0.39, c_max = 0.74, p_min =4.9, p_max =8.6, v_min = 3, v_max = 32.5)