countReads | R Documentation |
This function counts mapped reads from multiple BAM files
overlapping genomic intervals in genomicFeature
in a
TCA
object. The resulted count table is stored in
count
slot of the TCA
object.
countReads(object, dir, method = "summarizeoverlaps", zero.based = TRUE, ...)
object |
a |
dir |
character string giving the directory of BAM files. |
method |
character string giving the counting method. Options
are " |
zero.based |
Logical. If TRUE, the start positions of the genomic intervals are 0-based, if FALSE, the start positions will be 1-based. |
... |
additional arguments passed to
|
This function provides two options to count the mapped reads:
"summarizeOverlaps
" in the GenomicAlignments package and
"featureCounts
" in the Rsubread package. As Rsubread package
is only avaible for linux systems, Windows users can only choose
"summarizeOverlaps
". The user could further customize the
counting paramters by passing additional arguments (...), otherwise
the default settings of the two methods will be used. For details
of the counting parameters, see summarizeOverlaps
,
featureCounts
.
A TCA object with updated count
slot.
Mengjun Wu
summarizeOverlaps
, featureCounts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.