gl_to_gp {ldsep} | R Documentation |
Normalize genotype likelihoods to posterior probabilities.
Description
This will take genotype log-likelihoods and normalize them to sum to one. This corresponds to using a naive discrete uniform prior over the genotypes. It is not generally recommended that you use this function.
Usage
gl_to_gp(gl)
Arguments
gl |
A three dimensional array of genotype log-likelihoods.
Element |
Value
A three-dimensional array, of the same dimensions as gl
,
containing the posterior probabilities of each dosage.
Author(s)
David Gerard
Examples
data("glike")
class(glike)
dim(glike)
gl_to_gp(glike)
[Package ldsep version 2.1.5 Index]