aacount - Count amino acids in sequence

Syntax

AAStruct = aacount(SeqAA)

AAStruct = aacount(SeqAA, ...'Chart', ChartValue, ...)
AAStruct = aacount(SeqAA, ...'Others', OthersValue, ...)
AAStruct = aacount(SeqAA, ...'Structure', StructureValue, ...)

Arguments

SeqAA

One of the following:

Examples: 'ARN' or [1 2 3]

ChartValueString specifying a chart type. Choices are 'pie' or 'bar'.
OthersValue

String specifying how to count ambiguous characters (B, Z, X), the stop character (*), and gaps indicated by a hyphen (-). Choices are 'full' (lists the ambiguous characters in separate fields) or 'bundle' (lists the ambiguous characters together in the field Others). Default is 'bundle'.

StructureValueSuppresses the unknown characters warning when set to 'full' .

Return Values

AAStruct1-by-1 MATLAB structure containing fields for the standard 20 amino acids (A, R, N, D, C, Q, E, G, H, I, L, K, M, F, P, S, T, W, Y, and V).

Description

AAStruct = aacount(SeqAA) counts the number of each type of amino acid in SeqAA, an amino acid sequence, and returns the counts in AAStruct, a 1-by-1 MATLAB structure containing fields for the standard 20 amino acids (A, R, N, D, C, Q, E, G, H, I, L, K, M, F, P, S, T, W, Y, and V).

AAStruct = aacount(SeqAA, ...'PropertyName', PropertyValue, ...) calls aacount with optional properties that use property name/property value pairs. You can specify one or more properties in any order. Each PropertyName must be enclosed in single quotation marks and is case insensitive. These property name/property value pairs are as follows:


AAStruct = aacount(SeqAA, ...'Chart', ChartValue, ...)
creates a chart showing the relative proportions of the amino acids. ChartValue can be 'pie' or 'bar'.

AAStruct = aacount(SeqAA, ...'Others', OthersValue, ...) specifies how to count ambiguous characters (B, Z, or X), the stop character (*), and gaps indicated by a hyphen (-). Choices are 'full' (lists the ambiguous characters in separate fields) or 'bundle' (lists the ambiguous characters together in the field Others). Default is 'bundle'.

AAStruct = aacount(SeqAA, ...'Structure', StructureValue, ...) suppresses the unknown characters warning when StructureValue is set to 'full'.

Examples

  1. Create an amino acid sequence.

    Seq = 'MATLAB';
    
  2. Count the amino acids in the sequence and return the results in a structure.

    AA =  aacount(Seq)
    
    Warning: Ambiguous symbols 'B' appear in the sequence. These will be in Others.
    
    AA = 
    
         A: 2
         R: 0
         N: 0
         D: 0
         C: 0
         Q: 0
         E: 0
         G: 0
         H: 0
         I: 0
         L: 1
         K: 0
         M: 1
         F: 0
         P: 0
         S: 0
         T: 1
         W: 0
         Y: 0
         V: 0
    Others: 1
    
  3. Get the count for alanine (A) residues.

    AA.A
    
    ans =
    
           2
  4. Create a random character string to represent an amino acid sequence.

    Seq = randseq(20, 'alphabet', 'amino')
    
    Seq =
    
       dwcztecakfuecvifchds
  5. Count the amino acids in the sequence, return the results in a structure, and display the results in a pie chart.

    AA =  aacount(Seq, 'chart', 'pie');

See Also

Bioinformatics Toolbox functions: aminolookup, atomiccomp, basecount, codoncount, dimercount, isoelectric, molweight, proteinplot, proteinpropplot, seqtool

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS