calculate_p_error: Calculate prob of error

Description Usage Arguments Value

View source: R/varsites.r

Description

Internal function used to estimate prob that minor allele at site is the product of error only.

Usage

1
calculate_p_error(dat, error_prob = 0.01)

Arguments

dat

A data.frame or tibble, must have columns freq and depth

error_prob

Baseline err probability

Value

A numeric vector of p-values


surh/HMVAR documentation built on Aug. 18, 2021, 1:21 a.m.