QuantileWidthFunctions: Get quantile positions

Description Usage Arguments Value Examples

Description

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

Usage

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

1
2
3
4
5
6
## 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)

CAGEr documentation built on Jan. 17, 2021, 2 a.m.