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 |
WindowValue | Value that specifies the window length for the density
calculation. Default is |
CGThresholdValue | Controls the return of indices for regions where the |
Description
ntdensity(
plots
the density of nucleotides SeqNT
)A
, C
, G
,
and T
in sequence SeqNT
.
returns
a MATLAB structure with the density of nucleotides Density
= ntdensity(SeqNT
)A
, C
, G
,
and T
.
... = ntdensity(
calls SeqNT
, ...'PropertyName
', PropertyValue
,
...)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',
uses a window of length WindowValue
,
...)WindowValue
for
the density calculation. Default WindowValue
is length(
.SeqNT
)/20
[
returns indices for regions where the Density
, HighCG
]
= ntdensity(..., 'CGThreshold', CGThresholdValue
,
...)CG
content
of SeqNT
is greater than CGThresholdValue
.
Default CGThresholdValue
is 5
.
Examples
Create a random character vector to represent a nucleotide sequence.
s = randseq(1000, 'alphabet', 'dna');
Plot the density of nucleotides along the sequence.
ntdensity(s)
Version History
Introduced before R2006a
See Also
basecount
| codoncount
| cpgisland
| dimercount
| filter