enrichment_multiple_populations: test for enrichment of inherited variants in multiple...

Description Usage Arguments Value Examples

View source: R/alleles_recessive_test.R

Description

test for enrichment of inherited variants in multiple populations

Usage

1
enrichment_multiple_populations(freqs, counts, cohort_n, autozygosity = 0)

Arguments

freqs

list of frequency estimates for each ExAC population.

counts

list of counts of biallelically inherited genotypes in a gene for: 1) biallelic_lof - inherited Lof/LoF variants, 2) lof_func - ninherited Lof/Func variants, 3) biallelic_func inherited func/func variants. 3) biallelic_syn inherited synonymous/synonymous variants.

cohort_n

list of number of probands in each population.

autozygosity

rate of autozygosity in the cohort being investigated.

Value

a list of P values from tests across the populations, under LoF and functional tests.

Examples

1
2
3
4
5
6
freqs = list("AFR"=list("lof"=0.01, "functional"=0.1,"synonymous"=0.3),
    "EAS"=list("lof"=0.02, "functional"=0.1,"synonymous"=0.3))
counts = list("biallelic_lof"=4, 'biallelic_func'=6, 'lof_func'=3,"biallelic_syn"=5)
cohort_n = list("AFR"=50, "EAS"=150)
autozygous_rate = 0.005
enrichment_multiple_populations(freqs, counts, cohort_n, autozygous_rate)

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