pbias: Returns the probability of seeing the reference allele after...

Description Usage Arguments Author(s)

View source: R/RcppExports.R

Description

Returns the probability of seeing the reference allele after including the mapping-bias and the sequencing-error.

Usage

1
pbias(prob, bias, seq_error)

Arguments

prob

A numeric vector. Each element is the proportion of genomes that contain the reference allele. This should take on one of the values 0/K, 1/K, ... , K/K, where K is the ploidy of the individual.

bias

The bias parameter. Should be greater than or equal to zero, though is typically less than 1. A 1 indicates no bias. A value less than one indicates a bias towards the reference allele. A value greater than 1 indicates a bias towards the non-reference allele.

seq_error

The sequencing error rate. This should be between 0 and 1.

Author(s)

David Gerard


dcgerard/updogAlpha documentation built on May 14, 2019, 3:10 a.m.