calc_combP {CAnD} | R Documentation |
Calculate the combined CAnD test statistic p-value on a set of ancestry proportions estimated for a particular ancestral subpopulation of interest
calc_combP(chrAncest)
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. |
A vector
of length two where ‘statistic’ is the
combined CAnD statistic and ‘pvalue’ is it's corresponding p-value,
where the combined statistic is combined over all
chromosomes/chromosomal segments included in chrAncest
.
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 <- calc_combP(euro) res