poison_binomial_test: Calculate a poisson-binomial p-value

View source: R/haplotype_test_functions.R

poison_binomial_testR Documentation

Calculate a poisson-binomial p-value

Description

This function takes the input data and returns a p-value for the null hypothesis that haplotype configurations which influence coding variant penetrance are not significangtly enriched in the population. The p-value is calculated analytically using the poisson-binomial distribuion, which is the distribution over the sum of n independent but NOT identically distributed bernoulli random variables.

Usage

poison_binomial_test(haps)

Arguments

haps

The output of 'characterize_haplotypes', or another haplotype calling tool. There is one line per haplotype


jeinson/tompen documentation built on March 18, 2023, 2:59 a.m.