basecount
Count nucleotides in sequence
Syntax
NTStruct
= basecount(SeqNT
)
NTStruct
= basecount(SeqNT
,
...'Ambiguous', AmbiguousValue
, ...)
NTStruct
= basecount(SeqNT
,
...'Gaps', GapsValue
, ...)
NTStruct
= basecount(SeqNT
,
...'Chart', ChartValue
, ...)
Input Arguments
SeqNT | One of the following:
|
AmbiguousValue | Character vector or string specifying how to treat ambiguous nucleotide characters
(
|
GapsValue | Specifies whether gaps, indicated by a hyphen ( |
ChartValue | Character vector or string specifying a chart type. Choices are
|
Output Arguments
NTStruct | 1-by-1 MATLAB structure containing the fields A , C , G ,
and T . |
Description
counts
the number of each type of base in NTStruct
= basecount(SeqNT
)SeqNT
, a nucleotide
sequence, and returns the counts in NTStruct
,
a 1-by-1 MATLAB structure containing the fields A
, C
, G
,
and T
.
The character
U
is added to theT
field.Ambiguous nucleotide characters (
R
,Y
,K
,M
,S
,W
,B
,D
,H
,V
, orN
), and gaps, indicated by a hyphen (-
), are ignored by default.Unrecognized characters are ignored and cause the following warning message.
Warning: Unknown symbols appear in the sequence. These will be ignored.
calls NTStruct
= basecount(SeqNT
,
...'PropertyName
', PropertyValue
,
...)basecount
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:
specifies
how to treat ambiguous nucleotide characters (NTStruct
= basecount(SeqNT
,
...'Ambiguous', AmbiguousValue
, ...)R
, Y
, K
, M
, S
, W
, B
, D
, H
, V
,
or N
). Choices are:
'ignore'
(default)'bundle'
'prorate'
'individual'
'warn'
specifies
whether gaps, indicated by a hyphen (NTStruct
= basecount(SeqNT
,
...'Gaps', GapsValue
, ...)-
), are counted
or ignored. Choices are true
or false
(default).
creates
a chart showing the relative proportions of the nucleotides. NTStruct
= basecount(SeqNT
,
...'Chart', ChartValue
, ...)ChartValue
can
be 'pie'
or 'bar'
.
Examples
Version History
Introduced before R2006a
See Also
aacount
| baselookup
| codoncount
| cpgisland
| dimercount
| nmercount
| ntdensity
| seqviewer