distGrantham {midasHLA} | R Documentation

## Calculate Grantham distance between amino acid sequences

### Description

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

### Usage

    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.

### Details

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

Lengths of `aa1` and `aa2` must be equal.

### Value

Numeric vector of normalized Grantham distance between `aa1` and `aa2`.

[Package midasHLA version 1.2.0 Index]