Documentation Center

  • Trial Software
  • Product Updates

int2aa

Convert amino acid sequence from integer to letter representation

Syntax

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

Input Arguments

SeqIntRow 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.
CaseValueString specifying the case of the returned string. Choices are 'upper' (default) or 'lower'.

Output Arguments

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

Description

SeqChar = int2aa(SeqInt) converts SeqInt, a row vector of integers specifying an amino acid sequence, to SeqChar, a 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 case of the returned string. 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

See Also

| | | |

Was this topic helpful?