aacount

Count the amino acids in a sequence

Syntax

Amino = aacount(SeqAA, 'PropertyName', PropertyValue...)
aacount(...,'Chart', ChartValue)
aacount(...,'Others', OthersValue)
aacount(..., 'Structure', StructureValue)

Arguments

SeqAA

Amino acid sequence. Enter a character string or vector of integers from the table . Examples: 'ARN' or [1 2 3]. You can also enter a structure with the field Sequence.

Chart

Property to select a type of plot. Enter either 'pie' or 'bar'.

Others

Property to control the counting of ambiguous characters individually. Enter either 'full' or 'bundle'. The default value is 'bundle'.

Description

Amino = aacount(SeqAA, 'PropertyName', PropertyValue...) counts the type and number of amino acids in an amino acid sequence (SeqAA) and returns the counts in a 1-by-1 structure (Amino) with 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 V ).

aacount(...,'Chart', ChartValue) creates a chart showing the relative proportions of the amino acids.

aacount(...,'Others', OthersValue), when OthersValue is 'full'', counts the ambiguous amino acid characters individually instead of adding them together in the field Others.

aacount(..., 'Structure', StructureValue) when StructureValue is 'full', blocks the unknown characters warning and ignores counting unknown characters.

Examples

Count the amino acids in the string 'MATLAB'.

AA  = aacount('MATLAB')

Warning: Symbols other than the standard 20 amino acids appear
in the sequence.
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

AA.A
ans =
       2

See Also

Bioinformatics Toolbox functions basecount, codoncount, dimercount


© 1994-2005 The MathWorks, Inc.