calc_combP {CAnD}R Documentation

Calculate the Combined CAnD Test Statistic P-value

Description

Calculate the combined CAnD test statistic p-value on a set of ancestry proportions estimated for a particular ancestral subpopulation of interest

Usage

calc_combP(chrAncest)

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.

Value

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.

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 <- calc_combP(euro)
res

[Package CAnD version 1.12.0 Index]