Description Usage Arguments Value Author(s) References Examples
Calculate the combined CAnD test statistic p-value on a set of ancestry proportions estimated for a particular ancestral subpopulation of interest
1 | 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.
1 2 3 4 5 | data(ancestries)
euroCols <- grep("Euro",colnames(ancestries))
euro <- ancestries[,euroCols]
res <- calc_combP(euro)
res
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.