sum_combo_tests: get a p-value that sums across different population...

Description Usage Arguments Value Examples

View source: R/alleles_recessive_test.R

Description

get a p-value that sums across different population possibilities

Usage

1
sum_combo_tests(freqs, cohort_n, combos, enrich_function, autozygosity = 0)

Arguments

freqs

list of frequency estimates for each ExAC population.

cohort_n

list of number of probands in each population.

combos

a dataframe of the possible count combinations for a functional type.

enrich_function

function to test enrichment.

autozygosity

rate of autozygosity in the cohort being investigated.

Value

a p-value from testing for

Examples

1
2
3
4
5
freqs = list("A"=list("lof"=0.1, "functional"=0.1),
    "B"=list("lof"=0.1, "functional"=0.1))
cohort_n = list("A"=100, "B"=100)
combos = get_count_combinations(names(cohort_n), count=1)
sum_combo_tests(freqs, cohort_n, combos, biallelic_lof_enrichment)

jeremymcrae/recessiveStats documentation built on May 19, 2019, 5:08 a.m.