Main Content

int2aa

Convert amino acid sequence from integer to letter representation

Syntax

SeqChar = int2aa(SeqInt)
SeqChar = int2aa(SeqInt, 'Case', CaseValue)

Input Arguments

SeqInt Row vector of integers specifying an amino acid sequence. For valid integers, see the table Mapping Amino Acid Integers to Letter Codes. Integers are arbitrarily assigned to IUB/IUPAC letters.
CaseValue Character vector or string specifying the upper or lower case. Choices are 'upper' (default) or 'lower'.

Output Arguments

SeqCharAmino acid sequence specified by a character vector of single-letter codes.

Description

SeqChar = int2aa(SeqInt) converts SeqInt, a row vector of integers specifying an amino acid sequence, to SeqChar, a character vector or string of single-letter codes specifying the same amino acid sequence. For valid integers, see the table Mapping Amino Acid Integers to Letter Codes.

SeqChar = int2aa(SeqInt, 'Case', CaseValue) specifies the upper or lower case. Choices are 'upper' (default) or 'lower'.

Mapping Amino Acid Integers to Letter Codes

Amino AcidIntegerCode
Alanine 1A
Arginine 2R
Asparagine 3N
Aspartic acid (Aspartate) 4D
Cysteine 5C
Glutamine 6Q
Glutamic acid (Glutamate) 7E
Glycine 8G
Histidine 9H
Isoleucine 10I
Leucine 11L
Lysine 12K
Methionine 13M
Phenylalanine 14F
Proline 15P
Serine16S
Threonine17T
Tryptophan 18W
Tyrosine 19Y
Valine 20V
Asparagine or Aspartic acid (Aspartate) 21B
Glutamine or Glutamic acid (Glutamate)22Z
Unknown amino acid (any amino acid) 23X
Translation stop 24*
Gap of indeterminate length 25-
Unknown (any integer not in table)0 or ≥ 26?

Examples

Convert an amino acid sequence from integer to letter representation.

s = int2aa([13 1 17 11 1 21])

s =

MATLAB

Version History

Introduced before R2006a