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
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
|
Logical that specifies whether to treat the ranges defined by Note This name-value pair argument is ignored when using the Default: |
|
Specifies the minimum number of base positions that a read must overlap in a range or set of ranges, to be counted. This value can be any of the following:
Default: |
|
Logical specifying whether short reads are spliced during mapping
(as in mRNA-to-genome mapping). N symbols in the Default: |
|
Character vector or string specifying the method to measure the abundance of reads. Choices are:
Default: |
Output Arguments
|
Either of the following:
|
|
Either of the following:
|
Examples
See Also
BioMap
| getIndex
| getBaseCoverage
| getAlignment
| getCompactAlignment
| align2cigar
| cigar2align
| featurecount