distGrantham: Calculate Grantham distance between amino acid sequences

View source: R/utils.R

distGranthamR 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.


Genentech/midasHLA documentation built on Feb. 12, 2024, 9:38 a.m.