Description Usage Arguments Value Details Examples
The function returns basic statistics about read coverage per base. It can also plot a histogram of read coverage values.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | getCoverageStats(
object,
plot = FALSE,
both.strands = FALSE,
labels = TRUE,
...,
chunk.size = 1e+06
)
## S4 method for signature 'methylRaw'
getCoverageStats(
object,
plot = FALSE,
both.strands = FALSE,
labels = TRUE,
...,
chunk.size = 1e+06
)
## S4 method for signature 'methylRawDB'
getCoverageStats(
object,
plot = FALSE,
both.strands = FALSE,
labels = TRUE,
...,
chunk.size = 1e+06
)
|
object |
a |
plot |
plot a histogram of coverage if TRUE (default:FALSE) |
both.strands |
do stats and plot for both strands if TRUE (default:FALSE) |
labels |
should the bars of the histrogram have labels showing the percentage of values in each bin (default:TRUE) |
... |
options to be passed to |
chunk.size |
Number of rows to be taken as a chunk for processing the
|
a summary of coverage statistics or plot a histogram of coverage
The parameter chunk.size
is only used when working with
methylRawDB
or methylRawListDB
objects,
as they are read in chunk by chunk to enable processing large-sized objects
which are stored as flat file database.
Per default the chunk.size is set to 1M rows, which should work for most
systems. If you encounter memory problems or
have a high amount of memory available feel free to adjust the
chunk.size
.
1 2 3 4 5 | data(methylKit)
# gets coverage stats for the first sample in methylRawList.obj object
getCoverageStats(methylRawList.obj[[1]],plot=TRUE,
both.strands=FALSE,labels=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.