calc_combP: Calculate the Combined CAnD Test Statistic P-value

Description Usage Arguments Value Author(s) References Examples

View source: R/calc_combP.R

Description

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

Usage

1
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

1
2
3
4
5
data(ancestries)
euroCols <- grep("Euro",colnames(ancestries))
euro <- ancestries[,euroCols]
res <- calc_combP(euro)
res

CAnD documentation built on Nov. 8, 2020, 8:18 p.m.