enrichment_single_population: test for enrichment of inherited variants

Description Usage Arguments Value Examples

View source: R/alleles_recessive_test.R

Description

test for enrichment of inherited variants

Usage

1
enrichment_single_population(freq, counts, cohort_n, autozygosity = 0)

Arguments

freq

list of cumulative frequencies of variation in a population for rare LoF variants, and rare functional variants.

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.

cohort_n

number of probands in population.

autozygosity

rate of autozygosity in the cohort being investigated.

Value

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

Examples

1
2
3
freq = list(lof=0.001, functional=0.1)
counts = list("biallelic_lof"=1, 'biallelic_func'=4, 'lof_func'=2)
enrichment_single_population(freq, counts, 1000)

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