CAnD {CAnD} | R Documentation |
Perform the CAnD test on a set of ancestry proportions estimated for a particular ancestral subpopulation of interest
CAnD(chrAncest, bonfCorr = TRUE)
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 |
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.
Caitlin McHugh mchughc@uw.edu
McHugh, C., Brown, L., Thornton, T. Detecting heterogeneity in population structure across the genome in admixed populations. Genetics, 2016.
data(ancestries) euroCols <- grep("Euro",colnames(ancestries)) euro <- ancestries[,euroCols] res <- CAnD(euro) res