.get.quant.pos | R Documentation |
Private function that calculates position of quantiles for CTSS clusters based on distribution of tags within the clusters.
.get.quant.pos(cum.sums, clusters, q)
cum.sums |
Named list of vectors containing cumulative sum for each
cluster (returned by the |
clusters |
|
q |
desired quantiles - single value or a vector of values. |
Returns the clusters
object with one more metadata column per value
in q
, containing Rle
integers giving the relative distance of the
quantile boundaries to the start position.
cum.sums <- RleList(`1` = Rle(1), `2` = cumsum(Rle(c(1, 1, 1, 2, 4, 0, 1, 1))))
clusters <- GRanges(c("chr1:100-101", "chr1:120-127"))
CAGEr:::.get.quant.pos(cum.sums, clusters, c(.2, .8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.