Learn R Programming

qtlhot (version 1.2.10)

quantile_hotperm: Compute Quantiles for Hotperm Results

Description

The `quantile_hotperm` function calculates quantiles for permutation test results. It is used to summarize the distribution of hotspot sizes and LOD scores.

Usage

quantile_hotperm(x, probs = attr(x, "alpha.levels"), ..., lod.thr = NULL)

Value

A numeric vector or matrix of quantiles, depending on the input parameters.

Arguments

x

A `hotperm` object containing permutation test results.

probs

A numeric vector of probabilities for quantiles. Defaults to the alpha levels in the object.

...

Additional arguments passed to internal functions.

lod.thr

LOD threshold for filtering scores. If `NULL`, no filtering is applied.

Examples

Run this code
if (FALSE) {
hotperm_obj <- hotperm(cross, n.quant = 300, n.perm = 100, lod.thrs = c(2.5, 3.0))
quantiles <- quantile_hotperm(hotperm_obj, probs = seq(0.1, 0.9, by = 0.1))
}

Run the code above in your browser using DataLab