quantilesBinnedSnpData: Quantiles of allelic R2 after binning

View source: R/quantgen.R

quantilesBinnedSnpDataR Documentation

Quantiles of allelic R2 after binning

Description

Calculate the quantiles of allelic R2 after binning.

Usage

quantilesBinnedSnpData(
  snp.data,
  snp.bins,
  quant.probs = seq(0, 1, 0.25),
  verbose = 1
)

Arguments

snp.data

numeric vector of SNP data (one value per SNP) with SNP identifiers as names

snp.bins

factor as returned by cut applied to SNP data (percentage of missing data, minor allele frequencies, etc) with SNP identifiers as names

quant.probs

numeric vector of probabilities with values in [0,1] to be used with quantile

verbose

verbosity level (0/1)

Value

list with the quantiles per bin, as well as the midpoint of each bin

Author(s)

Timothee Flutre


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.