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
SeqChar | Amino acid sequence specified by a character vector of single-letter codes. |
Description
converts SeqChar = int2aa(SeqInt)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.
specifies
the upper or lower case. Choices are SeqChar = int2aa(SeqInt,
'Case', CaseValue)'upper' (default)
or 'lower'.
Mapping Amino Acid Integers to Letter Codes
| Amino Acid | Integer | Code |
|---|---|---|
| Alanine | 1 | A |
| Arginine | 2 | R |
| Asparagine | 3 | N |
| Aspartic acid (Aspartate) | 4 | D |
| Cysteine | 5 | C |
| Glutamine | 6 | Q |
| Glutamic acid (Glutamate) | 7 | E |
| Glycine | 8 | G |
| Histidine | 9 | H |
| Isoleucine | 10 | I |
| Leucine | 11 | L |
| Lysine | 12 | K |
| Methionine | 13 | M |
| Phenylalanine | 14 | F |
| Proline | 15 | P |
| Serine | 16 | S |
| Threonine | 17 | T |
| Tryptophan | 18 | W |
| Tyrosine | 19 | Y |
| Valine | 20 | V |
| Asparagine or Aspartic acid (Aspartate) | 21 | B |
| Glutamine or Glutamic acid (Glutamate) | 22 | Z |
| Unknown amino acid (any amino acid) | 23 | X |
| 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
See Also
aa2int | aminolookup | int2nt | isotopicdist | nt2int