Learn R Programming

mlPhaser (version 0.01)

getHaploGroupProb: Get haplotype group probability

Description

Combine probabilities across a haplotype group

Usage

getHaploGroupProb(haploGroup, haploFreqs, method = "basic", returnLog = FALSE)

Arguments

haploGroup
A list of haplotypes. Only the names attribute is important.
haploFreqs
The frequencies of haplotypes as a named vector.
method
Only one method currently ("basic").
returnLog
Whether to output the combined probability as a natural log. Default=FALSE.

Value

A numeric likelihood representing the combined probability across a group.

Details

Each haplotype might have a probability of being found. e.g. the population frequency. This function combines probabilities of a group of haplotypes