int2aa

Convert amino acid sequence from integer to letter representation

Syntax

SeqChar = int2aa(SeqInt,
                 'PropertyName', PropertyValue...)

int2aa(..., 'Case', CaseValue)

Arguments

SeqInt

Amino acid sequence represented with integers. Enter a vector of integers from the table Mapping Amino Acid Integers to Letters below. The array does not have to be of type integer, but it does have to contain only integer numbers. Integers are arbitrarily assigned to IUB/IUPAC letters.

Case

Property to select the case of the returned character string. Enter either 'upper' or 'lower'. Default is 'upper'.

Mapping Amino Acid Integers to Letters

Amino Acid

Code

Amino AcidCodeAmino Acid 

Alanine

A—1

Isoleucine

I—10

Tyrosine

Y—19

Arginine

R—2

Leucine

L—11

Valine

V—20

Asparagine

N—3

Lysine

K—12

Aspartic acid or Asparagine

B—21

Aspartic acid (aspartate)

D—4

Methionine

M—13

Glutamic acid or Glutamine

Z—22

Cystine

C—5

Phenylalanine

F—14

Any amino acid

X—23

Glutamine

Q—6

Proline

P—15

Translation stop

*—24

Glutamic acid (glutamate)

E—7

Serine

S—16

Gap of indeterminate length

- —25

Glycine

G—8

Threonine

T—17

Unknown or any integer not in table

?—0

Histidine

H—9

Tryptophan

W—18

Description

SeqChar = int2aa(SeqInt, 'PropertyName', PropertyValue...) converts a 1-by-N array of integers to a character string using the table Mapping Amino Acid Interger sot Letters above.

int2aa(..., 'Case', CaseValue) sets the output case of the nucleotide string. Default is uppercase.

Examples

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

s =
MATLAB

See Also

Bioinformatics Toolbox functions aminolookup, aa2int, int2nt, nt2int


© 1994-2005 The MathWorks, Inc.