Description Usage Arguments Details Value Author(s) See Also Examples
Get the width of the window from the half-maximum of the coverage profile.
1 |
profile |
a numeric vector containing a coverage profile, as produced by |
regions |
the |
ext |
an integer scalar specifying the average fragment length for single-end data |
proportion |
a numeric scalar specifying the proportion of the maximum coverage at which to compute the window width |
rlen |
a numeric scalar or vector containing read lengths, if any |
This function computes the ideal window size, based on the width of the peak in the coverage profile at the specified proportion
of the maximum.
Obviously, the values of regions
and ext
should be the same as those used in profileSites
(set ext
to the median fragment length for paired-end data).
The regions
should contain windows of a constant size.
Some subtleties are involved in obtaining the window width.
First, twice the average fragment length must be subtracted from the peak width, as the profile is constructed from (inferred) fragments.
The size of the viewpoints in regions
must also be subtracted, to account for the inflated peak width when spatial resolution is lost after aggregation across many windows.
An integer scalar is returned, specifying the ideal window width.
Aaron Lun
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.