getCounts
Class: BioMap
Return count of read sequences aligned to reference sequence
in BioMap
object
Syntax
Count
= getCounts(BioObj
, StartPos
, EndPos
)
GroupCount
= getCounts(BioObj
, StartPos
, EndPos
, Groups
)
GroupCount
= getCounts(BioObj
, StartPos
, EndPos
, Groups
, R
)
___ = getCounts(___, Name,Value)
Description
returns Count
= getCounts(BioObj
, StartPos
, EndPos
)Count
,
a nonnegative integer specifying the number of read sequences in BioObj
,
a BioMap
object, that align to a specific range
or set of ranges in the reference sequence. The range or set of ranges
are defined by StartPos
and EndPos
. StartPos
and EndPos
can
be two nonnegative integers such that StartPos
is
less than EndPos
, and both integers are
smaller than the length of the reference sequence. StartPos
and EndPos
can
also be two column vectors representing a set of ranges (overlapping
or segmented).
By default, getCounts
counts each read
only once. Therefore, if a read spans multiple ranges, that read instance
is counted only once. When StartPos
and EndPos
specify
overlapping ranges, the overlapping ranges are considered as one range.
specifies GroupCount
= getCounts(BioObj
, StartPos
, EndPos
, Groups
)Groups
, a vector of integers or cell array of
character vectors or string vector, indicating groups that segmented ranges belong to.
The segmented ranges are treated independently.
specifies
a reference for each of the segmented ranges defined by GroupCount
= getCounts(BioObj
, StartPos
, EndPos
, Groups
, R
)StartPos
, EndPos
,
and Groups
.
___ = getCounts(___,
uses
additional options specified by one or more Name,Value
)Name,Value
pair
arguments.
Input Arguments
| Object of the |
| Either of the following:
|
| Either of the following:
|
| Row vector of integers, cell array of character vectors, or string vector of the same size as
|
| Vector of positive integers indexing the For a given value of |
Name-Value Arguments
Output Arguments
| Either of the following:
|
| Either of the following:
|
Examples
See Also
BioMap
| getIndex
| getBaseCoverage
| getAlignment
| getCompactAlignment
| align2cigar
| cigar2align
| featurecount