distGrantham calculates normalized Grantham distance between two amino acid sequences. For details on calculations see Grantham R. 1974..

distGrantham(aa1, aa2)

Arguments

aa1

Character vector giving amino acid sequence using one letter codings. Each element must correspond to single amino acid.

aa2

Character vector giving amino acid sequence using one letter codings. Each element must correspond to single amino acid.

Value

Numeric vector of normalized Grantham distance between aa1 and

aa2.

Details

Distance between amino acid sequences is normalized by length of compared sequences.

Lengths of aa1 and aa2 must be equal.