dimercount

Count dimers in a sequence

Syntax

Dimers = dimercount(SeqNT,
                    'PropertyName', PropertyValue...)
[Dimers, Percent] = dimercount(SeqNT)

dimercount(..., 'Chart', ChartStyle)

Arguments

SeqNT

Nucleotide sequence. Enter a character string or vector of integers.

Examples: 'ACGT' and [1 2 3 4].You can also enter a structure with the field Sequence.

ChartStyle

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

Description

Dimers = dimercount(SeqNT, 'PropertyName', PropertyValue...) counts the number of nucleotide dimers in a 1-by-1 sequence and returns the dimer counts in a structure with the fields AA, AC, AG, AT, CA, CC, CG, CT, GA, GC, GG, GT, TA, TC, TG, TT.

[Dimers, Percent] = dimercount(SeqNT) returns a 4-by-4 matrix with the relative proportions of the dimers in SeqNT. The rows correspond to A, C, G, and T in the first element of the dimer, and the columns correspond to A, C, G, and T in the second element.

dimercount(..., 'Chart', ChartStyle) creates a chart showing the relative proportions of the dimers. Valid styles are 'Pie' and 'Bar'.

Examples

Count the number of dimers in a nucleotide sequence.

dimercount('TAGCTGGCCAAGCGAGCTTG')

ans = 
    AA: 1
    AC: 0
    AG: 3
    AT: 0
    CA: 1
    CC: 1
    CG: 1
    CT: 2
    GA: 1
    GC: 4
    GG: 1
    GT: 0
    TA: 1
    TC: 0
    TG: 2
    TT: 1

See Also

Bioinformatics Toolbox functions aacount, basecount, baselookup, codoncount, nmercount


© 1994-2005 The MathWorks, Inc.