| Bioinformatics Toolbox | ![]() |
Convert an amino acid sequence from a letter to an integer representation
SeqInt = aa2int(SeqChar)
| SeqChar | Amino acid sequence represented with letters. Enter a character string with characters from the table Mapping Amino Acid Letters to Integers (unknown characters are mapped to 0). Integers are arbitrarily assigned to IUB/IUPAC letters. You can also enter a structure with a field Sequence. |
| SeqInt | Amino acid sequence represented with numbers. |
SeqInt = aa2int(SeqChar)converts a character string of amino acids (SeqChar) to a 1-by-N array of integers (SeqInt) using the table Mapping Amino Acid Letter to Integers.
Convert an amino acid sequence of letters to a vector of integers.
SeqInt = aa2int('MATLAB')
SeqInt =
13 1 17 11 1 21
Convert a random amino acid sequence of letters to integers.
SeqChar = randseq(20, 'alphabet', 'amino')
SeqChar =
dwcztecakfuecvifchds
SeqInt = aa2int(SeqChar)
SeqInt =
Columns 1 through 13
4 18 5 22 17 7 5 1 12 14 0 7 5
Columns 14 through 20
20 10 14 5 9 4 16
Bioinformatics Toolbox functions aminolookup, int2aa, int2nt, nt2int
| Functions — Alphabetical List | aa2nt | ![]() |
© 1994-2005 The MathWorks, Inc.