CAnD {CAnD}R Documentation

Peform the CAnD Test

Description

Perform the CAnD test on a set of ancestry proportions estimated for a particular ancestral subpopulation of interest

Usage

CAnD(chrAncest, bonfCorr = TRUE)

Arguments

chrAncest

A data.frame holding the ancestral proportions; each row corresponds to a sample and each column corresponds to a chromosomal/chromosomal segment ancestry proportion. Note: only include the proportions for one ancestral population at a time.

bonfCorr

A logical argument indicating whether the p-value should be corrected for multiple testing using Bonferroni correction. The default is TRUE.

Value

A CAnDResult object holding the p-value for each chromosome/chromosomal segment, the overall CAnD p-value, the CAnD statistic and whether the Bonferroni multiple testing correction was used.

Author(s)

Caitlin McHugh mchughc@uw.edu

References

McHugh, C., Brown, L., Thornton, T. Detecting heterogeneity in population structure across the genome in admixed populations. Genetics, 2016.

Examples

data(ancestries)
euroCols <- grep("Euro",colnames(ancestries))
euro <- ancestries[,euroCols]
res <- CAnD(euro)
res

[Package CAnD version 1.12.0 Index]