Skip to Main Content Skip to Search
Product Documentation

ntdensity - Plot density of nucleotides along sequence

Syntax

ntdensity(SeqNT)
Density = ntdensity(SeqNT)

... = ntdensity(..., 'Window', WindowValue, ...)
[Density, HighCG] = ntdensity(..., 'CGThreshold', CGThresholdValue, ...)

Arguments

SeqNT

One of the following:

    Note   Although you can submit a sequence with nucleotides other than A, C, G, and T, ntdensity plots only A, C, G, and T.

WindowValue

Value that specifies the window length for the density calculation. Default is length(SeqNT)/20.

CGThresholdValue

Controls the return of indices for regions where the CG content of SeqNT is greater than CGThresholdValue. Default is 5.

Description

ntdensity(SeqNT) plots the density of nucleotides A, C, G, and T in sequence SeqNT.

Density = ntdensity(SeqNT) returns a MATLAB structure with the density of nucleotides A, C, G, and T.

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


... = ntdensity(..., 'Window', WindowValue, ...)
uses a window of length WindowValue for the density calculation. Default WindowValue is length(SeqNT)/20.

[Density, HighCG] = ntdensity(..., 'CGThreshold', CGThresholdValue, ...) returns indices for regions where the CG content of SeqNT is greater than CGThresholdValue. Default CGThresholdValue is 5.

Examples

  1. Create a random character string to represent a nucleotide sequence.

    s = randseq(1000, 'alphabet', 'dna');
  2. Plot the density of nucleotides along the sequence.

    ntdensity(s)

See Also

basecount | codoncount | cpgisland | dimercount | filter

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS