Learn R Programming

qtlhot (version 1.2.10)

quantile_highlod: Compute Quantiles of High LOD Scores

Description

The `quantile_highlod` function calculates quantiles of high LOD scores from a `highlod` object. It is used to summarize the distribution of LOD scores across the genome.

Usage

quantile_highlod(
  x,
  probs = NULL,
  lod.thr = NULL,
  n.quant,
  n.pheno,
  max.quantile = TRUE,
  ...
)

Value

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

Arguments

x

A `highlod` object containing LOD scores.

probs

A numeric vector of probabilities for quantiles. If `NULL`, quantiles are computed for all available data.

lod.thr

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

n.quant

Maximum number of quantiles to compute.

n.pheno

Number of phenotypes considered.

max.quantile

Logical; if `TRUE`, returns only the maximum quantile values.

...

Additional arguments passed to internal functions.

Examples

Run this code
if (FALSE) {
highlod_obj <- highlod(scan1, lod.thr = 2.5)
quantiles <- quantile_highlod(highlod_obj, probs = seq(0.1, 0.9, by = 0.1))
}

Run the code above in your browser using DataLab