.get.quant.pos {CAGEr} | R Documentation |
Function that calculates position of quantiles for CTSS clusters based on distribution of tpm within the cluster
.get.quant.pos(cumsums, clusters, q)
cumsums |
Named list of vectors containing cumulative sum for each cluster (returned by 'get.cumsum' function). |
clusters |
GRanges object representing tag clusters or consensus 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.
## Not run: #because it runs through quantilePositions() anyway. cumsums <- CTSScumulativesTagClusters(object, 1) clusters <- tagClustersGR(object, 1) .get.quant.pos(cumsums, clusters, c(.1, .9)) ## End(Not run)