.get.quant.pos {CAGEr} | R Documentation

## Get quantile positions

### Description

Function that calculates position of quantiles for CTSS clusters based on distribution of tpm within the cluster

### Usage

    .get.quant.pos(cumsums, clusters, q)

### Arguments

`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.

### Value

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.

### Examples

    ## 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)

[Package CAGEr version 1.30.3 Index]