codoncount - Count codons in nucleotide sequence

Syntax

Codons = codoncount(SeqNT)
[Codons, CodonArray] = codoncount(SeqNT)

... = codoncount(SeqNT, ...'Frame', FrameValue, ...)
... = codoncount(SeqNT, ...'Reverse', ReverseValue, ...)
... = codoncount(SeqNT, ...'Figure', FigureValue, ...)

Arguments

SeqNT

One of the following:

Examples: 'ACGT' or [1 2 3 4]

FrameValue

Integer specifying a reading frame in the nucleotide sequence. Choices are 1 (default), 2, or 3.

ReverseValue

Controls the return of the codon count for the reverse complement sequence of the nucleotide sequence specified by SeqNT. Choices are true or false (default).

FigureValue

Controls the display of a heat map of the codon counts. Choices are true or false (default).

Return Values

CodonsMATLAB structure containing fields for the 64 possible codons (AAA, AAC, AAG, ..., TTG, TTT), which contain the codon counts in SeqNT.
CodonArrayA 4-by-4-by-4 array containing the raw count data for each codon. The three dimensions correspond to the three positions in the codon, and the indices to each element are represented by 1 = A, 2 = C, 3 = G, and 4 = T. For example, the element (2,3,4) in the array contains the number of CGT codons.

Description

Codons = codoncount(SeqNT) counts the codons in SeqNT, a nucleotide sequence, and returns the codon counts in Codons, a MATLAB structure containing fields for the 64 possible codons (AAA, AAC, AAG, ..., TTG, TTT).

[Codons, CodonArray] = codoncount(SeqNT) returns CodonArray, a 4-by-4-by-4 array containing the raw count data for each codon. The three dimensions correspond to the three positions in the codon, and the indices to each element are represented by 1 = A, 2 = C, 3 = G, and 4 = T. For example, the element (2,3,4) in the array contains the number of CGT codons.

... = codoncount(SeqNT, ...'PropertyName', PropertyValue, ...) calls codoncount 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:


... = codoncount(SeqNT, ...'Frame', FrameValue, ...)
counts the codons in the reading frame specified by FrameValue, which can be 1 (default), 2, or 3.

... = codoncount(SeqNT, ...'Reverse', ReverseValue, ...) controls the return of the codon count for the reverse complement sequence of SeqNT. Choices are true or false (default).

... = codoncount(SeqNT, ...'Figure', FigureValue, ...) controls the display of a heat map of the codon counts. Choices are true or false (default).

Examples

See Also

Bioinformatics Toolbox™ functions: aacount, basecount, baselookup, codonbias, dimercount, nmercount, ntdensity, seqrcomplement, seqwordcount

  


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