Main Content

aminolookup

Find amino acid codes, integers, abbreviations, names, and codons

    Description

    aminolookup displays a table of amino acid codes, integers, abbreviations, names, and codons.

    conversion = aminolookup(SeqAA) converts between single-letter codes and three-letter abbreviations for an amino acid sequence.

    example

    lookupInfo = aminolookup(Code=aaCode) displays the corresponding amino acid three-letter abbreviation and name.

    example

    lookupInfo = aminolookup(Integer=aaInteger) displays the corresponding amino acid single-letter code, three-letter abbreviation, and name.

    example

    lookupInfo = aminolookup(Abbreviation=aaAbbreviation) displays the corresponding amino acid single-letter code and name.

    example

    lookupInfo = aminolookup(Name=aaName) displays the corresponding amino acid single-letter code and three-letter abbreviation.

    example

    Examples

    collapse all

    Convert an amino acid sequence in single-letter codes to the corresponding three-letter abbreviations.

    aminolookup('MWKQAEDIRDIYDF')
    ans = 
    'MetTrpLysGlnAlaGluAspIleArgAspIleTyrAspPhe'
    

    Convert an amino acid sequence in three-letter abbreviations to the corresponding single-letter codes.

    aminolookup('MetTrpLysGlnAlaGluAspIleArgAspIleTyrAspPhe')
    ans = 
    'MWKQAEDIRDIYDF'
    

    Display the three-letter abbreviation and name for the amino acid corresponding to the single-letter code R.

    aminolookup('Code', 'R')
    ans = 
        'Arg	Arginine
         '
    
    

    Display the single-letter code, three-letter abbreviation, and name for the amino acid corresponding to the integer 1.

    aminolookup('Integer', 1)
    ans = 
        'A	Ala	Alanine
         '
    
    

    Display the single-letter code and name for the amino acid corresponding to the three-letter abbreviation asn.

    aminolookup('Abbreviation', 'asn')
    ans = 
        'N	Asparagine
         '
    
    

    Display the single-letter code and three-letter abbreviation for the amino acid proline.

    aminolookup('Name','proline')
    ans = 
        'P	Pro
         '
    
    

    Input Arguments

    collapse all

    Amino acid sequence, specified as a character vector or string scalar containing single-letter codes or three-letter abbreviations representing an amino acid sequence.

    The following table displays the amino acid codes, integers, abbreviations, names, and codons.

    Amino Acid Lookup

    CodeIntegerAbbreviationAmino Acid NameCodons
    A 1Ala Alanine GCU GCC GCA GCG
    R 2Arg Arginine CGU CGC CGA CGG AGA AGG
    N 3Asn Asparagine AAU AAC
    D 4Asp Aspartic acid (Aspartate) GAU GAC
    C 5CysCysteine UGU UGC
    Q 6Gln Glutamine CAA CAG
    E 7Glu Glutamic acid (Glutamate) GAA GAG
    G 8Gly Glycine GGU GGC GGA GGG
    H 9His Histidine CAU CAC
    I 10Ile Isoleucine AUU AUC AUA
    L 11Leu Leucine UUA UUG CUU CUC CUA CUG
    K 12Lys Lysine AAA AAG
    M 13Met Methionine AUG
    F 14Phe Phenylalanine UUU UUC
    P 15Pro Proline CCU CCC CCA CCG
    S 16Ser Serine UCU UCC UCA UCG AGU AGC
    T 17Thr Threonine ACU ACC ACA ACG
    W 18Trp Tryptophan UGG
    Y 19Tyr Tyrosine UAU UAC
    V 20Val Valine GUU GUC GUA GUG
    B 21Asx Asparagine or Aspartic acid (Aspartate)AAU AAC GAU GAC
    Z 22Glx Glutamine or Glutamic acid (Glutamate)CAA CAG GAA GAG
    X 23Xaa Any amino acidAll codons
    * 24END Termination codon (translation stop) UAA UAG UGA
    - 25GAP Gap of unknown length NA

    If you enter one of the ambiguous single-letter codes B, Z, or X, this function displays the corresponding abbreviation for the ambiguous amino acid character.

    Example: "abc"

    Data Types: char | string

    Single-letter code representing an amino acid, specified as a character vector or string scalar. The function displays the corresponding amino acid three-letter abbreviation and name.

    Data Types: char | string

    Single integer representing an amino acid, specified as an integer. The function displays the corresponding amino acid single-letter code, three-letter abbreviation, and name.

    Data Types: double

    Three-letter abbreviation representing an amino acid, specified as a character vector or string scalar. The function displays the corresponding amino acid single-letter code and name.

    Data Types: char | string

    Amino acid name, specified as a character vector or string scalar. The function displays the corresponding amino acid single-letter code and three-letter abbreviation.

    Data Types: char | string

    Output Arguments

    collapse all

    Single letter code or three-letter abbreviation for an amino acid sequence, returned as a character vector.

    If the input is a character vector or string scalar of single-letter codes, then the output is a character vector of three-letter abbreviations.

    If the input is a character vector or string scalar of three-letter abbreviations, then the output is a character vector of the corresponding single-letter codes.

    Corresponding amino acid single-letter code, three-letter abbreviation, and/or name, returned as a character vector.

    Version History

    Introduced before R2006a